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

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.

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=IF(E11="","",IF(E11=F5,E11,F5))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"dvonj" wrote in 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.



  #3   Report Post  
Dave Ramage
 
Posts: n/a
Default

Try this:

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

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

=3DIF(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=20

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

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

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

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

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

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

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

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

If the value returned is grater than 2.25 I place the=20

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

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

driver worked that=20
day. The IF function looks like this=E2?=A6=3DIF

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

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

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

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

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

.

  #4   Report Post  
RagDyeR
 
Posts: n/a
Default

Try this:

=MAX(E11,F5)*(E110)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"dvonj" wrote in 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.


  #5   Report Post  
dvonj
 
Posts: n/a
Default

Thanks Bob but that still returns 2.25 however I was wrong about there being
non data or empty cell. The cell has 0.00 in it because there is no sign on
or sign off times yet. Cell E11 contains the formula =(D11-C11)*24 to
calculate the difference between sign off and sign on times and the value is
placed in cell E11. Sorry this wasn't clear in my first post.

"Bob Phillips" wrote:

=IF(E11="","",IF(E11=F5,E11,F5))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"dvonj" wrote in 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.






  #6   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.

.


  #7   Report Post  
Bob Phillips
 
Posts: n/a
Default

Try this then

=IF(E11=0,"",IF(E11=F5,E11,F5))


--

HTH

RP
(remove nothere from the email address if mailing direct)


"dvonj" wrote in message
...
Thanks Bob but that still returns 2.25 however I was wrong about there

being
non data or empty cell. The cell has 0.00 in it because there is no sign

on
or sign off times yet. Cell E11 contains the formula =(D11-C11)*24 to
calculate the difference between sign off and sign on times and the value

is
placed in cell E11. Sorry this wasn't clear in my first post.

"Bob Phillips" wrote:

=IF(E11="","",IF(E11=F5,E11,F5))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"dvonj" wrote in 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.






  #8   Report Post  
dvonj
 
Posts: n/a
Default

I tried both your example and Dave Ramage and after using some test data your
example worked both ways while Dave's only worked if the value in E11 is
greater than the check value. Dave on your example If the value returned was
less than the check value (2.25) the lessor value was returned and not
replaced with the check value which is what I need it to do. RagDyeR your
example works best. Thanks for the tip.

and thanks to everyone for helping this is an awsome forum.
I just hope my boss won't thing I am now useless because I created a
spreadsheet that automates what the office has been doing by hand:-)

"RagDyeR" wrote:

Try this:

=MAX(E11,F5)*(E110)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"dvonj" wrote in 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.



  #9   Report Post  
Bob Phillips
 
Posts: n/a
Default

Surely, if he has any sense he will think quite the opposite.

Bob


"dvonj" wrote in message
...
I tried both your example and Dave Ramage and after using some test data

your
example worked both ways while Dave's only worked if the value in E11 is
greater than the check value. Dave on your example If the value returned

was
less than the check value (2.25) the lessor value was returned and not
replaced with the check value which is what I need it to do. RagDyeR your
example works best. Thanks for the tip.

and thanks to everyone for helping this is an awsome forum.
I just hope my boss won't thing I am now useless because I created a
spreadsheet that automates what the office has been doing by hand:-)

"RagDyeR" wrote:

Try this:

=MAX(E11,F5)*(E110)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"dvonj" wrote in 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.





  #10   Report Post  
RagDyeR
 
Posts: n/a
Default

An so ... Are you implying that it's my fault if you should happen to get
"Laid Off"?<bg

Just keep coming back here to automate other tasks, and show him how
resourceful you will *continue* to be.
--

Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------

"dvonj" wrote in message
...
I tried both your example and Dave Ramage and after using some test data
your
example worked both ways while Dave's only worked if the value in E11 is
greater than the check value. Dave on your example If the value returned was
less than the check value (2.25) the lessor value was returned and not
replaced with the check value which is what I need it to do. RagDyeR your
example works best. Thanks for the tip.

and thanks to everyone for helping this is an awsome forum.
I just hope my boss won't thing I am now useless because I created a
spreadsheet that automates what the office has been doing by hand:-)

"RagDyeR" wrote:

Try this:

=MAX(E11,F5)*(E110)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"dvonj" wrote in 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.







  #11   Report Post  
dvonj
 
Posts: n/a
Default

No but I am saying that when he recognizes how valuable I am it will be
because of you and this awsome forum...but thats our secret right? smiles.

"RagDyeR" wrote:

An so ... Are you implying that it's my fault if you should happen to get
"Laid Off"?<bg

Just keep coming back here to automate other tasks, and show him how
resourceful you will *continue* to be.
--

Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------

"dvonj" wrote in message
...
I tried both your example and Dave Ramage and after using some test data
your
example worked both ways while Dave's only worked if the value in E11 is
greater than the check value. Dave on your example If the value returned was
less than the check value (2.25) the lessor value was returned and not
replaced with the check value which is what I need it to do. RagDyeR your
example works best. Thanks for the tip.

and thanks to everyone for helping this is an awsome forum.
I just hope my boss won't thing I am now useless because I created a
spreadsheet that automates what the office has been doing by hand:-)

"RagDyeR" wrote:

Try this:

=MAX(E11,F5)*(E110)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"dvonj" wrote in 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.






  #12   Report Post  
dvonj
 
Posts: n/a
Default

Also can you recommend a good Excel book that takes in to consideration that
I am yet a novice but learns very quickly?

