VLOOKUP not working - trying to return a number depending on a text character

jonnylowes

New Member
Joined
May 17, 2017
Messages
3
Hi,

I have a spreadsheet that stores a persons grade as either say 5-, 5 or 5+. This column is stored as text. I have created a range of cells that has the text version of the score (i.e 6+ and I want to return the number 6, or if it's 5+, 5- I would return number 5).

At present my vlookup is working correctly for all text values with a + or - after the number. However the text values 3,4,5,6,7 and 8 don't seem to be working with the vlookup. The value returned is always 1 score lower...i.e. lookup "5" it returns a 4.

Any ideas how I could fix this?

Thanks
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi,

When it comes to retrieving data from a table .. you should the Index-match combination ...

Hope this will help
 
Upvote 0
James - a VLOOKUP is perfectly OK in this case. INDEX MATCH is an alternative method.

Jonny - please show us what your lookup table looks like.
 
Upvote 0
Yes, Johnny, it always helps to see a screenshot of what you're working with.

As I'm reading your post, I'm wondering why you need VLOOKUP at all, since it sounds like you're just trying to convert text numbers with/without symbols to the text number alone (i.e., "5-", "5" or "5+" would all return "5", etc.), in which case you really just need to use the LEFT function:

=LEFT(cell_reference, 1)

This would return "5" for any of the above options.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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