+ Reply to Thread
Results 1 to 2 of 2

Thread: V - Lookups

  1. #1
    Registered User
    Join Date
    04-14-2009
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    93

    V - Lookups

    Hello, I use a lot of V Lookups, but when I have data with the same reference several times, it will only insert the first value it comes accross. I have countered this by using a pivot on the data i am looking up. I was wondering if there was a formula that would sum all values with the same reference No?

    Any help is appreciated.

    Om

  2. #2
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: V - Lookups

    Sut mae, omletto,

    pivot tables are often the best way to go when you want to sum up data that falls into certain categories.

    You could also use SUMIF in Excel 2003 to add up all values that meet one specific criterion, e.g.

    =sumif(A1:A100,">30",C1:C100)

    This will add up all values in C where A is >30.

    If you have more than one condition, Excel 2003 can do that with Sumproduct, e.g.

    =sumproduct(--(A1:A100>30),--(B1:B100="apples"),C1:C100)

    This will sum up all the values in C where A is >30 AND B = "apples"

    In XL 2007 you can use Sumifs (note the S at the end) with multiple criteria, and it is much faster than Sumproduct.

    A pivot table, though, will beat any of the above formulae for efficiency with large datasets.

    hth

+ 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.2.0