+ Reply to Thread
Results 1 to 4 of 4

Summing a Vlookup

  1. #1
    Registered User
    Join Date
    03-22-2004
    Posts
    14

    Summing a Vlookup

    Hi,

    Is there any way of summing values based on a lookup?

    i.e. =sum(vlookup(a1,table,2):vlookup(a1,table,4)

    This formula does not work, i want to sum the the values from cell 2 to 4, in the table, hence trying to sum '=sum(a2:a4)' from my table

    Please let me know if you need more clarity around this, and many thanks.

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,


    Please Login or Register  to view this content.
    HTH
    Carim

  3. #3
    Registered User
    Join Date
    03-22-2004
    Posts
    14
    Thanks for that, but it doesn't work. I get an error. :-(

    Any other ways of summing a range, based on a lookup?

    Thanks

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by jjj
    Thanks for that, but it doesn't work. I get an error. :-(

    Any other ways of summing a range, based on a lookup?

    Thanks
    Hi,

    When you used Carim's formula, if it doesn't work for you then you should paste back what you used and the row of data that you are looking for, and the type of error received, rather than just say 'it doesn't work' and leave the helpers here wondering what could be wrong.

    If the table covers column B & C, and your two Lookup values ae in A1 and A2 then

    =SUM(INDIRECT("C"&MATCH(A1,B$1:B$16,0)&":C"&MATCH(A2,B$1:B$16,0)))

    should do the trick for you, but it needs to be column specific and cannot use 'Table' type named ranges.

    hth
    ---
    Si fractum non sit, noli id reficere.

+ 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