Problem with formula

ukrad

New Member
Joined
Nov 2, 2013
Messages
5
Hi All,
I hope one of you helpful people can come to my rescue :).

I have a formula:
=LOOKUP(R3,KeyStageOnePoints)-LOOKUP(Q3,KeyStageOnePoints)

with the lookup table like this:
WA5
W3
1A11
1B9
1C7
2A17
2B15
2C13
3A23
3B21
3C19

<tbody>
</tbody>

So...I need to calculate the difference between some levels
eg. WA to 1C should give the answer 2 but it is coming up as -12???

Many thanks!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Welcome to MrExcel.

Try:
=VLOOKUP(R3,KeyStageOnePoints,2,0)-VLOOKUP(Q3,KeyStageOnePoints,2,0)
 
Upvote 0
Aaah thank you soooo much for this! It works brilliantly. What does the 2,0 mean in the formula?
 
Upvote 0
You're welcome.

The two means return the value from the second column of the lookup table.

The zero (or false) means find an exact match.
 
Upvote 0

Forum statistics

Threads
1,217,364
Messages
6,136,113
Members
449,993
Latest member
Sphere2215

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