Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Index, Match and filters

I have a worksheet where I use the combination of the index & Match function
to retrieve data from other sheets in a workbook. The retrieved data is in
multiple rows and mltiple columns. Each column has autofilter enabled so I
can quickly sort for the rows with specific data. With Office 2003 the
autofilter also allows for quick sortation of the data. My problem is that
within the index match formula the match lookup value does not update row
number as the filter sorting is applied. In other words, if the original
match formula was referencing a lookup value in row 48 and that row changed
as a result of the sort to row 100 the formula still is referencing row 48
instead of the new row 100.

Does anyone know of a work arround? Is there a "trick" I am unaware of?
Thanks for any assistance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 82
Default Index, Match and filters

Try referencing entire columns in your index() and match() functions, using
syntax like B:B instead of specific rows like B1:B48

HTH,

TK

"Steve M" wrote:

I have a worksheet where I use the combination of the index & Match function
to retrieve data from other sheets in a workbook. The retrieved data is in
multiple rows and mltiple columns. Each column has autofilter enabled so I
can quickly sort for the rows with specific data. With Office 2003 the
autofilter also allows for quick sortation of the data. My problem is that
within the index match formula the match lookup value does not update row
number as the filter sorting is applied. In other words, if the original
match formula was referencing a lookup value in row 48 and that row changed
as a result of the sort to row 100 the formula still is referencing row 48
instead of the new row 100.

Does anyone know of a work arround? Is there a "trick" I am unaware of?
Thanks for any assistance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Index, Match and filters

I believe I have tried your suggestion. Here is more of what I have.

Formula initially in row 5 column B..

= Index(F:F, Match( C5, G:G, 0))

after a sort row 5 is now row 10 but the formula remains

= Index(F:F, Match( C5, G:G, 0))

instead of

= Index(F:F, Match( C10, G:G,0))

"T Kirtley" wrote:

Try referencing entire columns in your index() and match() functions, using
syntax like B:B instead of specific rows like B1:B48

HTH,

TK

"Steve M" wrote:

I have a worksheet where I use the combination of the index & Match function
to retrieve data from other sheets in a workbook. The retrieved data is in
multiple rows and mltiple columns. Each column has autofilter enabled so I
can quickly sort for the rows with specific data. With Office 2003 the
autofilter also allows for quick sortation of the data. My problem is that
within the index match formula the match lookup value does not update row
number as the filter sorting is applied. In other words, if the original
match formula was referencing a lookup value in row 48 and that row changed
as a result of the sort to row 100 the formula still is referencing row 48
instead of the new row 100.

Does anyone know of a work arround? Is there a "trick" I am unaware of?
Thanks for any assistance.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 82
Default Index, Match and filters

By chance, is there a sheet reference in front of the "Lookup_Value" of the
Match() formula? (I am presuming that this is on the same page as your
Index(Match)) formulas).

If you create a formula by paging back and forth among the worksheets in the
workbook, Excel will put a sheet reference in for each cell reference of the
formula you create... even references to the sheet the formula is on. Thus a
formula would look like =INDEX(Data!B:B,MATCH(Sheet1!A1,Data!A:A,0)) instead
of =INDEX(Data!B:B,MATCH(A1,Data!A:A,0)). Although the unnecessary sheet
reference is valid and seems to work in all other ways, the sheet references
seems to confuse Excel when you sort formulas with these unnecessary sheet
references.

If this is the cass, remove these extraneous sheet references, (only those
to the sheet the formula is on) and the sorting may work properly.

HTH,

TK
"Steve M" wrote:

I believe I have tried your suggestion. Here is more of what I have.

Formula initially in row 5 column B..

= Index(F:F, Match( C5, G:G, 0))

after a sort row 5 is now row 10 but the formula remains

= Index(F:F, Match( C5, G:G, 0))

instead of

= Index(F:F, Match( C10, G:G,0))

"T Kirtley" wrote:

Try referencing entire columns in your index() and match() functions, using
syntax like B:B instead of specific rows like B1:B48

HTH,

TK

"Steve M" wrote:

I have a worksheet where I use the combination of the index & Match function
to retrieve data from other sheets in a workbook. The retrieved data is in
multiple rows and mltiple columns. Each column has autofilter enabled so I
can quickly sort for the rows with specific data. With Office 2003 the
autofilter also allows for quick sortation of the data. My problem is that
within the index match formula the match lookup value does not update row
number as the filter sorting is applied. In other words, if the original
match formula was referencing a lookup value in row 48 and that row changed
as a result of the sort to row 100 the formula still is referencing row 48
instead of the new row 100.

Does anyone know of a work arround? Is there a "trick" I am unaware of?
Thanks for any assistance.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Index, Match and filters


Thanks for the help. There was a sheet reference for the lookup_value which
was valid but unecessary. I removed it as you suggested and it worked.
Thanks again.


"T Kirtley" wrote:

By chance, is there a sheet reference in front of the "Lookup_Value" of the
Match() formula? (I am presuming that this is on the same page as your
Index(Match)) formulas).

If you create a formula by paging back and forth among the worksheets in the
workbook, Excel will put a sheet reference in for each cell reference of the
formula you create... even references to the sheet the formula is on. Thus a
formula would look like =INDEX(Data!B:B,MATCH(Sheet1!A1,Data!A:A,0)) instead
of =INDEX(Data!B:B,MATCH(A1,Data!A:A,0)). Although the unnecessary sheet
reference is valid and seems to work in all other ways, the sheet references
seems to confuse Excel when you sort formulas with these unnecessary sheet
references.

If this is the cass, remove these extraneous sheet references, (only those
to the sheet the formula is on) and the sorting may work properly.

HTH,

TK
"Steve M" wrote:

I believe I have tried your suggestion. Here is more of what I have.

Formula initially in row 5 column B..

= Index(F:F, Match( C5, G:G, 0))

after a sort row 5 is now row 10 but the formula remains

= Index(F:F, Match( C5, G:G, 0))

instead of

= Index(F:F, Match( C10, G:G,0))

"T Kirtley" wrote:

Try referencing entire columns in your index() and match() functions, using
syntax like B:B instead of specific rows like B1:B48

HTH,

TK

"Steve M" wrote:

I have a worksheet where I use the combination of the index & Match function
to retrieve data from other sheets in a workbook. The retrieved data is in
multiple rows and mltiple columns. Each column has autofilter enabled so I
can quickly sort for the rows with specific data. With Office 2003 the
autofilter also allows for quick sortation of the data. My problem is that
within the index match formula the match lookup value does not update row
number as the filter sorting is applied. In other words, if the original
match formula was referencing a lookup value in row 48 and that row changed
as a result of the sort to row 100 the formula still is referencing row 48
instead of the new row 100.

Does anyone know of a work arround? Is there a "trick" I am unaware of?
Thanks for any assistance.



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
Finding text strings in complex situations Hardel Excel Discussion (Misc queries) 6 July 25th 06 01:55 PM
Finding active filters in Excel. topjmy Excel Discussion (Misc queries) 0 December 1st 05 03:30 PM
index / match ? Benjamin Excel Worksheet Functions 10 November 1st 05 06:48 PM
advanced filters jiwolf Excel Worksheet Functions 4 October 18th 05 06:08 PM


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