+ Reply to Thread
Results 1 to 9 of 9

Multiplication with levels problem eg 1.1.4.2

  1. #1
    Registered User
    Join Date
    09-10-2017
    Location
    Auckland,New Zealand
    MS-Off Ver
    2016
    Posts
    59

    Multiplication with levels problem eg 1.1.4.2

    Hey,

    I am a bit stuck on this issues for a while now.

    I have a qty field on different levels and i would like them multiplied by the parent level and the whole way up the tree. It probably easier to show you , i have added a workbook to help explain.

    eg. 1.1.4 would be the qty beside level 1 X qty beside lvl 1.1 X qty beside lvl 1.1.4

    Cheers,

    Brian
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    514

    Re: Multiplication with levels problem eg 1.1.4.2

    Try placing the following array formula (to be entered using Ctrl+Shift+Enter, not just Enter) in cell C2 and drag-copying it down as needed:

    =PRODUCT(INDEX($B$2:$B$14,N(IF(,,MATCH(LEFT($A2,ROW(INDIRECT("1:"&(LEN($A2)+1)/2))*2-1),$A$2:$A$14&"",)))))

  3. #3
    Registered User
    Join Date
    09-10-2017
    Location
    Auckland,New Zealand
    MS-Off Ver
    2016
    Posts
    59

    Re: Multiplication with levels problem eg 1.1.4.2

    Damn man,

    After looking at it i still don't know what you did or what Ctrl+Shift+Enter does but it works. Your a genius.

    Cheers =)

  4. #4
    Registered User
    Join Date
    09-10-2017
    Location
    Auckland,New Zealand
    MS-Off Ver
    2016
    Posts
    59

    Re: Multiplication with levels problem eg 1.1.4.2

    This is part of a big list of levels where there may be multiple occurrences of 1, 1.1 etc. Using the formulae above, this would calculate all 1s in the array.

    If i added an extra field say A1, A1.1, B1, B1.1. The formulae does not work, Would it be possible to work around this?

    Thanks,

  5. #5
    Registered User
    Join Date
    09-10-2017
    Location
    Auckland,New Zealand
    MS-Off Ver
    2016
    Posts
    59

    Re: Multiplication with levels problem eg 1.1.4.2

    Or would it be possible to group this calculation depending on another column (say D) which contains a,b,c etc. So as we have above but only include the entry's that are grouped together.

  6. #6
    Registered User
    Join Date
    09-10-2017
    Location
    Auckland,New Zealand
    MS-Off Ver
    2016
    Posts
    59

    Re: Multiplication with levels problem eg 1.1.4.2

    Does that make sense?

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,879

    Re: Multiplication with levels problem eg 1.1.4.2

    Perhaps if you upload another example that shows what you want (manually include expected results) someone could help.
    Let us know if you have any questions.
    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
    09-10-2017
    Location
    Auckland,New Zealand
    MS-Off Ver
    2016
    Posts
    59

    Re: Multiplication with levels problem eg 1.1.4.2

    Hey Root,

    That formulae worked really well. The only issue is it causes an error once the indent goes past 9. e.g. 1.10. Do you have any idea how to fix this? That would be really helpful, thanks. Ad

  9. #9
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Multiplication with levels problem eg 1.1.4.2

    I agree with JeteMc give an example sheet with all eventualities and the expected solution.

    for example can the numbers be 2 digits or even 3, can the letters you have added be more than 1 character?

    It can be frustrating providing a solution for a question that doesn't reflect reality

+ 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] multiplication within levels
    By piku9290dgp in forum Excel General
    Replies: 8
    Last Post: 10-26-2017, 11:55 PM
  2. Declared ranges multiplication problem.
    By excelV3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2014, 06:44 PM
  3. [SOLVED] Rolling Multiplication Problem
    By bgates in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-05-2013, 03:00 PM
  4. Multiplication problem- Please Help!
    By millzenator in forum Excel General
    Replies: 8
    Last Post: 05-17-2006, 10:28 AM
  5. Multiplication problem
    By Ali Baba in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-04-2005, 08:05 PM
  6. multiplication problem
    By FM in forum Excel General
    Replies: 10
    Last Post: 04-21-2005, 11:06 AM
  7. Matrix multiplication problem
    By zsolt in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-09-2005, 08:24 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