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
 

Some videos you may like

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Expiry

Well-known Member
Joined
Jun 20, 2007
Messages
865
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.
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
=IF(A16="",A20,A16)-A15

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

Watch MrExcel Video

Forum statistics

Threads
1,122,914
Messages
5,598,840
Members
414,261
Latest member
KatieBsc

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
Top