VLOOKUP formula using the TEXT function as the "lookup value"

RookieExcelUser808

New Member
Joined
Jan 29, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I have a lookup table where the lookup column is a combination of letters & numbers. I created an VLOOKUP formula that looked at the first column as all "text" values. A portion of the lookup table was as follows:

AA AB
2 97013T 122320
3 #97015T 122266
4 98003T 118449
5 99006 46128
6 99006T 122697

The original formula was VLOOKUP(A2,AA2:AB6,2,FALSE) But it appeared that when A2's value was 99006 (row 5), it would give me the N/A error. However, when I changed the formula to:
VLOOKUP(VALUE(A2,can't remember what value I put here),AA2:AB6,2,FALSE), the value 99006 would correctly return 46128.

The problem is, I can't find the old spreadsheet and I can't remember what value I used as the "Format" in the TEXT function.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Are you asking how to format a number as text?
If so:
Excel Formula:
=Text(yournumber,0)

if you have decimals, then:
Excel Formula:
=Text(yournumber,"#.######")
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,963
Members
449,094
Latest member
Anshu121

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