+ Reply to Thread
Results 1 to 15 of 15

timesheet - deduct value from calculated cell

  1. #1
    Registered User
    Join Date
    04-18-2011
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    17

    timesheet - deduct value from calculated cell

    Hi guys...

    I have timesheet which is almost perfect for me but it needs to be little more perfect

    Examlple is attached...so I need this:

    if there is a value in cell P6 I need it to substract from M6 cell....that is not a problem but I need it to show only values 0+....and if its below zero or equals zero, I need it to show empty cell like it is now...but I just need to add this formula to cell M6 which is calculated from cells J6 and L6...

    and if P6 is empty, just do nothing..basically i dont want to show any zero values in my timesheet...

    Thanks in advance....

    if you're not sure of something just ask me timesheet__.xls

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: timesheet - deduct value from calculated cell

    Hi

    In which Column, is the formula that you use? Column L??
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    04-18-2011
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: timesheet - deduct value from calculated cell

    What formula you mean?

    the formula I'm using at the moment is in column M...thats the column I need to edit
    Quote Originally Posted by Fotis1991 View Post
    Hi

    In which Column, is the formula that you use? Column L??

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: timesheet - deduct value from calculated cell

    Hi, again.

    In I5 and copy down, try this formula.

    =IF(TIME(TRUNC(H5/100);MOD(H5;100);0)=0;"";TIME(TRUNC(H5/100);MOD(H5;100);0))

    In this case, you will see NO zeroes. Just Empties cells.

    Hope, that helps you.

  5. #5
    Registered User
    Join Date
    04-18-2011
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: timesheet - deduct value from calculated cell

    Hmm...why should I change column I5?...I5 has nothing to do with my calculation for cell M5...cells involved are J, L, M, Q...here is quote which is in column M and which needs to be changed: =IF(OR(J5=L5;ISERROR(J5-L5));"";J5-L5)

    or did I explained something wrong?....

    I need to deduct column Q from column M where is formula I posted. All the current conditions must apply

    Quote Originally Posted by Fotis1991 View Post
    Hi, again.

    In I5 and copy down, try this formula.

    =IF(TIME(TRUNC(H5/100);MOD(H5;100);0)=0;"";TIME(TRUNC(H5/100);MOD(H5;100);0))

    In this case, you will see NO zeroes. Just Empties cells.

    Hope, that helps you.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: timesheet - deduct value from calculated cell

    I don't know if you did not explain, well, or i did not understand well....

    For both of us, English is not, our first launquage.!

    So, is Column Q, that you need to don't show 0??

  7. #7
    Registered User
    Join Date
    04-18-2011
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: timesheet - deduct value from calculated cell

    Well...you're right...

    its Column M it works fine how it is....but I just need to add -Q to that formula

    Quote Originally Posted by Fotis1991 View Post
    I don't know if you did not explain, well, or i did not understand well....

    For both of us, English is not, our first launquage.!

    So, is Column Q, that you need to don't show 0??

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: timesheet - deduct value from calculated cell

    ...Under which condition??

    Just(your formula in M5)- Q5?

  9. #9
    Registered User
    Join Date
    04-18-2011
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: timesheet - deduct value from calculated cell

    =IF(OR(J5=L5;ISERROR(J5-L5));"";J5-L5)-Q5

    returns #VALUE

    under conditions, that if result in column M equals zero, its not gonna be visible...

    Quote Originally Posted by Fotis1991 View Post
    ...Under which condition??

    Just(your formula in M5)- Q5?

  10. #10
    Registered User
    Join Date
    04-18-2011
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: timesheet - deduct value from calculated cell

    Still need to sort this out...any more ideas?

    Thanks

  11. #11
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: timesheet - deduct value from calculated cell

    ...Sorry, i forgot you..

    I'll take a look, now!

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: timesheet - deduct value from calculated cell

    Give atry to this,pls, in M5 and copy down.

    =IF(OR(J5=L5;ISERROR(J5-L5));"";(J5-L5)-Q5)

  13. #13
    Registered User
    Join Date
    04-18-2011
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: timesheet - deduct value from calculated cell

    In this example I need cell M6 to equal 0:00 and displayed as empty cell...basicaly thats all I need

    timesheet__.xls

  14. #14
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: timesheet - deduct value from calculated cell

    Hi

    I am not able to open your new attachment(and as i see, noone can until now).

    Pls, try again.

  15. #15
    Registered User
    Join Date
    04-18-2011
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: timesheet - deduct value from calculated cell

    OK..so once again

    timesheet__.xls


    Quote Originally Posted by Fotis1991 View Post
    Hi

    I am not able to open your new attachment(and as i see, noone can until now).

    Pls, try again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1