Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default MATCH not working

I'm trying to look up the relative position of an integer in an array
using the MATCH function. The array is on a worksheet titled 'pluto
ids' and the lookup_value is in a cell based on a formula in the
worksheet titled 'downloads'.

When I use the cell reference in the MATCH, I don't get any return
(result = #N/A). When I use the calculated integer itself in the
MATCH, it works just fine.

Here's the formula with the error: =MATCH(B8,'pluto ids'!A2:A66,0)
Here's the formula that results in the lookup_value (not that it
should matter): =RIGHT(RIGHT(A8,5),LEN(RIGHT(A8,5))-FIND("/",RIGHT(A8,
5))) (which works fine)

Any ideas as to why this isn't working would be greatly appreciated!!

Version: Excel v.2000

TIA,
David

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default MATCH not working

It might be text that is the problem, try

=MATCH(--B8,'pluto ids'!A2:A66,0)


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"David" wrote in message
ps.com...
I'm trying to look up the relative position of an integer in an array
using the MATCH function. The array is on a worksheet titled 'pluto
ids' and the lookup_value is in a cell based on a formula in the
worksheet titled 'downloads'.

When I use the cell reference in the MATCH, I don't get any return
(result = #N/A). When I use the calculated integer itself in the
MATCH, it works just fine.

Here's the formula with the error: =MATCH(B8,'pluto ids'!A2:A66,0)
Here's the formula that results in the lookup_value (not that it
should matter): =RIGHT(RIGHT(A8,5),LEN(RIGHT(A8,5))-FIND("/",RIGHT(A8,
5))) (which works fine)

Any ideas as to why this isn't working would be greatly appreciated!!

Version: Excel v.2000

TIA,
David



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default MATCH not working

Well, that worked! Can you please explain what the problem was and
what that did?!?!?

Thanks so much,
David

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default MATCH not working

Yeah sure.

The array that you were looking up was an array of numbers. The lookup up
value was being generated by

=RIGHT(RIGHT(A8,5),LEN(RIGHT(A8,5))-FIND("/",RIGHT(A8,5)))

which returns a text value (even though it looked like a number, RIGHT
returns a string). So you were looking up a text value within an array of
numbers, so it failed.

By putting the double unary before B8 in the lookup formula, --B, I forced
the textual number to a real number, which when looked up matches a value
within the array.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"David" wrote in message
oups.com...
Well, that worked! Can you please explain what the problem was and
what that did?!?!?

Thanks so much,
David



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default MATCH not working

BTW, you could also have changed the first formula in the same way

=--RIGHT(RIGHT(A8,5),LEN(RIGHT(A8,5))-FIND("/",RIGHT(A8,5)))

and keep the other formula as is.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"David" wrote in message
oups.com...
Well, that worked! Can you please explain what the problem was and
what that did?!?!?

Thanks so much,
David





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default MATCH not working

Of course! :

Thanks for the info Bob.

David

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
Vlookup with Match Not Working Paige Excel Worksheet Functions 4 December 12th 06 07:52 PM
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 not working frosterrj Excel Worksheet Functions 6 May 22nd 06 06:18 PM
Any way for 2 column vlookups. i.e match last name then match firs CraigS Excel Worksheet Functions 5 March 7th 06 12:30 AM


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