ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   MATCH function (2003 - 2007) (https://www.excelbanter.com/excel-discussion-misc-queries/226848-match-function-2003-2007-a.html)

RL

MATCH function (2003 - 2007)
 

Why is it foruma #2 below returns "#N/A" in Excel 2007?

1. =MATCH(A2, A2:A25,0) [Excel 2007 returns the value of A2, assuming A2
contains one of the values found in A2:A25]

2. =MATCH (A2, B2, 0), where B2="A2:A25" [Excel 2007 returns "#N/A."]

RL
PS. In Excel 2003, both formula returns the same correct A2 value.




Sheeloo[_5_]

MATCH function (2003 - 2007)
 
Excel 2003 also returns #N/A
with
=MATCH(A2, B2,0)
with B having the value A2:A25 (without quotes)

However
=MATCH(A2, INDIRECT(B2),0)
works
-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"RL" wrote:


Why is it foruma #2 below returns "#N/A" in Excel 2007?

1. =MATCH(A2, A2:A25,0) [Excel 2007 returns the value of A2, assuming A2
contains one of the values found in A2:A25]

2. =MATCH (A2, B2, 0), where B2="A2:A25" [Excel 2007 returns "#N/A."]

RL
PS. In Excel 2003, both formula returns the same correct A2 value.




RL

MATCH function (2003 - 2007)
 
Thanks! It works...

"Sheeloo" wrote:

Excel 2003 also returns #N/A
with
=MATCH(A2, B2,0)
with B having the value A2:A25 (without quotes)

However
=MATCH(A2, INDIRECT(B2),0)
works
-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"RL" wrote:


Why is it foruma #2 below returns "#N/A" in Excel 2007?

1. =MATCH(A2, A2:A25,0) [Excel 2007 returns the value of A2, assuming A2
contains one of the values found in A2:A25]

2. =MATCH (A2, B2, 0), where B2="A2:A25" [Excel 2007 returns "#N/A."]

RL
PS. In Excel 2003, both formula returns the same correct A2 value.





All times are GMT +1. The time now is 12:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com