+ Reply to Thread
Results 1 to 10 of 10

Creating a List Based on Sum of Values

  1. #1
    Registered User
    Join Date
    07-28-2020
    Location
    San Diego
    MS-Off Ver
    2019
    Posts
    5

    Question Creating a List Based on Sum of Values

    Hello All,

    looking for some help on a project i am doing. What I am needing to do is have excel sum up the values in different columns to not exceed a pre-determined value. Then have it list out the corresponding data.

    For example:
    I want it to add the values in column G until they reach the value in cell C13. Then reference column E to tell me the first cell and last cell.
    So in the attached file the desired result would be
    A - 11/12 to A - 15/16
    A - 17/18 to A - 23/24
    A - 25/26 to A - 29/30
    A - 31/32 to A - 35/36
    A - 37/38 to A - 41/24

    I would need to repeat this for B, C, D, E, G... it can go all the way to N for the headers
    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Creating a List Based on Sum of Values

    Where do you want to display/show results?
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    07-28-2020
    Location
    San Diego
    MS-Off Ver
    2019
    Posts
    5

    Re: Creating a List Based on Sum of Values

    on the same sheet under suggested staffing

  4. #4
    Registered User
    Join Date
    07-28-2020
    Location
    San Diego
    MS-Off Ver
    2019
    Posts
    5

    Re: Creating a List Based on Sum of Values

    or if easier it can go starting at row 60 and keep each result with its header

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,484

    Re: Creating a List Based on Sum of Values

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new, I will add the link for you: https://www.mrexcel.com/board/thread...alues.1141392/)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Registered User
    Join Date
    07-28-2020
    Location
    San Diego
    MS-Off Ver
    2019
    Posts
    5

    Re: Creating a List Based on Sum of Values

    Sorry about that I didnt know that the fourms were linked.

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

    Re: Creating a List Based on Sum of Values

    Perhaps this will help.
    Column G lists the per hour values using: =MOD(SUM(G$10:G10),$C$13)
    Column F lists the aisle using: =IF(OR(AND(G59=0,G60>0),AND(G59<>"",G60<G59),G60>G61),E10,"")
    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.

  8. #8
    Registered User
    Join Date
    07-28-2020
    Location
    San Diego
    MS-Off Ver
    2019
    Posts
    5

    Re: Creating a List Based on Sum of Values

    I think we are getting somewhere. I was able to recreate on another tab (S1 - Staffing Helper).

    What I need now is for it to reflect on the first tab under suggested staffing. With first and last groups

    so the first should read "A - 11/12 to A - 13/14"
    Attached Files Attached Files
    Last edited by ricmaye; 08-03-2020 at 05:26 PM.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,484

    Re: Creating a List Based on Sum of Values

    Quote Originally Posted by ricmaye View Post
    Sorry about that I didnt know that the fourms were linked.
    They aren’t, but both have the same rules on cross-posting. There is a link to the forum rules at the top of the page.

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

    Re: Creating a List Based on Sum of Values

    The formula that populates A4:A103 on the S1 - Staffing Helper sheet has been changed to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula that displays your desired results in A105:A113 is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files

+ 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. [SOLVED] Creating a list of unique values based on multiple criteria
    By 27POP27 in forum Excel General
    Replies: 5
    Last Post: 03-13-2019, 11:26 PM
  2. [SOLVED] Creating a list of unique values based off criteria
    By kristentringali in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-23-2018, 12:54 PM
  3. [SOLVED] VBA Creating a list of unique values from one column based on criteria from another column
    By bilbo85 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-09-2016, 02:38 PM
  4. Creating list of random numbers based on values in other cells
    By rossjohnston in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-01-2015, 10:08 AM
  5. [SOLVED] creating a list based on two separte values
    By scokaw in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-24-2013, 02:28 PM
  6. Creating a List from a Table, based on Cell Values
    By Dan86 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2013, 06:01 PM
  7. Creating an itemized list on a sheet based off of cell values on another
    By JHuggins in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-07-2012, 10:35 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