View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default SUM of INDEX lookups

What do you mean by "What it is doing etc" Have you ever gotten it to work
or did you mean "What I hoped it would do etc"?
Where is the data you want to lookup, in one or multiple columns?

=SUMIF(B1:B700,A57,C1:C700)

if it would be one column in this example column C

=SUMPRODUCT((B1:B700=A57)*(C1:E700))

more than one column, in this example columns C:E

note that the totaled column(s) need to be numeric for the last formula, if
there are text values as well it will return an error. If you have numbers
in All columns from C to FS you should rethink the design



--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com





"Liz Steffen" wrote in message
...
Here is my syntax for summing looked up fields. What it is doing is
looking
up all downtime minutes in the Header sheet for shift 1. But I get #REF
as
the answer. Can someone please help? A57 hold 1 for the shift number,
B1:B700 holds the shift number in the data and A:FS is the enitre data
set.

=SUM(INDEX(Header!A:FS,MATCH(A57,Header!B1:B700,0) ))

--
-----
Thank you,
Liz