+ Reply to Thread
Results 1 to 9 of 9

SUM Row until certain criteria is met and give out header value.

  1. #1
    Registered User
    Join Date
    12-12-2018
    Location
    Latvia, Liepaja
    MS-Off Ver
    2013
    Posts
    6

    SUM Row until certain criteria is met and give out header value.

    Hello!

    I have a challenge in analyzing supplier data.

    I used Pivot table to get the necessary data, but I can`t seem to locate a formula, that I can modify, to calculate and get the necessary results :/

    Column A - is item numbers.

    Row A1:BF1 is delivery time

    B2:BF199 - delivery times in % ( from Pivot table)


    My aim is to find out, for each Item number, how long it takes to receive 85%, 90%; 95% and 99% of the goods for a specific Item Nr.
    I`m looking to input the formulas in cells BI2; BJ2; BK2; BL2

    I would like the formula to look at the data, lets say for Item Nr. 1, for the whole row and give me out a Header number 4 (Column F) based on Suming the Row

    For item "number 5" 85% are delivered in 11 days 90%, 95% and 99% are delivered in 12 days.





    Can anyone, please, help me? I have been struggling for a few days now...
    Attached Files Attached Files
    Last edited by Arturs_I; 05-14-2019 at 05:20 AM.

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: SUM Row until certain criteria is met and give out header value.

    Hi

    Use this formula in BI2 and drag down and forward.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    New formula (no need MUNIT)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by José Augusto; 05-14-2019 at 05:50 AM. Reason: Used formula in row 25 chage to 2 and add a new formula

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: SUM Row until certain criteria is met and give out header value.

    Hi

    a first idea (Edit: second...hi José!): I've copied sheet1 (new sheet database)

    In database in B2 to be copied across

    =Sum(Sheet1!$B2:B2)

    In Sheet1

    =AGGREGATE(15,6,$B$1:$BF$1/(DATABASE!$B2:$BF2>=BI$1),1)

    Regards
    Attached Files Attached Files
    Last edited by canapone; 05-14-2019 at 05:51 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  4. #4
    Registered User
    Join Date
    12-12-2018
    Location
    Latvia, Liepaja
    MS-Off Ver
    2013
    Posts
    6

    Re: SUM Row until certain criteria is met and give out header value.

    Amazing, Thank you! Works perfect!

    You made my day!! Happy to receive help in such a short time period!
    Last edited by Arturs_I; 05-14-2019 at 06:51 AM. Reason: More praise :)

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: SUM Row until certain criteria is met and give out header value.

    You are welcome.

    Thanks for the added reputation points.

  6. #6
    Registered User
    Join Date
    12-12-2018
    Location
    Latvia, Liepaja
    MS-Off Ver
    2013
    Posts
    6

    Post Re: SUM Row until certain criteria is met and give out header value.

    You are welcome

    Can you please help a little bit further?

    I would like to know the period of days when the items are received. I have replaced the % data( 85% 90% 95% 100%) with working days 5,10,15,20,25,30.., the same formula does not work
    Attached Files Attached Files

  7. #7
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: SUM Row until certain criteria is met and give out header value.

    Hi @Arturs_I

    The first problem is the empty values. With a simple multiplication by 1, we solve this.

    The second problem is the column labels. In the OP are the same MATCH results and there was no need to use those labels.
    We can solve this with the INDEX

    Try this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-12-2018
    Location
    Latvia, Liepaja
    MS-Off Ver
    2013
    Posts
    6

    Re: SUM Row until certain criteria is met and give out header value.

    Thank you for the reply! But I was looking for another result. Maybe we can try one more time?


    The data between rows B2:BF2 is the count of deliveries received in a Time scale which is B1:BF57.
    I have added the result manualy in columns BI BJ & BK.


    Looking forward to your reply.


    Edit: I can actualy set up SUM ranges in Columns BI BJ & BK and there will be no ned for a large formula
    Attached Files Attached Files
    Last edited by Arturs_I; 05-14-2019 at 10:37 AM. Reason: Solution

  9. #9
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: SUM Row until certain criteria is met and give out header value.

    Hi

    The problem you posted now is completely different for the first post.

    Anyway use this formula IN BI2 and drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and set BH1=0

+ 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] Extract selected column data based on column header info
    By ajay6985 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-09-2017, 02:07 AM
  2. [SOLVED] Deleting column based on Column header date less than today
    By daryl83 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2017, 02:44 PM
  3. Run Syntax Based off Column Header Not Hardcoded Column Number
    By SmithStanley1212 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2017, 12:42 PM
  4. macro to lock cell by column header based on value in another cell by column header
    By Closet Guru in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-03-2015, 12:36 PM
  5. Return column header based on column criteria and number value
    By bwill22 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-07-2014, 07:33 PM
  6. Replies: 1
    Last Post: 01-30-2014, 01:42 PM
  7. Conditional Format an Entire Column based on percentage of another Column
    By Nolson24 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-29-2013, 09:23 AM

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