Vlookup with trim help

spanspace

Board Regular
Joined
Jan 3, 2007
Messages
159
Someone smarter then me help me figure out why this will not work. My only guess is it's adding quotes around the number after its been trimmed.
Excel Workbook
BCD
6PSIDName
71012916#N/A
Lookup 2
Excel 2010
Cell Formulas
RangeFormula
D7=VLOOKUP(TRIM(SUBSTITUTE(B7,CHAR(160),CHAR(32))),Data!$D$4:$F$213,2,FALSE)
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
I figured it out. Go figure...rack my brain and post I need help then figure it out right after I do. If anything I hope this helps someone else.
Excel Workbook
BCD
6PSIDName
72162095ME
Lookup 2
Excel 2010
Cell Formulas
RangeFormula
D7=IF(A7="",IFERROR(IF(B7="","",VLOOKUP(TRIM(SUBSTITUTE(B7,CHAR(160),CHAR(32)))+0,Data!$D$4:$Z$1000,2,FALSE)),"No Match"),IFERROR(IF(A7="","",VLOOKUP(TRIM(SUBSTITUTE(A7,CHAR(160),CHAR(32)))+0,Data!$C$4:$F$1000,3,FALSE)),"No Match"))
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,445
Members
452,915
Latest member
hannnahheileen

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