" False" error message using isblank with 2 if statements

Jim Chad

New Member
Joined
Feb 19, 2018
Messages
15
IF(isblank(D12),(F17<365,F27,IF(F17>364,F37,f12)))

Can anyone tell me what is wrong with my formula?
 
Ah, I think it was because you had a typo in your original formula (which is what I was working off of).
You had it returning F12, not D12. Here was your original formula:
Code:
[COLOR=#333333]IF(isblank(D12),(F17<365,F27,IF(F17>364,F37,[/COLOR][COLOR=#ff0000]f12[/COLOR][COLOR=#333333])))[/COLOR]

So if it is really D12 we want at the end and not F12, then simply change the last value in my last formula:
Code:
=IF(ISBLANK(D12),IF(F17<365,F27,F37),[COLOR=#ff0000]D12[/COLOR])


I copied your formula and put it in.

D12 is still blank. If D12 has a value things do work correctly.
D12 is now blank again and If F17 is < or > than 365, it will not pull the dates from F27 or F37. I even took out the formula from F17 and put in numbers.
 
Upvote 0

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
When D12 is blank, what does this formula return?
=LEN(D12)
 
Upvote 0
OK. Where I was going with the last question is that if something is in that cell (like a single space), it is NOT considered blank.
People often think a blank and a space are treated the same way, but they are not.
 
Upvote 0
Thank you, I think that was it. I just changed my logic and used the word pad and everything seems to be working so far.
 
Upvote 0

Forum statistics

Threads
1,215,477
Messages
6,125,037
Members
449,205
Latest member
Eggy66

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