Looking for best look up formula for this scenario

Zedrick13

Board Regular
Joined
Sep 8, 2018
Messages
100
Hello everyone,

This might seem a simple scenario, but I've been trying to figure this out working on index match formulas but I am unable to find the right one. Hope you guys can help me, I've included a screenshot of the spreadsheet I'm working on.

So, we have columns 9, 10 and 11. I've added a dropdown for column 9 with the list of different vendors. What I would like to happen is, when I populate column 9, the columns 10 and 11, with the help of a formula, automatically lookup the values I need. For example, I have selected "Carrier Air" in column 9 and I am expecting that columns 10 and 11 would reflect $42,993.34 and 246.34 respectively.

It gets complicated I guess because:
1. The columns with the vendor names are merged
2. The ranges needed for the formula are non-contiguous

Thanks in advance everyone.

Regards,
Zed
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi Zed
the screen shot didn't make it into your post. With that it may be clearer what you're trying to do and where the numbers you quote are coming from.
 
Upvote 0
Sorry about that. Here's the screenshot @rondeondo .
 

Attachments

  • Excel.png
    Excel.png
    22.8 KB · Views: 7
Upvote 0
Hi Zed
So you're looking for the supplier entered in column 9 amongst the headers in the first row, then you want to return the two values in the row you're in from the relevant columns.
so you want to do =match(supplier in col 9,range of headings,0) this will give you a column number out of the range.
then you want to wrap that result with index()
So in j3 you'll get
Excel Formula:
=index(c3:h3,match(i9,c1:h1,0))
and in k3 you want almost the same but you want one cell to the right.
k3 :
Excel Formula:
 =index(c3:h3,match(i9,c1:h1,0)+1)

note: there's an xl2bb plugin available that allows you to paste in a section of sheet that allows others to take a coy quickly of your data layout.
 
Upvote 0

Forum statistics

Threads
1,215,055
Messages
6,122,902
Members
449,097
Latest member
dbomb1414

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