Blank if non-numerical

ChaosPup

New Member
Joined
Sep 27, 2021
Messages
48
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am creating a simple Overtime Planner to calculate planned v actual hours. At the moment, I can type in the planned start/finish times and it will give the extra hours. Easy. If either the start or finish time cells are blank the OT cell stays blank. I'm using this formula -

=IF(ISBLANK(E4)," ",IF(ISBLANK(F4)," ",(F4-E4)-$U$4))

where E4 and F4 are the start and finish times, and U4 is the core hours so I can calculate OT. However....I also need to include non-numerical entries (H and S) - what can I add into the formula to leave the OT cell blank if either E4 or F4 are non-numerical? I tried adding an (IF(ISNUMBER)) argument but I get a 'too many arguments' error.

Thanks!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
You could use:

Excel Formula:
=IF(COUNT(E4:F4)<2," ",(F4-E4)-$U$4)
 
Upvote 0
Solution

Forum statistics

Threads
1,224,822
Messages
6,181,165
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