+ Reply to Thread
Results 1 to 7 of 7

VLOOKUP - or other - that totals results that match

  1. #1
    Registered User
    Join Date
    10-14-2015
    Location
    Wiltshire, England
    MS-Off Ver
    2016
    Posts
    4

    VLOOKUP - or other - that totals results that match

    Hello all,

    I'm not sure the title is as clear as possible, but I'm not really sure how to explain this without pictures, so here goes!

    Picture one shows the first spreadsheet in Workbook 1. This is a long list with two identifier codes in columns A & E, and an amount in column H. When the codes in A & E are merged (as in column G) it more often than not produces a unique code, but some are duplicated.
    Spreadsheet.jpg

    Now onto the second spreadsheet in Workbook 2. By using VLOOKUP - or another function if it's better for the job - I want to look up the codes in A3 & C1, A4 & C1, A5 & C1 etc on the first workbook, and have the amounts appear in the 'Oct' column.
    Picture2.jpg

    I've been able to do this when the code in workbook 1 in column G has been unique, but with code 'ABC123A1234B' for example, there are two lines in workbook 1. What would I have to use - if anything works - to look this up from workbook 2, add the two amounts together, and produce them in cell C3 in workbook 2?

    Many thanks in advance!

    Please note, while the example comes from Office 2013, I'll actually need it to work in 2003! From the ark, I know...

  2. #2
    Registered User
    Join Date
    09-27-2015
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    4

    Re: VLOOKUP - or other - that totals results that match

    Hey,

    I am not sure if you use commas or semicolons in Formulas in England so you may have to adapt that.

    Please Login or Register  to view this content.
    Julian

  3. #3
    Registered User
    Join Date
    10-14-2015
    Location
    Wiltshire, England
    MS-Off Ver
    2016
    Posts
    4

    Re: VLOOKUP - or other - that totals results that match

    unsuitable_ - Thank you so much! That worked perfectly!

    I've now come across a slightly more complicated issue. On the second screenshot where I have 'Code 2' I now have 27 codes there instead of 1. I tried using your formula 27 times with '+' in between, but it only let me do about 9 before it tells me the formula is too long.

    Any ideas?

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,676

    Re: VLOOKUP - or other - that totals results that match

    Please post a small sample illustrating the outcomes you want.

    Click "Go Advanced" the paper Clip icon to upload a file.

  5. #5
    Registered User
    Join Date
    10-14-2015
    Location
    Wiltshire, England
    MS-Off Ver
    2016
    Posts
    4

    Re: VLOOKUP - or other - that totals results that match

    Basically I want exactly what I described in the first post, and what the formula that unsuitable_ provided me with does, except that image two has now changed to this:

    Excel.png
    Attached Images Attached Images

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,676

    Re: VLOOKUP - or other - that totals results that match

    Many of us cannot view images so please upload a file.

  7. #7
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: VLOOKUP - or other - that totals results that match

    Can't view them is one thing but even if you can they don't help much.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

+ 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. Splitting vlookup results if conditions don't match
    By Don Adeks in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-11-2015, 12:10 PM
  2. [SOLVED] Need to sum Vlookup Match results
    By neilkotze in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-06-2015, 11:11 AM
  3. Vlookup and Match results given by a formula
    By Adys747 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-23-2014, 09:46 AM
  4. Vlookup and Match results given by a formula
    By Adys747 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-22-2014, 06:11 PM
  5. possible Vlookup or match formula to return results.
    By mcranda in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-02-2013, 03:16 PM
  6. If/VLookup/Match Formula Results Inconsistent
    By hardpenguin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-08-2010, 05:05 PM
  7. VBA - how to get ALL matching results using MATCH() or VLOOKUP()
    By kala1928 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-08-2010, 04:39 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