Create Drop-down List from Multiple Columns

thotto

New Member
Joined
Dec 15, 2019
Messages
2
Office Version
  1. 2019
Platform
  1. MacOS
Screen Shot 2019-12-15 at 17.28.35.png
I have different accounts listed horizontally as in the picture. I'd like to create a data validation in a new cell that containing all the accounts I have i.e. "My credit card" and "Paypal". I've been working at this problem for hours. INDEX and MATCH don't work in this case. Why real-world data can't be as tame as what I was taught in Excel courses ?? Can anyone offer any help?
 

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.
Assuming that your account names span the range A3:Z3, enter this formula into AA2, then fill down to create a list of account names in consecutive cells.

=IFERROR(INDEX($A$3:$Z$3,AGGREGATE(15,6,COLUMN($A$3:$Z$3)/ISTEXT($A$3:$Z$3),ROWS($AA$2:$AA2))),"")

Then for your validation list, use

=OFFSET($AA$2,0,0,COUNTIF($AA:$AA,"<>"),1)

The list doesn't need to start in AA2, just somewhere convenient. It could be in a different sheet if needed.
 
Upvote 0
Assuming that your account names span the range A3:Z3, enter this formula into AA2, then fill down to create a list of account names in consecutive cells.

=IFERROR(INDEX($A$3:$Z$3,AGGREGATE(15,6,COLUMN($A$3:$Z$3)/ISTEXT($A$3:$Z$3),ROWS($AA$2:$AA2))),"")

Then for your validation list, use

=OFFSET($AA$2,0,0,COUNTIF($AA:$AA,"<>"),1)

The list doesn't need to start in AA2, just somewhere convenient. It could be in a different sheet if needed.

Thank you for taking the time to help me. I've learned several formulas that I'm not aware of, but I guess I'd need to reorganize the data.
 
Upvote 0
Does the method suggested not work for you?

While well organised data is always advisable, re-organising if you don't need to could solve one problem and create another.
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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