why wont vlookup work

B4L4KS

Board Regular
Joined
Mar 7, 2011
Messages
69
Hi

When i use a vlookup even though it is correctly entered and all the data is correct, the outcome ends up being different to what it should be, also some of the boxes end up with Value and NA.

any help would be appreciated,

one of the formulas is below.

Code:
=VLOOKUP(H12,'Menu Data'!C12:D16,2)

many thanks

kristian
 


it worked, well uploading anyway

kristian
 
Last edited:
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
So it looks like you are trying to lookup a value corresponding to 0 - is that correct?

You need to show us the other sheets.
 
Upvote 0
Hi again

had lunch sorry

i have realized that the formulas work in different cells, but not the cells that they are already in.

why is this

kristian
 
Upvote 0
Like VoG said in post #12, you need to show us the other sheets.
And specifically, the area containing the data that you think the formula should be matching.

By the way, no need to apologise for having lunch - I'm having mine right now :)
 
Upvote 0
here is the data requested.

menu data



orderform



selection menu p



menu data is all the prices and food
order form shows the user what they have ordered, which is from selection menu p

thanks

kristian
 
Upvote 0
didnt realise it didnt show up

menu data



order form



selection menu p



these are the three pages and the cells with data in them that is required.

thanks

kristian
 
Upvote 0
In H12, for example, you have 0 not the name of a pizza. That is why it isn't working.
 
Upvote 0
I suspect that the underlying reason is what appear to be merged cells. I think that

='Selection Menu P'!G15:I15

should be

='Selection Menu P'!G15
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,172
Members
449,071
Latest member
cdnMech

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