+ Reply to Thread
Results 1 to 8 of 8

Vlookup Total

  1. #1
    Forum Contributor
    Join Date
    06-12-2007
    Posts
    144

    Vlookup Total

    Is it possible to do this:

    Create a function like a vlookup that will:

    select all rows where
    column A = value 1
    AND
    column B = value 2

    return the TOTAL of ALL figures in column C for those selected.


    Or more simply-
    Lookup column A and return the total of column B for all the matches.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You can use Sumproduct()

    e.g

    =Sumproduct(--(A1:A100=value1),--(B1:B100=value2),C1:C2)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    06-12-2007
    Posts
    144
    Sorry I dont understand..

    Here is my worksheet.

    My data is in 3 columns: O P and Q

    So in my table, C3 needs to show the total number of the product number (B) in that month (C) from the qty's (Q)

    There is often more than 1 listing of each product in each month. They need to be totalled.
    Attached Files Attached Files

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Hi treva,

    Put this formula into cell C3 and then fill right for each month, and fill downward to the bottom of your product list (in column B). It should give you the right totals.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-04-2007
    Posts
    3
    Hi,

    Please see the attachement. I hope it will work for you.

    Plitfyg
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    06-12-2007
    Posts
    144

    Smile

    Perfect, thanks guys

  7. #7
    Forum Contributor
    Join Date
    06-12-2007
    Posts
    144
    OK here's another question.

    I have a similar problem and so far I have but its not working right:
    Please Login or Register  to view this content.
    So it looks up col E to match R4 (right?)
    also matches col C to match S4 (right?)
    Then it is supposed to give me the average of those numbers in col M (there should be 7 matches)

  8. #8
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Mind is slow this arvo so can't make SUMPRODUCT tweak that way. Have to revert to the old array entered

    =AVERAGE(IF((E4:E800=R4)*(C4:C800=S4),M4:M800,""))


    HTH

    rylo

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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