+ Reply to Thread
Results 1 to 2 of 2

how to find all instances and then add all numbers

  1. #1
    Registered User
    Join Date
    07-01-2010
    Location
    california
    MS-Off Ver
    Excel 2003
    Posts
    4

    how to find all instances and then add all numbers

    I have this formula but I need it to find all instances and total up the result found in column 10 from each instance. Right now it just finds the first one and copies whats in column 10.

    Here is the formula I have
    =IF(ISERROR(VLOOKUP($A6,PREInvoice!$C$22:$L$42,10,0)),0,(VLOOKUP($A6,PREInvoice!$C$22:$L$42,10,0)))

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

    Re: how to find all instances and then add all numbers

    Hi Shnay,

    VLOOKUP only returns the first match found. You might want to try SUMIF or SUMPRODUCT, for example:

    =SUMIF(PREInvoice!$C$22:$C$42,$A6,PREInvoice!$L$22:$L$42)

    or

    =SUMPRODUCT(--(PREInvoice!$C$22:$C$42=$A6),PREInvoice!$L$22:$L$42)

    Hope that helps!

+ 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