Forum Discussion
conditional formatting doesn't work with complex "IF" statement
This might work. I see you're using semi-colons so I've written the formula using those as the list separator. I believe the issue with the other formula is the use of ADDRESS.
=IF(INDIRECT("RC";0)>1;1;0)
- HansVogelaarOct 20, 2022MVP
But wouldn't be much easier to create a rule of type 'Format only cells that contain' with Cell Value, greater than, and =1 ?
- Patrick2788Oct 20, 2022Silver Contributor
Yes, definitely much easier. captainFlow mentioned this was for demonstration purposes. Maybe he can share his goal?
- captainFlowOct 20, 2022Copper Contributor
Hi Patrick
Yes, you are right. Here is full formula I need.
=IF(INDIRECT(ADRESS(ROW();COLUMN())) > 0; IF((ROW()=1); INDIRECT(ADRESS(ROW();COLUMN())) >= ($D2*1,1); INDIRECT(ADRESS(ROW();COLUMN())) >= INDIRECT(ADRESS(ROW()-1;COLUMN()))*1,0); 0)
I created the tickets after found out that nested IF statement doesn't work for me.
UPD. To be more correct, using INDIRECT function inside of IF doesn't work for me.
UPD.2. The thing is I've written this formula for google sheets for Conditional Formatting and it works fine. I can't find out why it doesn't work for excel in microsoft365