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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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