hh.mm calculation won't ignore blank cells

majdmann

New Member
Joined
Mar 4, 2011
Messages
2
I'm trying to calculate duration to find average wait times in an ER. I have a column for check in and a column for seen by doc. the calculation returns #VALUE! if a time isn't entered. How do I get it to ignore blanks?

Example:

=AH2-AE2+(AH2<AE2)

<AE2) p <AE2)<AE2)< <AE2)>where AH2 is check in and AE2 is seen by doc.
 
Last edited:

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi, welcome to the board.

It looks as if part of your formula is missing.
Does it include < or > symbols ? If yes, put spaces around them (this is a recognised bug on this board).

I don't know what your formula should be, but you could put in some kind of error handler, like this
Code:
=if(or(AH2="",AE2=""),"TIME MISSING",(REST OF YOUR FORMULA))

Replace "TIME MISSING" with whatever you want to do if time data is not complete.
Replace (REST OF YOUR FORMULA) with, well, you can probably work it out :-)
 
Upvote 0
You can use COUNT to ensure you have 2 time values populated, i.e.

=IF(COUNT(AE2,AH2)=2,AH2-AE2+(AH2< AE2),"")<AE2) p <>
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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