Mixed Data Type using Index Match

Shetara

New Member
Joined
Feb 17, 2017
Messages
43
Hello,

I am trying to pull from a column within a table that has mixed data types (numbers & Text comine) and place it into another table. When I am doing so, some items return as the exact match and others read a "N/A". I am looking for an excel formula to return/match all items needed.

Here is sample data:
(Where I would like the data to go) - Item Call
[TABLE="width: 500"]
<tbody>[TR]
[TD]Ref Number[/TD]
[TD]Item Call[/TD]
[/TR]
[TR]
[TD]912364[/TD]
[TD]Purse[/TD]
[/TR]
[TR]
[TD]18666B6[/TD]
[TD]N/A[/TD]
[/TR]
</tbody>[/TABLE]

Data Source:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Ref Number (Match)[/TD]
[TD]Item Call (Index)[/TD]
[/TR]
[TR]
[TD]912364[/TD]
[TD]Purse[/TD]
[/TR]
[TR]
[TD]18666B4[/TD]
[TD]Shoes[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi,

Your description is not clear. Are you saying you want 18666B6 to be a match for 18666B4?, or are you saying you don't want the #NA error to show?
 
Upvote 0
Hi,

I guess the easiest solution would be to just use a helper-column in the data source to convert all values to text, and then use the TEXT function to convert the lookup value to text.

Another solution is to use the IFERROR function, and use the same index match twice, but forcing the lookup value to numbers for the first, and text for the second if the first results in an error.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top