Auto-Populate data in a table using a drop-down list selection from other sheet tables

rdoulaghsingh

Board Regular
Joined
Feb 14, 2021
Messages
105
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have 4 sheets in a workbook (Sheet1, Sheet2, Sheet3 and Sheet4)
On Sheet1 I have a dropdown in B1 to select from a list of fruits. For eg. Apple, Banana, Cantaloupe,
Below that dropdown there is a "Store" table with headers Store(A5), Isle(B5), Shelf(C5)

On sheets 2,3 and 4, I have separate tables for each fruit. So sheet 2 has a table for apple, sheet3 has a table for banana and sheet4 has a table for cantaloupe. The name of the fruit is located in several different cells in the A column and there are blank spaces between the names of the recurring fruit in that same column.

I'm looking for vba code to use the dropdown value from Sheet1 as the lookup value to populate the table below for Store, Isle and Shelf from the table array of Sheet2, 3, and 4 (keeping in mind that there are some blank cells between fruit names in column B on those sheets) and return the adjacent columns where the search matches the fruit from the respective sheet in the table on sheet1. So populate the table on sheet1 with the Store, Isle and Shelf of the fruit.

I have included images of all sheets. Any help would be greatly appreciated! Thanks in advance!
 

Attachments

  • Sheet1.PNG
    Sheet1.PNG
    5.9 KB · Views: 13
  • Sheet2.PNG
    Sheet2.PNG
    14.1 KB · Views: 13
  • Sheet3.PNG
    Sheet3.PNG
    14.1 KB · Views: 15
  • Sheet4.PNG
    Sheet4.PNG
    14.5 KB · Views: 14

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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