View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Don Guillett Don Guillett is offline
external usenet poster
 
Posts: 10,124
Default Sum results of VLOOKUP

to count
=SUMPRODUCT((J1:J21={"gala","fuji"})*1)
to sum col K
=SUMPRODUCT((J1:J21={"gala","fuji"})*k1:k21)
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Don Guillett" wrote in message
...
Post your layout
apple gala
apple fuji
etc.
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Dewayne" wrote in message
...
I have a list in an Excel worksheet that is also used as a VLOOKUP table
to
calculate values applied to various products, specifically, varietal
names of
fruits such as apples, pears, cherries etc. Each fruit has several names
of
its varieties listed in the table (as an example apples are listed as
Gala,
Braeburn, Fuji etc.). The variety names for each fruit are inter-mixed
with
other fruit's variety names in the table to accomplish the "sort by
ascending" requirement for a VLOOKUP table.
The result of the VLOOKUP is used to multiply (or divide) by the values
in a
different cell to create a value in the dependent cell.
What I need to accomplish is to "sum" the values in the range of
dependent
cells for only a specific fruit i.e. apple varieties, then pear
varieties,
etc. so that I end up with total values by fruit for apples, pears,
cherries
or any other fruits on the list.
Any suggestion would be apprecited.
Thank you,
Dewayne
--
Dewayne