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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
You could use:

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

Forum statistics

Threads
1,215,096
Messages
6,123,074
Members
449,093
Latest member
ripvw

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