Data validation list from table headers

keelaboosa

New Member
Joined
Apr 3, 2018
Messages
35
Is it possible to select a subset of table headers to use as a data validation list in another cell?

I've got the following table named "Notes":

[TABLE="class: grid, width: 750"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]J[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD="align: center"]NOTES: UNLESS OTHERWISE SPECIFIED[/TD]
[TD="align: center"]GENERAL ARRANGEMENT[/TD]
[TD="align: center"]INSTALLATION[/TD]
[TD="align: center"]ASSEMBLY[/TD]
[TD="align: center"]CABLE ASSEMBLY[/TD]
[TD="align: center"]FABRICATION[/TD]
[TD="align: center"]ALTERED ITEM[/TD]
[TD="align: center"]SCHEMATIC[/TD]
[TD="align: center"]PIPING DIAGRAM[/TD]
[TD="align: center"]VENDOR ITEM[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]INTERPRET DRAWING PER ASME Y14.1[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]BREAK SHARP EDGES .005 MAX[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]X[/TD]
[/TR]
</tbody>[/TABLE]

I would like to use all except the first header as a data validation list. I've tried
Code:
=OFFSET(NOTES[#Headers],0,1,1,COUNTA(NOTES[#Headers])-1)
which evaluates to
Code:
={"GENERAL ARRANGEMENT","INSTALLATION","ASSEMBLY","CABLE ASSEMBLY","FABRICATION","ALTERED ITEM","SCHEMATIC","PIPING DIAGRAM","VENDOR ITEM"}
but it fails when I try to use the formula as the data validation list.

Is there a way to do this without duplicating the header row as data in another table?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi!

Try this:

1) Create the name myHeader with the formula below

=INDEX(NOTES[#Headers],2):INDEX(NOTES[#Headers],COLUMNS(NOTES))

2) After that, use the name myHeader in Data Validation list.


Markmzz
 
Upvote 0
Thank you Markmzz! Your suggestion works great. I tried setting my formula to a name and using that for the data validation and that works as well. ;)
 
Upvote 0
Thank you Markmzz! Your suggestion works great. I tried setting my formula to a name and using that for the data validation and that works as well. ;)

You're welcome and thank you for the feedback.

And I'm glad to help.

Markmzz
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
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