LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
LLM77
 
Posts: n/a
Default Index and Row

In the following, I am summing a horizontal range in an array that changes or
gets extended each month. The formula looks at this month's date and then
matches it to the correct column. Then it sums the row from the beginning
date to through the new month.

If I use the index formula as it is here, it does not increment the row
number when it gets copied down the sheet:

=IF(A35<=$O$3,+N35-SUM(U35:INDEX($U$4:BP172,1,MATCH($O$3,$U$4:BP$4,1) ,1)),0)

If I add Row(), it doesn't return the correct total.

If I add Row(##), it works only if I start the numbering 3 rows before the
actual row used.

=IF(A35<=$O$3,+N35-SUM(U35:INDEX($U$4:BP172,ROW(P32),MATCH($O$3,$U$4:
BP$4,1),1)),0)

In this last formula, the row is actually row 35, but I used row 32 and got
the correct total.

Does anyone know what's wrong with the formula? Thanks.

 
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:26 AM.

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

About Us

"It's about Microsoft Excel"