Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lmbank
 
Posts: n/a
Default Index Row


In the following, I am summing a horizontal range 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
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 answer.

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 answer.

Anyone know what's going on here or a better way to sum a horizontal
range that changes each month? Thanks.


--
Lmbank
------------------------------------------------------------------------
Lmbank's Profile: http://www.excelforum.com/member.php...o&userid=29782
View this thread: http://www.excelforum.com/showthread...hreadid=494905

 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to automatically number an index column Phil Excel Worksheet Functions 13 October 25th 05 01:36 PM
Formatting result of Index function ExcelFred Excel Worksheet Functions 5 July 26th 05 01:34 PM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Min formula not returning value from Index ExcelMonkey Excel Worksheet Functions 3 January 29th 05 01:47 AM
index to a range of cells Frank Kabel Excel Worksheet Functions 0 October 27th 04 05:39 PM


All times are GMT +1. The time now is 06:43 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"