+ Reply to Thread
Results 1 to 3 of 3

Compare the sum of the values of two mapped elements with one having duplicates

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    1

    Compare the sum of the values of two mapped elements with one having duplicates

    I have a very somewhat complicated question (at least to me ) and I'm hoping someone will be kind enough to help. I hope my explanation is good enough

    I have a mapping table like below, we have multiple elements b mapped to element a



    | Element a |Element b|
    |-------------|-------- |
    | B10 | 212010 |
    | B101 | 212010 |
    | B102 | 212010 |
    | B103 | 212010 |
    | B104 | 212010 |
    | B301 | 111030 |
    | B302 | 111030 |
    | B303 | 111030 |
    | B304 | 111030 |
    |---------------|-------- |



    Each element in the above table will have a value in another table:




    | Element A | Value |
    |-----------|-------------|
    | B10 | 1,000.00 |
    | B101 | 2,000.00 |
    | B102 | 6,000.00 |
    | B103 | 1,000.00 |
    | B104 | 10,000.00 |
    | B301 | 1,000.00 |
    | B302 | 2,000.00 |
    | B303 | 6,000.00 |
    | B304 | 1,000.00 |
    |-----------|-------------|


    | Element B | Value |
    |-----------|-------------|
    | 212010 | 20,000.00 |
    | 111030 | 10,000.00 |
    |-----------|-------------|




    I have to compare the value of the corresponding elements above using the mapping table, I'm looking for a solution that looks like the table below -



    snip.PNG

    Steps:

    1. Compare the value of each element side by side without duplicating element b
    2. if possible put a box around each mapped element and value

    I understand it may only be possible to the above using only VBA macros, but a similar solution using only excel formula will be very appreciated.

    The solution should be compatible with Excel 2003.

    Thank you very much
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Compare the sum of the values of two mapped elements with one having duplicates

    In cell C34, put:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In cell D34 put:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In cell E34 put:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy these formulae down to row 42.

    Sorry, I can't upload attachments from this computer! Hope the above is clear.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Compare the sum of the values of two mapped elements with one having duplicates

    Cross-posted:

    http://www.mrexcel.com/forum/excel-q...uplicates.html

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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: 4
    Last Post: 07-15-2013, 01:37 PM
  2. Replies: 3
    Last Post: 05-02-2013, 09:31 PM
  3. How to best display mapped XML with nested repeating elements
    By theblang in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-20-2010, 04:29 PM
  4. How to compare row values and delete duplicates
    By cachemoney44 in forum Excel General
    Replies: 1
    Last Post: 07-02-2009, 02:02 PM
  5. Replies: 8
    Last Post: 09-26-2008, 10:38 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