View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
se7098 se7098 is offline
external usenet poster
 
Posts: 79
Default VLookup multiple values - sum returned values into single cell

That worked too! Thank you so very much also! This is the best resource i
have ever found. Thanks to all!

"T. Valko" wrote:

List your criteria city names in a range of cells:

D1 = alpharetta
D2 = austin
D3 = bakersfield
D4 = carrollton

Big list of city names = A1:A10
Values to sum = B1:B10

Then:

=SUMPRODUCT(--(ISNUMBER(MATCH(A1:A10,D1:D4,0))),B1:B10)


--
Biff
Microsoft Excel MVP


"se7098" wrote in message
...
i have multiple values to lookup...i.e., alpharetta, austin, bakersfield,
carrollton...i want to search for all of those and return the sum into a
single cell

City Customers
Alpharetta 2394
Anaheim 665
Antioch 482
Austin 356
Bakersfield 794
Boca Raton 363
Brunswick 142
Buena Park 339
Canoga Park 984
Carrollton 540


"T. Valko" wrote:

If this is what you have:

...........A.............B
1..Pittsburgh......10
2. Baltimore.......0
3..Pittsburgh......20
4..Cleveland......0
5..Cincinnati......-5

And you want to sum values that correspond to Pittsburgh:

=SUMIF($A$1:$A$5,"Pittsburgh",$B$1:$B$5)

Better to use cells to hold the criteria:

D1 = Pittsburgh

=SUMIF($A$1:$A$5,D1,$B$1:$B$5)

--
Biff
Microsoft Excel MVP


"se7098" wrote in message
...
I have found several items close to what i need but nothing exact. I
need
to
perform a vlookup consisting of multiple values (names of cities) then
return
the sum of that result into a single cell. Is this possible? brand new
to
vlookup so dummy it down for me, please. :)