Vlookup

cmerrick

Board Regular
Joined
Jun 8, 2017
Messages
78
Office Version
  1. 365
Platform
  1. Windows
I have a really, really simple vlookup formula that has been working, but for some reason has stopped.

The function is to take data validation using "Pass", "Started", "None" and assigning a value to them of Pass = 20 Started = 10 None = 0

The formula is

=VLOOKUP(F35,Data!L27:M29,2)


But when I enter the value of None in the drop down table I get an #N/A error.

It was working an hour ago, I closed the document and reloaded and now it wont work.

Any help please
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Re: Please help - VLOOKUP - Hopefully Quick Questions

I dunno if this is the case here, but a full computer shutdown and restart can fix some Excel issues.

You said that "None" input is throwing a #N/A, but do "Pass" and "Started" still work, or are they broken as well?

Also, just to be clear: Is the value in F35 going to be "None" or have you already assigned it to "0" ?

(I would guess your "M" column is where you 'assign' it, but I may be wrong...)
 
Upvote 0
Re: Please help - VLOOKUP - Hopefully Quick Questions

I dunno if this is the case here, but a full computer shutdown and restart can fix some Excel issues.

You said that "None" input is throwing a #N/A, but do "Pass" and "Started" still work, or are they broken as well?

Also, just to be clear: Is the value in F35 going to be "None" or have you already assigned it to "0" ?

(I would guess your "M" column is where you 'assign' it, but I may be wrong...)


Pass and Started both work fine and pull through the correct values based on the validation table.

The value in F35 will displays as 'None' and as a result of this another cell in the same sheet should display '0' but is displaying #N/A

(It's happening for another VLOOKUP too (exact same formula and function just different cell reference)

Example of the validation table is below; (this is on another tab but the formula accounts for this)
[TABLE="width: 174"]
<tbody>[TR]
[TD]CMAP Basic [/TD]
[TD]Column1[/TD]
[/TR]
[TR]
[TD]Pass[/TD]
[TD="align: right"]20[/TD]
[/TR]
[TR]
[TD]Started[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]None[/TD]
[TD="align: right"]0[/TD]
[/TR]
</tbody><colgroup><col><col></colgroup>[/TABLE]
 
Upvote 0
Re: Please help - VLOOKUP - Hopefully Quick Questions

Well, my initial thoughts are these:

1. You should definitely Shutdown your PC if you haven't already (to rule that out)

2. You should try to recall what you were editing around the time it 'broke' and see if you can find a relation.

3. Make sure the L27, L28, L29 values are exactly as you expect them (no leading/trailing spaces)

4. As an added measure, format them as "text" instead of "general", and maybe even retype them as well.

5. If you have one, load up a backup and see if you can spot any differences.

As I look, the code seems fine. In this case, Excel cannot match 'None' to a value in L27,L28, or L29. So... something funky is up with the 'None' in F35 OR something funky is up with the 'None' in L29.

I hope something here helps!
 
Upvote 0
Re: Please help - VLOOKUP - Hopefully Quick Questions

Well, my initial thoughts are these:

1. You should definitely Shutdown your PC if you haven't already (to rule that out)

2. You should try to recall what you were editing around the time it 'broke' and see if you can find a relation.

3. Make sure the L27, L28, L29 values are exactly as you expect them (no leading/trailing spaces)

4. As an added measure, format them as "text" instead of "general", and maybe even retype them as well.

5. If you have one, load up a backup and see if you can spot any differences.

As I look, the code seems fine. In this case, Excel cannot match 'None' to a value in L27,L28, or L29. So... something funky is up with the 'None' in F35 OR something funky is up with the 'None' in L29.

I hope something here helps!

Well the TEXT in F is using data validation from L so even if there were spaces, it shouldn't make a difference.

I'll have to try restarting.

thanks
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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