+ Reply to Thread
Results 1 to 23 of 23

SUMIF formula stopped working in timesheet

  1. #1
    Registered User
    Join Date
    06-24-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2010
    Posts
    9

    SUMIF formula stopped working in timesheet

    The formula that I entered in column "AE" of my timesheet has stopped calculating the total number of "Worked Hours" an employee worked under the "Program Code" selected during a pay period.

    It was the first formulas that I entered, and it worked perfectly. However, since entering the additional formulas in other columns of the timesheet it no longer calculates, and I've spent days trying to figure out why.

    Formula in column AE (I used this formulas for each "Program Code," changing only the "X" row value in "*"&ADX$"*": =SUMIF($C$12:$Y$12,"*"&AD3&"*",$E$11:$Z$11)+SUMIF($C$14:$Y$14,"*"&AD3&"*",$E$13:$Z$13)+SUMIF($C$16:$Y$16,"*"&AD3&"*",$E$15:$Z$15)+SUMIF($C$18:$Y$18,"*"&AD3&"*",$E$17:$Z$17)+SUMIF($C$20:$Y$20,"*"&AD3&"*",$E$19:$Z$19)+SUMIF($C$22:$Y$22,"*"&AD3&"*",$E$21:$Z$21)+SUMIF($C$24:$Y$24,"*"&AD3&"*",$E$23:$Z$23)+SUMIF($C$26:$Y$26,"*"&AD3&"*",$E$25:$Z$25)+SUMIF($C$28:$Y$28,"*"&AD3&"*",$E$27:$Z$27)+SUMIF($C$30:$Y$30,"*"&AD3&"*",$E$29:$Z$29)+SUMIF($C$32:$Y$32,"*"&AD3&"*",$E$31:$Z$31)+SUMIF($C$34:$Y$34,"*"&AD3&"*",$E$33:$Z$33)+SUMIF($C$36:$Y$36,"*"&AD3&"*",$E$35:$Z$35)+SUMIF($C$38:$Y$38,"*"&AD3&"*",$E$37:$Z$37)


    Link to Google Sheet: Forum wouldn't allow because I'm new.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: SUMIF formula stopped working in timesheet

    Hi, welcome to the forum

    Sorry you cannot (yet) post a link, it's our attempt at trying to reduce spam, try adding a few spaces here and there.

    Apart from that, this is your formula...
    =SUMIF($C$12:$Y$12,"*"&AD3&"*",$E$11:$Z$11)
    +SUMIF($C$14:$Y$14,"*"&AD3&"*",$E$13:$Z$13)
    +SUMIF($C$16:$Y$16,"*"&AD3&"*",$E$15:$Z$15)
    +SUMIF($C$18:$Y$18,"*"&AD3&"*",$E$17:$Z$17)
    +SUMIF($C$20:$Y$20,"*"&AD3&"*",$E$19:$Z$19)
    +SUMIF($C$22:$Y$22,"*"&AD3&"*",$E$21:$Z$21)
    +SUMIF($C$24:$Y$24,"*"&AD3&"*",$E$23:$Z$23)
    +SUMIF($C$26:$Y$26,"*"&AD3&"*",$E$25:$Z$25)
    +SUMIF($C$28:$Y$28,"*"&AD3&"*",$E$27:$Z$27)
    +SUMIF($C$30:$Y$30,"*"&AD3&"*",$E$29:$Z$29)
    +SUMIF($C$32:$Y$32,"*"&AD3&"*",$E$31:$Z$31)
    +SUMIF($C$34:$Y$34,"*"&AD3&"*",$E$33:$Z$33)
    +SUMIF($C$36:$Y$36,"*"&AD3&"*",$E$35:$Z$35)
    +SUMIF($C$38:$Y$38,"*"&AD3&"*",$E$37:$Z$37)

    It all looks OK to me, but maybe your data format has changed. You say it has "stopped working", what exactly does that mean?
    giving error?
    giving wrong answer?
    giving no answer?
    something else?

    Also, Im sure that if we look at your data, we will be able to shorten that formula.
    What is in between the summing rows?
    Would this work?
    =SUMIF($C$12:$Y$38,"*"&AD3&"*",$E$11:$Z$37)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-24-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2010
    Posts
    9

    Re: SUMIF formula stopped working in timesheet

    Thanks for the reply, FDibbins.

    You say it has "stopped working", what exactly does that mean?
    The formulas returns the value "0.00" and no error message.

    What is in between the summing rows?
    It's a lot to try to explain. I snipped an image of the timesheet, but couldn't attach it. I have a link to my timesheet. Is there any way that I can send it to you?


    Would this work: =SUMIF($C$12:$Y$38,"*"&AD3&"*",$E$11:$Z$37)?
    I tried it an received the same result, "0.00".

    Also, I checked the cell format and it is the same as the cells with formulas to calculate fringe benefit hours, "number". Odd thing is that I use the same formula in these cells, just different reference columns...?

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,673

    Re: SUMIF formula stopped working in timesheet

    The paper clip icon does not work for attachments. Instead, under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: SUMIF formula stopped working in timesheet

    Jeff, it's google docs

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: SUMIF formula stopped working in timesheet

    See if you can PM the link to me.

    Or just paste it in your post and add a bunch of spaces here and there

  7. #7
    Registered User
    Join Date
    06-24-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2010
    Posts
    9

    Re: SUMIF formula stopped working in timesheet

    Last edited by 6StringJazzer; 06-25-2018 at 10:29 PM. Reason: linkified the URL

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,673

    Re: SUMIF formula stopped working in timesheet

    Quote Originally Posted by obedb4sac View Post
    obedb4sac, this is not a public document. When I click it on it, I must request permission from you to see it.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: SUMIF formula stopped working in timesheet

    Agreed, I get the same instruction as well

  10. #10
    Registered User
    Join Date
    06-24-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2010
    Posts
    9
    Quote Originally Posted by FDibbins View Post
    Agreed, I get the same instruction as well
    Every option to copy to my personal Gmail account would've required me to re-enter all of my formulas, formatting, and validations. However, I've since confirmed your shared access.

  11. #11
    Registered User
    Join Date
    06-24-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2010
    Posts
    9
    Quote Originally Posted by 6StringJazzer View Post
    obedb4sac, this is not a public document. When I click it on it, I must request permission from you to see it.
    Every option to copy to my personal Gmail account would've required me to re-enter all of my formulas, formatting, and validations. However, I've since confirmed your shared access.

  12. #12
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,673

    Re: SUMIF formula stopped working in timesheet

    The layout of your data is working against you. There is a sacrifice of functionality for appearance.

    I downloaded your file so I could work on it locally in Excel. I did not want to edit it in Google and mess up your original.

    The best solution would be to reorganize your sheet:
    • You have data for many entries each spread onto two rows. The best practice is to have one entry per row--that is, one day, on program code.
    • Merged cells are almost always a bad idea.
    • The day is in two cells (columns A:B), but it should be one day value with desired formatting in a single cell.
    • Columns AK:AM should be on a different sheet since their row setup is so different than the other data.


    I am developing a specific suggestion but not sure if I'll have time; it's not complex but it is time-consuming to do this kind of reorganization.

  13. #13
    Registered User
    Join Date
    06-24-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2010
    Posts
    9
    Quote Originally Posted by 6StringJazzer View Post
    The layout of your data is working against you. There is a sacrifice of functionality for appearance.

    I downloaded your file so I could work on it locally in Excel. I did not want to edit it in Google and mess up your original.

    The best solution would be to reorganize your sheet:
    • You have data for many entries each spread onto two rows. The best practice is to have one entry per row--that is, one day, on program code.
    • Merged cells are almost always a bad idea.
    • The day is in two cells (columns A:B), but it should be one day value with desired formatting in a single cell.
    • Columns AK:AM should be on a different sheet since their row setup is so different than the other data.


    I am developing a specific suggestion but not sure if I'll have time; it's not complex but it is time-consuming to do this kind of reorganization.
    Thanks! I'll apply your previous suggestions and follow-up.

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: SUMIF formula stopped working in timesheet

    (please dont post whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding. For normal conversational replies, try using the QUICK REPLY box below.)

    I agree with 6String about the merged cells, we always advise against those if at all possible.

    I cannot find that formula anywhere, can you tell me where it is?

  15. #15
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,673

    Re: SUMIF formula stopped working in timesheet

    The formula shown in the OP was replaced with your suggestion in column AL of Timesheet.

  16. #16
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: SUMIF formula stopped working in timesheet

    Jeff, using the link from post 7 (or 8), col AL is empty?

    oh wait, I found it in AD46

  17. #17
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: SUMIF formula stopped working in timesheet

    @ obedb4sac I just noticed you are looking to sum UL - there are NO UL entries in AD.

    If you add 1, it calcs
    If you change it to PTO, it calcs

  18. #18
    Registered User
    Join Date
    06-24-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2010
    Posts
    9
    I cannot find that formula anywhere, can you tell me where it is?[/QUOTE]

    If looking at current version of shared doc: AG
    If looking at previously downloaded: AE

  19. #19
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: SUMIF formula stopped working in timesheet

    In the previous version it was in AD46

  20. #20
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,673

    Re: SUMIF formula stopped working in timesheet

    See Timesheet Copy and Code Distribution tabs for redesign. It makes all the formulas a lot easier. However, I don't know what your data entry needs are.
    Attached Files Attached Files

  21. #21
    Registered User
    Join Date
    06-24-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2010
    Posts
    9
    Quote Originally Posted by 6StringJazzer View Post
    See Timesheet Copy and Code Distribution tabs for redesign. It makes all the formulas a lot easier. However, I don't know what your data entry needs are.
    THANK YOU! THANK YOU! THANK YOU! I doubt that I would've ever thought of this layout.

  22. #22
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,673
    You're welcome! It makes all the formulas much easier, but let me know if it creates any problems doing data entry.

  23. #23
    Registered User
    Join Date
    06-24-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2010
    Posts
    9

    Re: SUMIF formula stopped working in timesheet

    Will do. I plan to finish working on the timesheet tomorrow.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Formula stopped working?
    By natonstan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-13-2016, 04:52 PM
  2. Date formula has stopped working
    By NJS1982 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-01-2015, 12:26 PM
  3. [SOLVED] Formula Suddenly Stopped Working?
    By nesbensen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2015, 02:28 PM
  4. [SOLVED] Sumproduct Formula Stopped Working
    By avendi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-13-2014, 03:05 AM
  5. [SOLVED] Formula stopped working
    By adambot in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-20-2014, 12:23 PM
  6. formula stopped working
    By cprpacific in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-04-2013, 10:27 AM
  7. [SOLVED] Array Formula stopped working
    By jimbokeep in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-11-2013, 09:32 AM

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