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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
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)
CMAP Basic Column1
Pass20
Started10
None0

<tbody>
</tbody><colgroup><col><col></colgroup>
 
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,215,465
Messages
6,124,982
Members
449,201
Latest member
Lunzwe73

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