+ Reply to Thread
Results 1 to 5 of 5

Getting Multiple Rows Total with Vlookup

  1. #1
    Registered User
    Join Date
    02-25-2014
    Location
    Turkey
    MS-Off Ver
    Excel 2010
    Posts
    77

    Getting Multiple Rows Total with Vlookup

    Hi,
    l find first variable from the table with vlookup formula and l bump with second variable. In this way, 15 lines continues one under. At the end, l take sum of the results.
    The following formula can do this process, but my other tables has more than 15 lines. Can we solve this with a short formula?

    Please Login or Register  to view this content.
    The sample file is attached.
    Regards.
    Sorry my language.
    Thank you for your help.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Getting Multiple Rows Total with Vlookup

    This formula will do the same calculation but needs to be entererd into at least TWO cells at once. I don't know why this formula does not give the right result when put into one cell. (if someone else could elaborate on that that would be great)

    Try using Control + Shift + Enter to enter this Array Formula into cells C18 and C19 at the same time
    =SUM(VLOOKUP(B3:B17,E3:G23,2,0)*C3:C17)

    And this formula in C20 and C21 at the same time
    =SUM(VLOOKUP(B3:B17,E3:G23,3,0)*C3:C17)
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

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

    Re: Getting Multiple Rows Total with Vlookup

    With Vlookup and a helpcolumn.

    See the attached file.

    The result is in the green cells.

    Please reply.
    Attached Files Attached Files
    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.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    Re: Getting Multiple Rows Total with Vlookup

    Try this formula in C19

    =SUMPRODUCT(SUMIF(E3:E22,B3:B17,F3:F22),C3:C17)

    change the highlighted part to G3:G22 for C20
    Audere est facere

  5. #5
    Registered User
    Join Date
    02-25-2014
    Location
    Turkey
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: Getting Multiple Rows Total with Vlookup

    Thank you for helping. Friends,
    Daddylonglegs, Formula is working perfect.
    Nice Day.

+ 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: 1
    Last Post: 11-16-2011, 09:10 AM
  2. Multiple total rows for tables
    By RickDM in forum Excel General
    Replies: 1
    Last Post: 08-20-2011, 07:57 AM
  3. Reading multiple lines in a VLOOKUP to provide a total?
    By Injury Finger in forum Excel General
    Replies: 4
    Last Post: 03-22-2010, 11:17 AM
  4. Multiple ccolums/rows to get data from multiple columns/rows (vlookup)
    By Ramzes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-18-2010, 05:35 AM
  5. Total # of used rows in multiple spreadsheets?
    By JP Romano in forum Excel General
    Replies: 0
    Last Post: 08-24-2009, 09:03 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