Thread: IF Formula
View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.misc
David Biddulph[_2_] David Biddulph[_2_] is offline
external usenet poster
 
Posts: 8,651
Default IF Formula

Not an IF formula, but try =SUM(OFFSET(A2,0,0,1,MATCH(K2,A1:E1,1)))
--
David Biddulph

"Lisa" wrote in message
...
I need help with the formula.

A B C D E
1 Jan Feb Mar Apr May
2 10 5 15 7 8

If K2 is Mar I need to sum A2 thru C2. If K2 is May I need to sum A2 thru
E2.

Thank you in advance.