Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I'm using MATCH to find a value in an array. B2:B35000 However, there are multiple matches. Right now it takes the first value it finds (from B2 to B35000). Can i tell excel to get the latest MATCH? (Search from 35000 to B2). gr, Gunti |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
The below array formula will return the row number of the last MATCH..
=MAX(IF(B2:B35000="findtext",ROW(B2:B35000))) If this post helps click Yes --------------- Jacob Skaria "Gunti" wrote: Hi, I'm using MATCH to find a value in an array. B2:B35000 However, there are multiple matches. Right now it takes the first value it finds (from B2 to B35000). Can i tell excel to get the latest MATCH? (Search from 35000 to B2). gr, Gunti |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
As a follow up to Jacob's post...
If you are unfamiliar with array formulas, they are entered differently than regular formulas. Your cursor must be in the Formula Bar and you must hit Ctrl+Shift+Enter to commit them, NOT just the enter key by itself. Excel will place curly braces {} around the formula to indicate its an array formula. You cannot put the curly braces in yourself... Excel must do it in response to the Ctrl+Shift+Enter sequence for the formula to work correctly. If you modify the formula at any time in the future, you must recommit the formula using the Ctrl+Shift+Enter sequence in order to get Excel to recognize it as an array formula again. -- Rick (MVP - Excel) "Jacob Skaria" wrote in message ... The below array formula will return the row number of the last MATCH.. =MAX(IF(B2:B35000="findtext",ROW(B2:B35000))) If this post helps click Yes --------------- Jacob Skaria "Gunti" wrote: Hi, I'm using MATCH to find a value in an array. B2:B35000 However, there are multiple matches. Right now it takes the first value it finds (from B2 to B35000). Can i tell excel to get the latest MATCH? (Search from 35000 to B2). gr, Gunti |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hey Jacob,
Thanks. I was looking for a formula that would give me the last value in a column with respect to some conditions(No TEXT & No '0'). With reference to formula I got how to get it done. Thanks Again! |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
In article ,
Gunti wrote: Hi, I'm using MATCH to find a value in an array. B2:B35000 However, there are multiple matches. Right now it takes the first value it finds (from B2 to B35000). Can i tell excel to get the latest MATCH? (Search from 35000 to B2). gr, Gunti To return the position, relative to B2, try... =LOOKUP(2,1/(B2:B35000=A2),ROW(B2:B3500)-ROW(B2)+1) To return the native position, try... =LOOKUP(2,1/(B2:B35000=A2),ROW(B2:B3500)) -- Domenic http://www.xl-central.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
PARTIAL TEXT MATCH SEARCHING FOR THE FIRST 6 CHARACTERS? | Excel Worksheet Functions | |||
use match from the bottom to the top. | New Users to Excel | |||
use match from the bottom to the top. | New Users to Excel | |||
Searching, matching then searching another list based on the match | Excel Discussion (Misc queries) | |||
Searching for partial text match in range | Excel Worksheet Functions |