+ Reply to Thread
Results 1 to 7 of 7

how to get the total of cells if it has a formula

  1. #1
    Registered User
    Join Date
    07-14-2012
    Location
    Hongkong, China
    MS-Off Ver
    Excel 2010
    Posts
    3

    how to get the total of cells if it has a formula

    http://www.excelkey.com/forum/viewto...0&p=6216#p6216

    hi,

    im doing a roster with a column for hours work, which has a formula to calculate the hour work in a day.
    my problem is getting the total of all this column (the total of 7 days).
    I tried the =sum(A2,A4,A6) but doesnt count.

    please help.

    thank you in advance

    hunhnee
    Last edited by hunhnee18; 07-18-2012 at 03:12 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: how to get the total of cells if it has a formula

    What's the formula in thse cells? Sounds like it returns text.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-14-2012
    Location
    Hongkong, China
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: how to get the total of cells if it has a formula

    hi shg

    thank you for the reply, the formula I use is

    =IF(ISERROR((C16-B16)*24-1),"0",24*MOD(C16-B16,1)-1)

    where C16 is the out time
    B16 is the in time
    and there's a cell with OFF AND SH OR AL, so i use the "0"
    and we also have schedule that finish after midnight so I use MOD
    and we need to deduct 1 hour break.
    all the cell is also in text, because if I use the time or h:mm, [h]:mm the answer will come out negative and will be too long in the cell, its like error with this
    sign(#####)

    using the formula above, I got the correct number of hours the staff work, but i need to have the total of all this days. but the sum formula doesn't do.

    thanks
    hunhnee

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: how to get the total of cells if it has a formula


  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: how to get the total of cells if it has a formula

    Thanks Pepe.

    Hello hunhnee18, and welcome to the forum. Unfortunately you've inadvertently broken one of the forum rules. Please read and follow the rule for your future threads.
    Thanks.

    Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  6. #6
    Registered User
    Join Date
    07-14-2012
    Location
    Hongkong, China
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: how to get the total of cells if it has a formula

    Im so sorry, I didnt know this is the same with the other site. I was so eager to finish my work, I didnt read all the rules, I was so in a hurry to get the solution to my problem that I posted to 3 site.

    Im sorry again. Im still checking my work, still didnt get the correct formula but Im thankful for the replies.

    Hunhnee

    ---------- Post added at 03:15 AM ---------- Previous post was at 03:02 AM ----------

    Sorry for the mistake, I tried to edit and put the link but please check if its correct, Im new to a forumn so a little confusing to me.
    Thank you
    Hunhnee

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: how to get the total of cells if it has a formula

    I see 1 link but you said you posted to 3 sites. Please post the link to the 2nd site (assuming this site is the 3rd).

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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