Create drop down list based on column header

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
582
Office Version
  1. 365
Hi everyone
On the tab "Main" in column A I have a list of peoples names, (A2 downwards), and in row 1 (Column B to Column Z) I have courses names.

In the tab "Course Dates", on I have the course names in Row 1 (Col A to COlumn S)

In each of these columns I have the dates available for each course.

What i need is a dropdown on the "Main" tab, that looks up the name in Row 1, and then the dates are specific for that course.

MAIN TAB
Name (A1)Course1 (B1)Course2 (C1)Course3 (D1)
Peter(Dropdown for dates in "Course Dates" tab Course1 only
Paul
Lola
Lucy

COURSE DATES TAB
Course1 (A1)Course2 (B1)Course3 (C1)Course4 (D1)
01/01/2417/01/2402/02/2409/03/24
08/01/2423/02/2405/02/2415/03/24
01/02/2430/03/2419/02/2428/04/24
14/02/2404/04/2403/03/2401/05/24
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Put the following formulas in data validation


varios 06mar2024.xlsm
ABCDE
1NameCourse1Course2Course3Course4
2Peter
3Paul
4Lola
5Lucy
MAIN
Cells with Data Validation
CellAllowCriteria
B2:B5List=INDIRECT("Table2[" & $B1 & "]")
C2:C5List=INDIRECT("Table2[" & $C1 & "]")
D2:D5List=INDIRECT("Table2[" & $D1 & "]")
E2:E5List=INDIRECT("Table2[" & $E1 & "]")


Put the data from sheet "COURSE DATES" into table2.
varios 06mar2024.xlsm
ABCD
1Course1Course2Course3Course4
201/01/202417/01/202402/02/202409/03/2024
308/01/202423/02/202405/02/202415/03/2024
401/02/202430/03/202419/02/202428/04/2024
514/02/202404/04/202403/03/202401/05/2024
COURSE DATES


😇
 
Upvote 1
Solution

Forum statistics

Threads
1,215,071
Messages
6,122,964
Members
449,094
Latest member
Anshu121

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