Lookup value from user form with multiple results

klemire

New Member
Joined
Jun 3, 2015
Messages
1
Hey guys,
So I'm very new to Visual Basic so I apologize in advance for any obvious things that I'm missing. I'm working on a tool for price estimation that will allow people to enter the number of pages in a project and the number of interviews for a project into a user form, and then have the user form create a new sheet containing information from prior projects with the same page and interview numbers.

Ive already got the user form together, where I'm stuck is writing the code to take the page and interview numbers entered by the user to look up matching values in my data sheet, and then copying over the entire row from the results found back into my new sheet. Since there will be multiple matches, I can't figure out how to get v-lookup to work. Should I be using Index/Match code or is there some way to get multiple results from v-lookup? Thank you so much in advance for any help
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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