Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 38
Default use match from the bottom to the top.

the match function gives the index from the top
is it possible to use match from the bottom to the top?
ie. the meaning of "=MATCH(A1,$A$8:$A$1,0)"
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default use match from the bottom to the top.

What kind of result do you want?

MATCH returns a number that is the matched lookup_values *relative* position
in the lookup_array. You can use another formula that will "match" the *last
instance* of the lookup_value which means it is effectively working from
bottom to top.

--
Biff
Microsoft Excel MVP


"kang" wrote in message
...
the match function gives the index from the top
is it possible to use match from the bottom to the top?
ie. the meaning of "=MATCH(A1,$A$8:$A$1,0)"



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 38
Default use match from the bottom to the top.

what's the formula that gives the last one of the matched instance?

T. Valko wrote:
What kind of result do you want?

MATCH returns a number that is the matched lookup_values *relative* position
in the lookup_array. You can use another formula that will "match" the *last
instance* of the lookup_value which means it is effectively working from
bottom to top.

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default use match from the bottom to the top.

Assume:

A1:A10 is the range to search and you want the corresponding value from
B1:B10.

D1 = lookup_value

=IF(COUNTIF(A1:A10,D1),LOOKUP(2,1/(A1:A10=D1),B1:B10),"")

--
Biff
Microsoft Excel MVP


"kang" wrote in message
...
what's the formula that gives the last one of the matched instance?

T. Valko wrote:
What kind of result do you want?

MATCH returns a number that is the matched lookup_values *relative*
position
in the lookup_array. You can use another formula that will "match" the
*last
instance* of the lookup_value which means it is effectively working from
bottom to top.



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 match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
Lookup? Match? pulling rows from one spreadsheet to match a text f cjax Excel Worksheet Functions 3 July 21st 06 02:51 PM
Index Match Two columns Find Last Bottom henryriver1 Excel Worksheet Functions 4 May 26th 06 04:49 PM
dislike jump bottom of column by double-clicking the bottom of cel Joe Excel Discussion (Misc queries) 1 April 9th 06 09:27 PM
how to paste data from top to bottom to bottom to top Dave Peterson Excel Discussion (Misc queries) 0 January 25th 05 12:12 AM


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