Returning whole column depending on column header

joand

Active Member
Joined
Sep 18, 2003
Messages
266
Guys, I need your help in returning the whole column containing the header "Company" (row1). I have several columns in a sheet (A-BS) and that the header "Company" is not fixed to a particular column number. Sometimes it is in Column Z, sometimes in Column U, sometimes in Column BS. so it could vary. How do i write an Excel formula for this?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Guys, I need your help in returning the whole column containing the header "Company" (row1). I have several columns in a sheet (A-BS) and that the header "Company" is not fixed to a particular column number. Sometimes it is in Column Z, sometimes in Column U, sometimes in Column BS. so it could vary. How do i write an Excel formula for this?
Perhaps this to start off (If you are using Office 365 or Excel 2021):
Book1
ABCDEFG
1OneTwoThreeFourFiveFive
2123455
3123455
4123455
5123455
6123455
7123455
8123455
9123455
10123455
Sheet1
Cell Formulas
RangeFormula
G2:G10G2=FILTER(A2:E10,A1:E1=G1)
Dynamic array formulas.
 
Upvote 0
Solution
it works on the same sheet but when i place the formula on sheet2 for example, i get a spill error
 
Upvote 0
sorry. didnt realize that there was another formula beneath it that is causing the spill error. all good now
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,215,432
Messages
6,124,856
Members
449,194
Latest member
HellScout

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