Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
dvonj
 
Posts: n/a
Default

Dave your a genius, that worked fine. It returns whatever is in cell E11.

Thanks everyone for your assistance.

"Dave Ramage" wrote:

Try this:

=IF(ISNUMBER(E11),IF(E11$E$5,E11,$E$11),"")

If the value in E11 is non-numeric then an empty string is
returned. You could also use this to return zero instead:

=IF(ISNUMBER(E11),IF(E11$E$5,E11,$E$11),0)

Cheers,
Dave
-----Original Message-----
This is a rather complex issue so I will understand if I

need to have a
programmer take this on.
Here goes, I need to keep track of driver total hours.

Drivers cannot work
over a certain number of hours in a week. There are two

shifts an AM sign on
and sign off time plus a PM sign on and sign off time. To

complicate this
each driver is guaranteed a minimum of 2.25 hours for

both AM and PM shifts.
I am using an IF function to validate the value of a cell

based on the amount
of time for each shift. I use a formula to calculate the

difference between
the sign off and sign on times and put that value in a

cell then check to see
if the value meets certain conditions.

If the value returned is grater than 2.25 I place the

grater value in
another cell. If the value is less than 2.25 I place 2.25

in the cell. I then
total the AM and PM times and get the number of hours the

driver worked that
day. The IF function looks like thisâ?¦=IF

(E11=F5,E11,"2.25"). F5 contains the
value 2.25, the check value. My problem is that the value

2.25 is returned on
non data or an empty cell. The IF function evaluates non

data or an empty
cell to be les than 2.25 thus returning 2.25 giving hours

where there should
not be any for that time period.
Is there a way to create a validation that will ignore an

empty cell until
data is supplied?
I apologize for this being so long winded.

.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lookup Function Problem seve Excel Discussion (Misc queries) 9 February 28th 05 02:46 AM
Sumproduct Function problem JRod Excel Worksheet Functions 3 February 7th 05 06:28 PM
Vlookup Function Problem Parker Excel Worksheet Functions 3 January 13th 05 06:53 PM
Problem with function format Steve Excel Worksheet Functions 2 December 27th 04 01:43 PM
Excel Send To function problem kysiow Excel Discussion (Misc queries) 1 December 10th 04 01:37 AM


All times are GMT +1. The time now is 01:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"