Need IF Statement help

ArPharazon

Board Regular
Joined
May 3, 2004
Messages
51
Office Version
  1. 2016
  2. 2013
  3. 2007
Platform
  1. Windows
I have a pretty basic need, but I'm not sure ISBLANK is what I want.

I have a column with either blank cells, or dates/times.

I want the preceding column to show a 0 for the blank cells & a 1 for the populated cells.

I've tried this: =IF(D2="blank",0,IF(D2="not blank",1)) to no avail.

I'm not sure if I have the correct terms/nomenclature for the cells n "blank" and "not blank".

I used to use this formula for specific Work Order Statuses, when CLOSE, COMP, etc. were actually in the cells:
=IF(E2="COMP",1,IF(E2="CLOSE",1,IF(E2="APPR",0,IF(E2="INPRG",0,IF(E2="WSCH",0,IF(E2="WMATL",0,IF(E2="WVEND",0,IF(E2="WAPPR",0,IF(E2="WPCOND",0,"")))))))))
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
And for the second formula

=IF(ISNUMBER(MATCH(E2, {"COMP","CLOSE","APPR","INPRG"}, 0)), 0, IF(ISNUMBER(MATCH(E2, {"WSCH","WMATL","WVEND","WAPPR","WPCOND"}, 0)), 1, ""))
 
Upvote 0
How about
=If(D2="",0,1)

That worked perfectly. Thanks!

Someone had me try that with a * between the quotes as a wildcard,
but that didn't work so I figured a simple formula wasn't going to do it.
 
Upvote 0
And for the second formula

=IF(ISNUMBER(MATCH(E2, {"COMP","CLOSE","APPR","INPRG"}, 0)), 0, IF(ISNUMBER(MATCH(E2, {"WSCH","WMATL","WVEND","WAPPR","WPCOND"}, 0)), 1, ""))

I'm saving that formula in case I ever get to work with MAXIMO again and need to build a % Complete report.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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