"dvonj" wrote:

No but I am saying that when he recognizes how valuable I am it will be
because of you and this awsome forum...but thats our secret right? smiles.

"RagDyeR" wrote:

An so ... Are you implying that it's my fault if you should happen to get
"Laid Off"?<bg

Just keep coming back here to automate other tasks, and show him how
resourceful you will *continue* to be.
--

Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------

"dvonj" wrote in message
...
I tried both your example and Dave Ramage and after using some test data
your
example worked both ways while Dave's only worked if the value in E11 is
greater than the check value. Dave on your example If the value returned was
less than the check value (2.25) the lessor value was returned and not
replaced with the check value which is what I need it to do. RagDyeR your
example works best. Thanks for the tip.

and thanks to everyone for helping this is an awsome forum.
I just hope my boss won't thing I am now useless because I created a
spreadsheet that automates what the office has been doing by hand:-)

"RagDyeR" wrote:

Try this:

=MAX(E11,F5)*(E110)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"dvonj" wrote in 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.






  #13   Report Post  
Ragdyer
 
Posts: n/a
Default

I honestly suggest that you forget about books for the present time.

Just start out by first exploring the various web pages that a lot of the
regulars to these groups have painstakingly put together to unselfishly
inform and educate any who wish to further their knowledge of XL.

http://www.j-walk.com/ss/excel/tips/index.htm

http://www.cpearson.com/excel/topic.htm

http://www.mvps.org/dmcritchie/excel/excel.htm

http://www.contextures.com/tiptech.html

http://www.mcgimpsey.com/excel/index.html

http://www.xldynamic.com/source/xld.html

This information won't cost you a penny, but you will absolutely, vastly
increase your knowledge of XL by the time you finish with these.

Then you can start on the books.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------



"dvonj" wrote in message
...
Also can you recommend a good Excel book that takes in to consideration

that
I am yet a novice but learns very quickly?

"dvonj" wrote:

No but I am saying that when he recognizes how valuable I am it will be
because of you and this awsome forum...but thats our secret right?

smiles.

"RagDyeR" wrote:

An so ... Are you implying that it's my fault if you should happen to

get
"Laid Off"?<bg

Just keep coming back here to automate other tasks, and show him how
resourceful you will *continue* to be.
--

Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------

"dvonj" wrote in message
...
I tried both your example and Dave Ramage and after using some test

data
your
example worked both ways while Dave's only worked if the value in E11

is
greater than the check value. Dave on your example If the value

returned was
less than the check value (2.25) the lessor value was returned and not
replaced with the check value which is what I need it to do. RagDyeR

your
example works best. Thanks for the tip.

and thanks to everyone for helping this is an awsome forum.
I just hope my boss won't thing I am now useless because I created a
spreadsheet that automates what the office has been doing by hand:-)

"RagDyeR" wrote:

Try this:

=MAX(E11,F5)*(E110)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"dvonj" wrote in 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.







  #14   Report Post  
dvonj
 
Posts: n/a
Default

this is great information and well received advice. When I get my raise I'll
treat you to lunch. <smiles

"Ragdyer" wrote:

I honestly suggest that you forget about books for the present time.

Just start out by first exploring the various web pages that a lot of the
regulars to these groups have painstakingly put together to unselfishly
inform and educate any who wish to further their knowledge of XL.

http://www.j-walk.com/ss/excel/tips/index.htm

http://www.cpearson.com/excel/topic.htm

http://www.mvps.org/dmcritchie/excel/excel.htm

http://www.contextures.com/tiptech.html

http://www.mcgimpsey.com/excel/index.html

http://www.xldynamic.com/source/xld.html

This information won't cost you a penny, but you will absolutely, vastly
increase your knowledge of XL by the time you finish with these.

Then you can start on the books.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------



"dvonj" wrote in message
...
Also can you recommend a good Excel book that takes in to consideration

that
I am yet a novice but learns very quickly?

"dvonj" wrote:

No but I am saying that when he recognizes how valuable I am it will be
because of you and this awsome forum...but thats our secret right?

smiles.

"RagDyeR" wrote:

An so ... Are you implying that it's my fault if you should happen to

get
"Laid Off"?<bg

Just keep coming back here to automate other tasks, and show him how
resourceful you will *continue* to be.
--

Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------

"dvonj" wrote in message
...
I tried both your example and Dave Ramage and after using some test

data
your
example worked both ways while Dave's only worked if the value in E11

is
greater than the check value. Dave on your example If the value

returned was
less than the check value (2.25) the lessor value was returned and not
replaced with the check value which is what I need it to do. RagDyeR

your
example works best. Thanks for the tip.

and thanks to everyone for helping this is an awsome forum.
I just hope my boss won't thing I am now useless because I created a
spreadsheet that automates what the office has been doing by hand:-)

"RagDyeR" wrote:

Try this:

=MAX(E11,F5)*(E110)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"dvonj" wrote in 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 03:46 AM
Sumproduct Function problem JRod Excel Worksheet Functions 3 February 7th 05 07:28 PM
Vlookup Function Problem Parker Excel Worksheet Functions 3 January 13th 05 07:53 PM
Problem with function format Steve Excel Worksheet Functions 2 December 27th 04 02:43 PM
Excel Send To function problem kysiow Excel Discussion (Misc queries) 1 December 10th 04 02:37 AM


All times are GMT +1. The time now is 09:47 AM.

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"