Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Luke
 
Posts: n/a
Default Sum and Index formula?

I have the following index formula '=INDEX(PlanPax,A21,$B$4)' where cell B4
is the month number e.g. 3 for March. How could I amend the formula (and cell
B4) so that I sum January to March (or columns 1 to 3)?

Luke
  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

Without knowing some specifics about your layout I can't give you a formula
example, but assuming your columns are Jan, Feb, Mar, etc I'd use something
like

=SUM(OFFSET(top_left_corner of PlanPax, A21,B4-2,1,3))

Duke

"Luke" wrote:

I have the following index formula '=INDEX(PlanPax,A21,$B$4)' where cell B4
is the month number e.g. 3 for March. How could I amend the formula (and cell
B4) so that I sum January to March (or columns 1 to 3)?

Luke

  #3   Report Post  
P Sitaram
 
Posts: n/a
Default

Assuming that you always need a three column offset, try:

=SUM(INDEX(PlanPax,A21,$B$4):INDEX(PlanPax,A21,$B$ 4+3)

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"