+ Reply to Thread
Results 1 to 10 of 10

Calculate Structure QUANTITY

  1. #1
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Calculate Structure QUANTITY

    Hi,

    Please see attached.
    Depending IF Column B="ASM" and ASM Level from Column C, I need formula at E4
    Basically is a bill quantity

    Thanks all
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2412
    Posts
    1,508

    Re: Calculate Structure QUANTITY

    I see no consistency here.
    C5 and C6 are 1, then formula in E will multiply two rows from D.
    C7 and C8 are 2, then formula in E will multiply three rows from D.

    But then,
    C11, C14 and C15 are 2, then formula in E will multiply TWO rows from D, instead of three.

    Please define a criterion so a formula or some other solution can be used.

  3. #3
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Calculate Structure QUANTITY

    YES, I have input data manually so I made a mistake.
    Please see attached (disregard first attached)
    Attached Files Attached Files
    Last edited by AliGW; 03-23-2021 at 06:26 AM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2412
    Posts
    1,508

    Re: Calculate Structure QUANTITY

    Try in E4 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Again, I see inconsistency in your manual inputs in column M, thus some results differ from yours.
    I did it in F4 and down, so you compare with your values in column E.
    The formula multiplies D4 by current row value in D and by the number of rows in C up in column D.
    File attached. Please run some test and let us know how it goes.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Calculate Structure QUANTITY

    This is not what I am looking.
    Please see for example, rows 6,7,8
    6 is ASM at level 1
    7,8 are under 6 at level 2
    so I need d6*d7 and d6*d8
    Top D4 (top asm) is always 1 (maybe I shouldn't include at all)
    So results in E6,E7,E8 are correct

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Calculate Structure QUANTITY

    Please try at E4

    =PRODUCT(XLOOKUP(SEQUENCE(MAX(1,C4),,0),C$4:C4/(B$4:B4>""),D$4:D4,,,-1))*D4
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Calculate Structure QUANTITY

    Quote Originally Posted by Bo_Ry View Post
    Please try at E4

    =PRODUCT(XLOOKUP(SEQUENCE(MAX(1,C4),,0),C$4:C4/(B$4:B4>""),D$4:D4,,,-1))*D4
    Thank you so much Bo.
    Thank you again.

  8. #8
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Calculate Structure QUANTITY

    Hi,
    I need NEW formula at F4 for a NEW value in C (New C = Old C +1)
    So 0 is 1, 1 is 2, 2 is 3....
    At G, I have C4+1
    Thanks
    Attached Files Attached Files

  9. #9
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Calculate Structure QUANTITY

    Please try at H4

    =PRODUCT(IFERROR(XLOOKUP(SEQUENCE(G4-1),G$4:G4/(B$4:B4>""),D$4:D4,,,-1),1))*D4
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Calculate Structure QUANTITY

    Thank you so much

+ 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. Replies: 5
    Last Post: 10-02-2017, 04:00 PM
  2. formula to calculate remaing quantity
    By mazan2010 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-25-2016, 02:52 AM
  3. help required in excel to auto calculate a bonus structure
    By landyjay in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-28-2014, 01:49 PM
  4. Calculate price based on quantity
    By DieselNash in forum Excel General
    Replies: 5
    Last Post: 04-21-2009, 10:51 AM
  5. calculate the quantity of each size of an item
    By kimcole5 in forum Excel General
    Replies: 2
    Last Post: 11-26-2008, 01:32 PM
  6. [SOLVED] Calculate a quantity rebate
    By Sige in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-16-2006, 10:15 AM
  7. how do i calculate the order quantity?
    By cfo guy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-24-2005, 10: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