View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
stevec stevec is offline
external usenet poster
 
Posts: 177
Default condense formula that sums 4 adjacent columns

JE, this formula works great, thanks.

I don't understand though why the you are replacing the DM4 and DM3 though.
Would have thought DM4 would have stayed DM4. If you have time, can you
explain how that works? I need to understand OFFSET better... thanks very
much for your help. SteveC

"JE McGimpsey" wrote:

One way:

=SUM(OFFSET(OFA!$DM3,MATCH(A2,OFA!$D$4:$D$6000,FAL SE),,,4))


In article ,
SteveC wrote:

Any suggestions on how to make this shorter?

=INDEX(OFA!$DM$4:$DM$6000,MATCH(A2,OFA!$D$4:$D$600 0,0),1)+INDEX(OFA!$DN$4:$DN$
6000,MATCH(A2,OFA!$D$4:$D$6000,0),1)+INDEX(OFA!$DO $4:$DO$6000,MATCH(A2,OFA!$D$
4:$D$6000,0),1)+INDEX(OFA!$DP$4:$DP$6000,MATCH(A2, OFA!$D$4:$D$6000,0),1)

many thanks!

SteveC