Vlookup #NA Error

jacob1985

New Member
Joined
Mar 8, 2018
Messages
2
Can someone help shed some light on an #NA error I am receiving with a Vlookup formula?

I am trying to help users interpret account codes. I have a 10 digit accounting string and the 10th number tells the user what type of activity the funds will be used for.

-I used =MID(B3,10,1) to reference the string and pull the 10th digit out and display it in cell C4. The digits would only be 1, 2, 3, 4, or 5.
-I then use =VLOOKUP(C4,A32:B36,2,FALSE) to display the type of funding activity, but I keep getting an #NA error.
-For table A32:B36, I have the rows in column A numbered 1-5, and the rows in column B are the titles of each activity.
-The #NA error does not appear when I use the same methodology and formulas for the 4th, 5th, or 8th digits in the account string.
-When i overwrite the MID formula with the number 4, the Vlookup formula works perfectly.

Any help would be GREATLY appreciated. Thanks!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
jacob1985, Good evening.

Remember that MID function results an TEXT as answer.

Try to use:

C4 --> =MID(B3,10,1)*1

Is that what you want?

I hope it helps.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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