#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 177
Default index error

=INDEX('A2_Sensitivity Analysis'!$AJ$16:$BA$31,COLUMNS($A:I),ROWS($1:25))



This worked until I inserted a few rows on the worksheet 'A2_Sensitivity
Analysis'. Now I get #REF! error. I'm trying to reference cells in column
AV, in this case row 24 on 'A2_Sensitivity Analysis'.

The benefit of this formula is that I can drag it across, and it will
reference the other rows in the same column of worksheet A2_Sensitivity
Analysis.

I tried adjusting the formula, but since I don't really understand it I keep
getting #ref errors. Any suggestions on how to modify it? thanks very much.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default index error

Here is what happen

Index format is Index(Table Range, Row, Column). The function returns a
value from a table. the number of the Row or Column cannot exceed the size
of the table Your code returns 9 for the number of rows (columns A:I) and
25 for the number of rows. The size of the table is 16 rows ad 18 columns
(AJ to BA). You have the following

Index (Table 16 rows by 18 columns, Row 9, Column 25). 25 is larger than
18 so you get an error.

The problem was caused by the Table referencing sheet 'A2_Sensitivity
Analysis' and the columns not referencing a sheet. You code should of looked
like this

=INDEX('A2_Sensitivity Analysis'!$AJ$16:$BA$31,'A2_Sensitivity
Analysis'!COLUMNS($A:I),'A2_Sensitivity Analysis'!ROWS($1:25))

But this causes an error. When you added columns you changged the size of
the Table but the number of rows and columns did not change.


"SteveC" wrote:

=INDEX('A2_Sensitivity Analysis'!$AJ$16:$BA$31,COLUMNS($A:I),ROWS($1:25))



This worked until I inserted a few rows on the worksheet 'A2_Sensitivity
Analysis'. Now I get #REF! error. I'm trying to reference cells in column
AV, in this case row 24 on 'A2_Sensitivity Analysis'.

The benefit of this formula is that I can drag it across, and it will
reference the other rows in the same column of worksheet A2_Sensitivity
Analysis.

I tried adjusting the formula, but since I don't really understand it I keep
getting #ref errors. Any suggestions on how to modify it? thanks very much.

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
INDEX error geebee Excel Worksheet Functions 2 January 23rd 08 03:59 PM
INDEX MATCH #N/A Error wkjgmom Excel Worksheet Functions 3 November 26th 07 04:37 AM
#num Error index, match taxmom Excel Worksheet Functions 6 March 7th 06 08:21 PM
Index function error Motty Excel Worksheet Functions 4 December 4th 05 06:12 PM
INDEX and #REF error Neil Excel Discussion (Misc queries) 0 February 25th 05 03:17 PM


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

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"