VBA code to perform index and match based off of userform combo box values

Zimmerman

Well-known Member
Joined
Jan 22, 2009
Messages
663
I'm hoping someone could help me out with creating this code. I have a userform that has 2 combo boxes. When the user clicks the OK command button I would like to perform an index and match based on what the user picks from the combo boxes. The first combo box will need to look up the text in a sheet named "RL" in column C. Then I need to find and match the value from "Sheet1" cell "K6" from column "D" in sheet "RL" and "Sheet1" cell "N6" from row 5 in sheet "RL". And in Sheet1 cell O6 I would like that lookup value to be returned to this cell + the value of the 2nd combo box.

Hope this makes sense and someone could possibly help
Windows 7
Excel 2016

Thanks you
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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