IFS and ISBLANKS formula

lpaulg3

New Member
Joined
Feb 9, 2014
Messages
26
How do I write this formula?

If B2 is blank, do nothing
If B2 is NOT blank AND H2 is blank AND L2 is blank, TODAY()-B2
If B2 is NOT blank and L2 is blank and H2 is NOT blank, H2-B2

My rough draft:
if isblank B2 "", if B2<>"" and isblank h2 and isblank L2, today()-B2,if B2<>"" and isblank L2 and H2<>"", H2-B2
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
what if L2 is not blank?

How do I write this formula?

If B2 is blank, do nothing
If B2 is NOT blank AND H2 is blank AND L2 is blank, TODAY()-B2
If B2 is NOT blank and L2 is blank and H2 is NOT blank, H2-B2
If B2 is NOT blank and L2 is NOT blank AND H2 is NOT blank, H2-B2
If B2 is NOT blank and L2 is NOT blank AND H2 is blank, L2-B2


My rough draft:
if isblank B2 "", if B2<>"" and isblank h2 and isblank L2, today()-B2,if B2<>"" and isblank L2 and H2<>"", H2-B2
 
Upvote 0
try this

=IF(ISBLANK(B2),"",IF(ISBLANK(L2),IF(ISBLANK(H2),TODAY()-B2,H2-B2),IF(ISBLANK(H2),L2-B2,H2-B2)))
 
Upvote 0

Forum statistics

Threads
1,226,463
Messages
6,191,181
Members
453,645
Latest member
BOUCHOUATA

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