Find a specific column header, and list ALL values under that header

k_mak

New Member
Joined
Sep 27, 2019
Messages
13
Hello All,
How does one find a specific column header and then list ALL values under that header?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Maybe


Book1
ABCDEFG
1PostcodeGridRefCountyDistrictWardCounty
2CB6 2DRTL484847CambridgeshireEast CambridgeshireDownham VillagesCambridgeshire
3PE34 3PATF555049NorfolkKing's Lynn and West NorfolkUpwell and DelphNorfolk
4HU7 3DFTA093348East Riding of YorkshireKingston upon Hull, City ofKings ParkEast Riding of Yorkshire
5HU8 9YATA118333East Riding of YorkshireKingston upon Hull, City ofSuttonEast Riding of Yorkshire
6PE13 4QDTF409125CambridgeshireFenlandRoman BankCambridgeshire
7TN26 2QLTR010310KentShepwayWalland & Denge MarshKent
8BH15 1YESZ018905DorsetPoolePoole TownDorset
9HU6 9UBTA076336East Riding of YorkshireKingston upon Hull, City ofBeverleyEast Riding of Yorkshire
10IG11 0XXTQ480834Greater LondonBarking and DagenhamThamesGreater London
11PE12 0JWTF366170LincolnshireSouth HollandThe SaintsLincolnshire
12PE12 9APTF425196LincolnshireSouth HollandLong SuttonLincolnshire
13PE14 8PSTF527044NorfolkKing's Lynn and West NorfolkEmneth with OutwellNorfolk
14PE26 2RDTL285868CambridgeshireHuntingdonshireRamseyCambridgeshire
15RM18 8EPTQ650768EssexThurrockTilbury St ChadsEssex
Sheet4
Cell Formulas
RangeFormula
G2=INDEX($A$2:$E$36,ROW(A1),MATCH($G$1,$A$1:$E$1,0))
 
Upvote 0
Hi Fluff,
Whoa, thank you for the quick response. Would it be possible in the area of MATCH, that "$G$1" be a list of words that is equivalent to the word "County"? Example..."County" or "Village" or "Town" or "City" etc...?
 
Upvote 0
Do you mean you want to put the names of multiple columns into one cell & retrieve the data from each column into 1 new column?
 
Upvote 0
Hi Fluff,
Sorry for the confusion...let me clarify...

Using your example: "County"...on a template, i have a column header called: County. The source data, depending on where or what i pulled from, instead of using the word County, they use the word: "Town" for example.
Other sources may use: "Village", or "City" etc... So what i would like to know is...can a formula be created to lookup a list of words that are "alias" to the word "County", and then list all corresponding "names" of the County as per your table.
 
Upvote 0
It's possible, but you would need a separate lookup table somewhere with all the aliases & the header they refer to.
 
Upvote 0
Noted, that is correct, I would indeed require a separate table to list the "aliases". As mentioned earlier, I attempted to input a list in place of $G$1, but the result returned #N/A. Any ideas would be greatly appreciated!
 
Upvote 0
No you need a separate table along the lines of

Book1
AB
1AliasHeader
2TownCounty
3CityCounty
4VillageCounty
5CountyCounty
6PostcodePostcode
7ZipPostcode
8Area codePostcode
Lists


Then you would need to lookup the alias & return the header
 
Upvote 0
I understand that I require a separate table. As far as this separate table, I was hoping more like...

A B
1 Cat1 Cat2
2 City Area Code
3 County Postal Code
4 Town Zip Code
5 Village

Would you be able to assist?
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
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