+ Reply to Thread
Results 1 to 11 of 11

VLOOKUP & Adding results

  1. #1
    Forum Contributor
    Join Date
    05-27-2014
    Posts
    141

    VLOOKUP & Adding results

    Hi All,

    In the table below I am trying to makeup a vlookup work with adding all the results in one go, is there a way around it?

    Looking at the table below, I would like to lookup each entry in column B and add all the results within columns C:E

    so the results would look like

    GER = 5
    XRAY = 8
    CTC = 38
    TLS = 50

    Untitled.jpg

    Thanks for any help

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: VLOOKUP & Adding results

    Why not create a helper column that has a subtotal of each TYPE. so then you can VLOOKUP that helper column that already has the total?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: VLOOKUP & Adding results

    Perhapos use SUMIF()?

    If you still have a problem, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: VLOOKUP & Adding results

    Perhaps use SUMIF()?

    If you still have a problem, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    Last edited by FDibbins; 12-28-2014 at 05:05 PM.

  5. #5
    Forum Contributor
    Join Date
    05-27-2014
    Posts
    141

    Re: VLOOKUP & Adding results

    sumif works I can just go sumif+sumif+sumif+ for each of the three columns thanks guys


    ***** wrong idea in my own mind *****
    Last edited by gassiusmax; 12-28-2014 at 05:11 PM.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: VLOOKUP & Adding results

    Uploaqd a sample workbook, not a pic please

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: VLOOKUP & Adding results

    Something like this...

    Array entered**:

    =SUM(IF(B2:B8="GER",C2:E8))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  8. #8
    Forum Contributor
    Join Date
    05-27-2014
    Posts
    141

    Re: VLOOKUP & Adding results

    Hiya,

    here is the sample data, I tried sumif and for the first three columns it works but after that i am stumped

    In the sample I listed the formula to go in B5 and C5 its actually B17 and C17 - Sorry

    Thanks

    Danny
    Attached Files Attached Files

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: VLOOKUP & Adding results

    Try this, copied down and across...
    =SUMPRODUCT(($B$3:$B$9=$A17)*($C$2:$H$2=B$16)*$C$3:$H$9)

  10. #10
    Forum Contributor
    Join Date
    05-27-2014
    Posts
    141

    Re: VLOOKUP & Adding results

    That worked perfect thank you

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: VLOOKUP & Adding results

    Happy to help and thanks for the feedback

+ 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. A simple one (adding vlookup results)
    By codyryan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-10-2013, 11:50 AM
  2. VLookup that Results with False or Blank Results
    By mycon73 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-12-2013, 07:16 PM
  3. [SOLVED] Adding Multiple Results Using Vlookup
    By hawong in forum Excel General
    Replies: 16
    Last Post: 07-09-2012, 04:06 PM
  4. Excel 2008 : Help with adding results derived from VLOOKUP
    By SunshineCharlie in forum Excel General
    Replies: 6
    Last Post: 04-25-2012, 04:16 PM
  5. Adding Multiple VLOOKUP Results
    By Phillycheese5 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-12-2007, 12:02 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