#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default match-up formula

I need to create a match-up formula that returns the value from another
column. I have 2 columns (trailer numbers and their corresponding
commodity), and I have another column which has the same trailer numbers and
I want to create a match-up program that will search in column D for a match
in column A, then return its value in column B; here is an example:

Column A Column B Column D Column E
Trailer Commodity Trailer (match trailer# in col. D w/ col. A
5271 Clamp 5271 return value in col. B)
5502 Clamp 7912
7912 Clamp 8659
8592 Clamp 8682
8659 Clamp 8900
8682 Cart 9233
8900 Clamp 10837
9233 Clamp
10837 Clamp
10908 Clamp

i tried VLOOKUP but it only works for trailer #'s that start with a letter,
not the trailer #'s with a number (it returns #N/A in this case).

Thanks for your help.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 143
Default match-up formula

The problem you are having with your VLOOKUP is probably that trailer numbers
in one column are formatted at text, while the trailer number in the other
columns are formatted as numbers.

My guess is that column A has the text values. You can format your column D
to be text by simply using ="&D1. This will make your value text and your
look should work fine.

Post back to let us know how it worked out.

--
Regards,

PJ
Please rate this post using the vote buttons if it was helpful.



"Melvin_Flint_2247" wrote:

I need to create a match-up formula that returns the value from another
column. I have 2 columns (trailer numbers and their corresponding
commodity), and I have another column which has the same trailer numbers and
I want to create a match-up program that will search in column D for a match
in column A, then return its value in column B; here is an example:

Column A Column B Column D Column E
Trailer Commodity Trailer (match trailer# in col. D w/ col. A
5271 Clamp 5271 return value in col. B)
5502 Clamp 7912
7912 Clamp 8659
8592 Clamp 8682
8659 Clamp 8900
8682 Cart 9233
8900 Clamp 10837
9233 Clamp
10837 Clamp
10908 Clamp

i tried VLOOKUP but it only works for trailer #'s that start with a letter,
not the trailer #'s with a number (it returns #N/A in this case).

Thanks for your help.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default match-up formula

So what is the correct formula i would need to lookup for just the numbers?

"PJFry" wrote:

The problem you are having with your VLOOKUP is probably that trailer numbers
in one column are formatted at text, while the trailer number in the other
columns are formatted as numbers.

My guess is that column A has the text values. You can format your column D
to be text by simply using ="&D1. This will make your value text and your
look should work fine.

Post back to let us know how it worked out.

--
Regards,

PJ
Please rate this post using the vote buttons if it was helpful.



"Melvin_Flint_2247" wrote:

I need to create a match-up formula that returns the value from another
column. I have 2 columns (trailer numbers and their corresponding
commodity), and I have another column which has the same trailer numbers and
I want to create a match-up program that will search in column D for a match
in column A, then return its value in column B; here is an example:

Column A Column B Column D Column E
Trailer Commodity Trailer (match trailer# in col. D w/ col. A
5271 Clamp 5271 return value in col. B)
5502 Clamp 7912
7912 Clamp 8659
8592 Clamp 8682
8659 Clamp 8900
8682 Cart 9233
8900 Clamp 10837
9233 Clamp
10837 Clamp
10908 Clamp

i tried VLOOKUP but it only works for trailer #'s that start with a letter,
not the trailer #'s with a number (it returns #N/A in this case).

Thanks for your help.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 143
Default match-up formula

You would convert the number to a string in VLOOKUP. Try this:

=VLOOKUP("&D1,A1:A10(or whatever your range is),1,FALSE)

See how that works out for you.


--
Regards,

PJ
Please rate this post using the vote buttons if it was helpful.



"Melvin_Flint_2247" wrote:

So what is the correct formula i would need to lookup for just the numbers?

"PJFry" wrote:

The problem you are having with your VLOOKUP is probably that trailer numbers
in one column are formatted at text, while the trailer number in the other
columns are formatted as numbers.

My guess is that column A has the text values. You can format your column D
to be text by simply using ="&D1. This will make your value text and your
look should work fine.

Post back to let us know how it worked out.

--
Regards,

PJ
Please rate this post using the vote buttons if it was helpful.



"Melvin_Flint_2247" wrote:

I need to create a match-up formula that returns the value from another
column. I have 2 columns (trailer numbers and their corresponding
commodity), and I have another column which has the same trailer numbers and
I want to create a match-up program that will search in column D for a match
in column A, then return its value in column B; here is an example:

Column A Column B Column D Column E
Trailer Commodity Trailer (match trailer# in col. D w/ col. A
5271 Clamp 5271 return value in col. B)
5502 Clamp 7912
7912 Clamp 8659
8592 Clamp 8682
8659 Clamp 8900
8682 Cart 9233
8900 Clamp 10837
9233 Clamp
10837 Clamp
10908 Clamp

i tried VLOOKUP but it only works for trailer #'s that start with a letter,
not the trailer #'s with a number (it returns #N/A in this case).

Thanks for your help.


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
Need a Match formula Nellie2488 Excel Worksheet Functions 3 June 16th 08 05:05 PM
match formula - 2 excel files:#1 hasthis formula, 2nd has the Raw DS Excel Worksheet Functions 4 October 7th 06 12:25 AM
Match+sum formula Todd Nelson Excel Discussion (Misc queries) 1 September 27th 05 08:59 PM
How do I display more than one match in a Index/Match formula? Trish Excel Worksheet Functions 0 September 26th 05 10:21 PM
Lookup Formula - but have a formula if it can't find/match a value Stephen Excel Worksheet Functions 11 June 14th 05 05:32 AM


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