+ Reply to Thread
Results 1 to 6 of 6

Formula (vlookup / hlookup combined with selected sums) needed

Hybrid View

  1. #1
    Registered User
    Join Date
    08-08-2014
    Location
    Zurich
    MS-Off Ver
    Excel 2010
    Posts
    8

    Formula (vlookup / hlookup combined with selected sums) needed

    Dear All,

    basically I have two questions, details in my excel sheet:
    - why does my vlookup not work in the sheet
    - how can I combine vlookup (or hlookup) with selected sums
    ExplanationOfProblem.xlsx

    it would be great if you could help me to solve this with a formula, rather than PIVOT or changing the layout a lot. there is quite a large original file and I have not many options to change the layout..

    thanks a lot!

    kind regards,
    Sandra

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Formula (vlookup / hlookup combined with selected sums) needed

    Hi Sandra,

    If you are looking for summations based on certain criteria, then SUMIFS would be a better function choice rather than VLOOKUP.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    08-08-2014
    Location
    Zurich
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Formula (vlookup / hlookup combined with selected sums) needed

    hi!

    many t hanks for the hint, seems that lookups are not necessary then..

    I just still have troubles. I know how to do a basic sumif which links to other cells (=SUMIF(H5:H10,TRUE,Sheet2!C8:H8). however, here I have the problem that I have
    - several events -> and I want to show the sum per event (in column D on sheet 1) -> and I want this sum to only include the selected companies.

    Sorry, might be very basic for you but I just can't find out how to do it

    many thanks!

    kind regards,
    Sandra

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Formula (vlookup / hlookup combined with selected sums) needed

    In your example document, in cell C6 on Sheet1, try this:

    =SUMIFS(Sheet2!$I$8:$I$13,Sheet2!$A$8:$A$13,A6,Sheet2!$B$8:$B$13,B6)
    The formula for D6 will need to be an array formula:

    =SUMPRODUCT(INDEX(Sheet2!$C$8:$H$13,MATCH(A6&B6,Sheet2!$A$8:$A$13&Sheet2!$B$8:$B$13,0),0),--TRANSPOSE($H$5:$H$10))
    confirm as an array formula with Ctrl-Shift-Enter.

    Copy both formulae down.

    Cheers,

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula (vlookup / hlookup combined with selected sums) needed

    I know you asked not for an pivot table.

    But I think a pivot table is very usefull to this problem.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Registered User
    Join Date
    08-08-2014
    Location
    Zurich
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Formula (vlookup / hlookup combined with selected sums) needed

    Dear All,

    many thanks for helping out.

    @ConneXionLost: Many thanks for your help and for specifying the exact formulas - much appreciated!

    @oeldere: thanks for the link, I will look into it. Pivot was something I always tried to avoid but maybe (with a smaller file than the one I have here) I will try to use it

    best regards,
    Sandra

+ 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] Vlookup and Hlookup combined
    By concatch in forum Excel General
    Replies: 5
    Last Post: 07-07-2017, 09:31 AM
  2. [SOLVED] Vlookup, Hlookup or combined?
    By Dewdrop in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-06-2014, 01:05 PM
  3. [SOLVED] Is there a combined VLOOKUP & HLOOKUP function?
    By AndyGW in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-04-2012, 10:08 AM
  4. [SOLVED] VLookup and HLookup Combined?
    By Jmarsh4 in forum Excel General
    Replies: 2
    Last Post: 05-15-2012, 01:44 PM
  5. Hlookup and Vlookup Combined (Match?)
    By batman1056 in forum Excel General
    Replies: 3
    Last Post: 06-21-2010, 04:33 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