Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
pm pm is offline
external usenet poster
 
Posts: 122
Default Match formula not returning correct values.

I have a spreadsheet I am trying to match like model numbers, however, my
formula is returning #N/A, or if there is a match it returns some number. I
am using =match(A2,D$2:D$24360). Thanks for any help

A B C
D
Model # Serial # Model
32HL67 AM339004740 #N/A C2405
32HL67U AM379011491 #N/A TM233XC
32HL67U AM37010883 #N/A TM243XC
32HL67U AM37021155 #N/A PT46DL10

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Match formula not returning correct values.

First, since you're matching on text, you may want to look for an exact match:

=match(a2,d$2:d$24360,0)

And =match() returns the row number in that range for the first cell that
matched values. If there is no match, you get the error.

Maybe you wanted an indicator to show if there was a match or not:

=isnumber(match(a2,d$2:d$24360,0))
will return True if there's a match, False if there is no match.



pm wrote:

I have a spreadsheet I am trying to match like model numbers, however, my
formula is returning #N/A, or if there is a match it returns some number. I
am using =match(A2,D$2:D$24360). Thanks for any help

A B C
D
Model # Serial # Model
32HL67 AM339004740 #N/A C2405
32HL67U AM379011491 #N/A TM233XC
32HL67U AM37010883 #N/A TM243XC
32HL67U AM37021155 #N/A PT46DL10


--

Dave Peterson
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
My IF in Excel formula is not returning the correct value. Steph Excel Worksheet Functions 10 August 18th 06 06:29 PM
Returning MULTIPLE values with Index and Match Fly Excel Discussion (Misc queries) 1 June 1st 06 05:50 PM
MAX Function not returning correct value Phil Excel Worksheet Functions 4 April 28th 06 10:14 PM
VLOOKUP not returning correct value leigh Excel Worksheet Functions 6 October 13th 05 12:22 PM
Vlookup not returning correct value Mandy Brookes Excel Worksheet Functions 1 January 26th 05 12:12 PM


All times are GMT +1. The time now is 05:36 AM.

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"