Help writing a VLOOKUP formula

j4ymf

Well-known Member
Joined
Apr 28, 2003
Messages
741
Office Version
  1. 365
Platform
  1. Windows
Hello

Could you please help me write a VLOOKUP formula
what i am after is if D5 cell is greater than the range of any B13 - O13 then the result is the next value

Results in F4, F6, F8

Hope this makes sence
many thanks

Jay
 

Attachments

  • Screenshot 2021-03-13 075826.jpg
    Screenshot 2021-03-13 075826.jpg
    115.6 KB · Views: 14
Which column do you want to return?
 
Upvote 0

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi Fluff

I need to match the S in Cell C10 from the range A2:A4 then do the same formula you gave me before.

so if i had an S it would give me £6.00 nut if i had a D it would give me £10.80 and a C it would give me £25.00

Thank you
 
Upvote 0
Fluff

Please find below a picture as im trying to create a tally sheet
 

Attachments

  • Screenshot 2021-03-20 193500.jpg
    Screenshot 2021-03-20 193500.jpg
    106.8 KB · Views: 5
Upvote 0
But what determines which column you should get the £6 or £10.80 from?
 
Upvote 0
Fluff

Row 10
F10 has a forumla of ( =D10*E10/1000000 ) which gives me the result of 0.12

G12 looks at column F which has the formula (=XLOOKUP($F$10,$B$1:$O$1,B2:O2,"",1)
so instad of just matching F10 i need to match C10 aswell with the range of A1:O4

thank you
 
Upvote 0
Ok, how about
Excel Formula:
=INDEX($B$2:$O$4,XMATCH(C8,$A$2:$A$4,0),XMATCH(F12,$B$1:$O$1,1))
 
Upvote 0
Fluff

You are so cleaver, thank you so much once again
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Looks like I was a bit late getting back to the party, but thought I'd throw another one in anyway,
Excel Formula:
=LOOKUP(F12,$B$1:$O$1,INDEX($B$2:$O$4,XMATCH(C8,$A$2:$A$4,0),0)
 
Upvote 0

Forum statistics

Threads
1,215,753
Messages
6,126,677
Members
449,327
Latest member
John4520

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