ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Nested Functions Help (https://www.excelbanter.com/excel-worksheet-functions/206137-nested-functions-help.html)

Swtmelly

Nested Functions Help
 
I have a time sheet calculating comp t time used if hours worked (G18) under
8 (based on time in and out)

=IF(G188,0,8-G18)

If the employee doesn't work then I'm also getting answer '8'. How can I
fix the formula so that if there are no times logged in or out I can get the
answer '0.00' or a blank cell?

Pete_UK

Nested Functions Help
 
Try it this way:

=IF(OR(G18=0,G188),0,8-G18)

Hope this helps.

Pete

On Oct 13, 4:46*pm, Swtmelly
wrote:
I have a time sheet calculating comp t time used if hours worked (G18) under
8 (based on time in and out)

=IF(G188,0,8-G18) *

If the employee doesn't work then I'm also getting answer '8'. *How can I
fix the formula so that if there are no times logged in or out I can get the
answer '0.00' or a blank cell?



T. Valko

Nested Functions Help
 
One way:

=IF(COUNT(G18),IF(G188,0,8-G18),"")

--
Biff
Microsoft Excel MVP


"Swtmelly" wrote in message
...
I have a time sheet calculating comp t time used if hours worked (G18)
under
8 (based on time in and out)

=IF(G188,0,8-G18)

If the employee doesn't work then I'm also getting answer '8'. How can I
fix the formula so that if there are no times logged in or out I can get
the
answer '0.00' or a blank cell?




David Biddulph[_2_]

Nested Functions Help
 
=IF(G18="","",IF(G188,0,8-G18))
--
David Biddulph


"Swtmelly" wrote in message
...
I have a time sheet calculating comp t time used if hours worked (G18)
under
8 (based on time in and out)

=IF(G188,0,8-G18)

If the employee doesn't work then I'm also getting answer '8'. How can I
fix the formula so that if there are no times logged in or out I can get
the
answer '0.00' or a blank cell?




John C[_2_]

Nested Functions Help
 
=(G8<8)*(G80)*ISNUMBER(G8)*(8-G8)
--
John C


"Swtmelly" wrote:

I have a time sheet calculating comp t time used if hours worked (G18) under
8 (based on time in and out)

=IF(G188,0,8-G18)

If the employee doesn't work then I'm also getting answer '8'. How can I
fix the formula so that if there are no times logged in or out I can get the
answer '0.00' or a blank cell?


Swtmelly

Nested Functions Help
 
We have a WINNER!! Thank you so much!

"John C" wrote:

=(G8<8)*(G80)*ISNUMBER(G8)*(8-G8)
--
John C


"Swtmelly" wrote:

I have a time sheet calculating comp t time used if hours worked (G18) under
8 (based on time in and out)

=IF(G188,0,8-G18)

If the employee doesn't work then I'm also getting answer '8'. How can I
fix the formula so that if there are no times logged in or out I can get the
answer '0.00' or a blank cell?


John C[_2_]

Nested Functions Help
 
You are welcome, and thanks for the feedback (all the other responses would
work too). Don't forget to check the little YES box below :)
--
John C


"Swtmelly" wrote:

We have a WINNER!! Thank you so much!

"John C" wrote:

=(G8<8)*(G80)*ISNUMBER(G8)*(8-G8)
--
John C


"Swtmelly" wrote:

I have a time sheet calculating comp t time used if hours worked (G18) under
8 (based on time in and out)

=IF(G188,0,8-G18)

If the employee doesn't work then I'm also getting answer '8'. How can I
fix the formula so that if there are no times logged in or out I can get the
answer '0.00' or a blank cell?



All times are GMT +1. The time now is 05:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com