+ Reply to Thread
Results 1 to 15 of 15

VLOOKUP against two tabs that sums the results

  1. #1
    Registered User
    Join Date
    03-26-2018
    Location
    Bath, England
    MS-Off Ver
    Google Docs
    Posts
    8

    VLOOKUP against two tabs that sums the results

    I'm currently working on a stock spreadsheet, we get our weekly sales from two separate channels that then need to be combined and summed into one cell next to each product title. The weekly stock figures will not always contain all product titles that appear on the main stock sheet.

    How can I in one formula lookup against two tabs (each with each set of sales) for the product title and combine the sales figures?

    Any help appreciated!

    Thanks

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: VLOOKUP against two tabs that sums the results

    Maybe something like:
    =SUMPRODUCT(SUMIF(INDIRECT("'"&Sheet1:Sheet2&"'!A1:A100"),A1,INDIRECT("'"&Sheet1:Sheet2&"'!B1:B100")))

    Red: Your sheet names
    Green: Product range
    Blue: Sales figures range
    Purple: the product that you are looking for

  3. #3
    Registered User
    Join Date
    03-26-2018
    Location
    Bath, England
    MS-Off Ver
    Google Docs
    Posts
    8

    Re: VLOOKUP against two tabs that sums the results

    Hi Paul,

    Thanks for your reply, I've tried putting the formula in but it just comes up with #N/A 'Argument must be a range', how can I get around this?

    Thanks

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: VLOOKUP against two tabs that sums the results

    Can you please upload a small sample file with the expected output? To upload a file, Go advanced, Mange attachments, Upload file. Thanks.

  5. #5
    Registered User
    Join Date
    03-26-2018
    Location
    Bath, England
    MS-Off Ver
    Google Docs
    Posts
    8

    Re: VLOOKUP against two tabs that sums the results

    Hi Paul,

    Sample file attached
    Attached Files Attached Files

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: VLOOKUP against two tabs that sums the results

    Try As post #2 suggested

    E2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  7. #7
    Registered User
    Join Date
    03-26-2018
    Location
    Bath, England
    MS-Off Ver
    Google Docs
    Posts
    8

    Re: VLOOKUP against two tabs that sums the results

    Thanks for your help, unfortunately it's not adding the sales from NOTHS tab, only taking from the ConC tab. Can anyone help?

    Thanks

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: VLOOKUP against two tabs that sums the results

    Please updated workbook with expected result

  9. #9
    Registered User
    Join Date
    03-26-2018
    Location
    Bath, England
    MS-Off Ver
    Google Docs
    Posts
    8

    Re: VLOOKUP against two tabs that sums the results

    Please see updated sheet attached, I have put in sales for the first product '12 Days Of Christmas Chocolate Selection' onto ConC & NOTHS tabs as an example but it's only taking from the ConC tab?
    Attached Files Attached Files

  10. #10
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: VLOOKUP against two tabs that sums the results

    "12 Days Of Christmas Chocolate Selection" sale in sheet ConC is 8 and in NOTHS is 6 which total should be =14 the result.

    Formula what i have given in post #6, is giving the same result. Now what you want

  11. #11
    Registered User
    Join Date
    03-26-2018
    Location
    Bath, England
    MS-Off Ver
    Google Docs
    Posts
    8

    Re: VLOOKUP against two tabs that sums the results

    Hi,

    I'm still only getting 8 with this formula, please see screenshot attached
    Attached Files Attached Files

  12. #12
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: VLOOKUP against two tabs that sums the results

    What version of excel you are using right now ?

  13. #13
    Registered User
    Join Date
    03-26-2018
    Location
    Bath, England
    MS-Off Ver
    Google Docs
    Posts
    8

    Re: VLOOKUP against two tabs that sums the results

    Hi, I am using google sheets as I don't have excel

  14. #14
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: VLOOKUP against two tabs that sums the results

    ok try

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  15. #15
    Registered User
    Join Date
    03-26-2018
    Location
    Bath, England
    MS-Off Ver
    Google Docs
    Posts
    8

    Re: VLOOKUP against two tabs that sums the results

    This one works, thank you for your help!

+ 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. Combine Vlookup with iferror and sums it up
    By gill123 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-13-2018, 01:49 PM
  2. [SOLVED] Multiplying the results of two columns of sums - Total Billed and Total Paid
    By stuprice in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-02-2017, 04:23 PM
  3. Replies: 1
    Last Post: 12-16-2016, 01:05 PM
  4. If Sums from two different sheets or vlookup or???
    By nicholsnj in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-08-2015, 02:47 PM
  5. [SOLVED] Need an IF function that SUMs the results from another column...
    By AnnaG87 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-02-2013, 12:42 PM
  6. [SOLVED] Help - vlookup that sums a range??
    By el4n in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-31-2012, 09:50 PM
  7. Copy pie chart into new tabs, and show the results from data on those tabs
    By Sydney Lee in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-23-2012, 07:50 PM

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