+ Reply to Thread
Results 1 to 14 of 14

Sum Formula Help

  1. #1
    Forum Contributor
    Join Date
    05-02-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    205

    Sum Formula Help

    I'm looking for a formula to do the following on the attached workbook:

    New Job Data Template Tab: Under Weekly Data column, I will manually enter in the hours and feet for each Category every week. Example: John Doe, Pipe - Hours = 10 and Feet = 200. Wrap - Hours = 10 and Feet = 300

    At the bottom of the sheet lists every name 4 times for Pipe, Wrap, Board, and Firemaster. I am looking for a formula that will match the names, then match the feet or hours, and then match the category name to give me the Total Feet and Hours for each person under each Catagory. I have highlighted example data in yellow.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Sum Formula Help

    I made a change to the Employees sheet from John Doe to Emp 1, Emp 2, Emp 3. I also greatly reduced the sheets so that the file would upload, however I feel that there is enough left that you will be able to see what is going on.
    Since column A at the bottom of the sheet isn't being used, I put the jobs (pipe, wrap etc) in that column (you can hide the added text by changing the font to white as demonstrated beginning with wrap).
    After making those changes the following formula populated the bottom of the worksheet:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Forum Contributor
    Join Date
    05-02-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    205

    Re: Sum Formula Help

    Thank you. That works perfect. Is there a formula to count the number of weeks each person was on site? For instance, find the employees name and then count how many times there is an entry under the "pipe" description

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Sum Formula Help

    Assuming that these values will go at the bottom of the sheet in column G, the following formula populates G47 and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let us know if you have any questions.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-02-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    205

    Re: Sum Formula Help

    The formulas you provided work perfectly, but now my excel workbook is painfully slow. Every time I click on a cell or scroll up and down it freezes and says Calculating. Any ideas?

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Sum Formula Help

    MMULT is one alternative to SUMPRODUCT. Try this and let me know if it helps. In G48 and filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  7. #7
    Forum Contributor
    Join Date
    05-02-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    205

    Re: Sum Formula Help

    That formula works in the example and when I plugged in =SUM(MMULT(($C$1:$CX$1=$B1814)*($B$6:$B$1805=$A1814)*($C$5:$CX$5=$C$1812)*($C$6:$CX$1805>0),{1;1;1;1;1;1})) to my workbook it comes up as #value! What did I do wrong?

  8. #8
    Forum Contributor
    Join Date
    05-02-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    205

    Re: Sum Formula Help

    I figured out why the formula wasn't working and I changed it but it is still slowing down the workbook where it is very laggy. Any other ideas?

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Sum Formula Help

    It seems to me that what is slowing the spreadsheet down is that each time you enter a number in a cell at the top of the spreadsheet, it recalculates all of the formulas at the bottom. If there are 750 employees multiplied by four jobs multiplied by the number of stats being tracked (feet, hours, weeks etc.) then that takes time. Seems that what would be preferable would be to have the spreadsheet wait until you have put in the values in the cells at the top before it starts calculations in the formulas at the bottom. That being the case you might consider point number 9 in this article, which is about setting the calculation mode to manual.

  10. #10
    Forum Contributor
    Join Date
    05-02-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    205

    Re: Sum Formula Help

    Is that the only option? Hopefully I remember to hit F9 every time ha. When I hit F9, it only runs the formulas on the selected sheet and not the entire workbook, Correct??

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Sum Formula Help

    According to this article you are correct. Admittedly I don't work with the backstage options often, which is why I waited so long to post my suggestion, and why I referenced an article.
    I hope that the change sped up/improved the worksheets performance?

  12. #12
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Sum Formula Help

    I trust you've read the article cited by JeteMc in Post#9.

    To go a step further.

    Are there any values in $C$6:$CX$1805 that reference directly or indirectly:

    • Cells that have any volatile functions?
    • Dynamic Named Ranges that contain volatile functions?
    • Named formulas that contain volatile functions?

    The point being that volatility is also inherited.
    That is a point not often raised on the topic.

  13. #13
    Forum Contributor
    Join Date
    05-02-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    205

    Re: Sum Formula Help

    Thanks for all the help.

    JeteMc: as soon as I turned on manual calculation I am able to enter in all of the data without any lagging issues. F9 takes about 30 seconds to calculate things but the worksheet works like I want as long as I remember to hit F9.

    FlameRetired: the cells in the range C6:CX1805 only contain numbers that I type in the cells on a weekly basis. There are no formulas or named ranges in those cells.

  14. #14
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Sum Formula Help

    You must have a really fast computer, mine took several minutes to calculate after having pressed F9 (this was on the zipped workbook). I am glad to hear that the spreadsheet is now working as desired. Reading the second article more closely ver 2013 offers several options for manual calculation in the last paragraph. At any rate if the solutions provided are satisfactory please take a moment to mark the thread as 'Solved' using the thread tools link above your first post. I hope that you have a blessed day.

+ 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. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  2. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  3. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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