IF statement for blank / not blank cells

jeffblk

New Member
Joined
Sep 19, 2006
Messages
32
Need an IF statement in a time study excel 2003 file that does the following:

For Row 27 that does the following:

If row 16 has time in it, take row 16 - row 15 else If row 16 is blank, take row 20 - row 15

Next IF statement for Row 28

if row 16 is blank, then row 28 should be blank

Wanted to attach a screen shot, but do not see any attachment capability to this thread.

Thank you
Jeff
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
In A27:

=IF(A16="",A20-A15,A16-A15)

In A28:

=IF(A16="","")

You don't give an alternative for the second one, but you would just add it in as per the first one.

You can copy these along the rows.
 
Upvote 0
=IF(A16="",A20,A16)-A15

=IF(A16="","","What to do if FALSE")
 
Upvote 0

Forum statistics

Threads
1,214,798
Messages
6,121,636
Members
449,043
Latest member
farhansadik

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