Formula where some account numbers are numbers and some are text

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,561
Office Version
  1. 2021
Platform
  1. Windows
I have account numbers in col B, where the vast majority are text shown as ' before number for eg '1101. However where the number does not appear as text then the formula returns "Missing" even though it apears on sheet TBTXT


I have the following formula in Col D, which works perfectly where the account number in Col B is shown as text, but as soon as the number is a proper number ending in an X eg 7956X, it shows as "missing", even though the number ending in an X appears on sheet TBTXT

=IF(ISERROR(VLOOKUP($B2+0,TBTXT!$B$2:$E$1350,4,FALSE)),"MISSING",VLOOKUP($B2+0,TBTXT!$B$2:$E$1350,4,FALSE))

Your assistance in resolviing this is most appreciated

Excel Workbook
ABCD
12117783187265Demo Fuel F&I12,992.07
12127784187275Demo Mtce F&I0.00
1213G050187328Fines F&I0.00
12146904199016Int Paid Other20.00
12156940199930Goodwill W/off0.00
1216614XX16215SVC No. Of Mtc JobsMISSING
1217650XX16320SVC Days Pd Lve Per techMISSING
TB Consolidation
 
Last edited:

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi Aladin

Thanks for the help, much appreciated

Regards

Howard
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,961
Latest member
nzskater

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