Nested Ifs issue

andrewb90

Well-known Member
Joined
Dec 16, 2009
Messages
1,077
Hello all,

I am trying to change a nested if formula by adding additional information, and I seem to be doing it incorrectly. I was hoping somebody could assist me, and point out where I am going wrong.

Code:
=IF(Scheduler!F89<>"",IF(Scheduler!F89=Settings!G5,"Close",IF(RO!D4="1","OFF","Scheduler!F89")))

What I am trying to do is:
If Scheduler!F89 is blank, then the cell is blank
If Scheduler!F89 has the same value as Settings!G5 then the text "Close" appears
If RO!D4 has a value of 1, the "OFF" will appear
Otherwise the value of Scheduler!F89 will appear

Scheduler & Settings are both time value (6:00, 11:00, etc)


Any help would be greatly appreciated!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
The cell would only stay blank if none of the other conditions are met, so if F89 has no value entered into it and RO!D4 does not have a value of 1.
Also, F89 will not have a value while RO!D4 has the value of 1. It's an either or.
 
Upvote 0
try this

=IF(Scheduler!F89="","",IF(Scheduler!F89=Settings!G5,"Close",IF(RO!D4="1","OFF","Scheduler!F89")))
 
Upvote 0
So the "off" isn't appearing as it supposed to, If Scheduler!F89 is blank the cell should stay blank unless RO!D4 = 1.
 
Upvote 0
I think I got it figured out now.

Code:
=IF(Scheduler!F89="",IF(RO!D4="1","OFF",""),IF(Scheduler!F89=Settings!G5,"CLOSE",Scheduler!F89))

I appreciate the help everybody!
 
Upvote 0
I can not see anything wrong with your original formula then apart from there is no need to put "" around 1

=IF(Scheduler!F89<>"",IF(Scheduler!F89=Settings!G5,"Close",IF(RO!D4=1,"OFF","Scheduler!F89")))
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top