Function to return column heading number

I would like to have a function that returns the number of the column in a table given I have provided the Header Name.  If this can be a inline function all the better.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saqib Husain, SyedEngineerCommented:
Assuming that the headers are in row 1 you can use


If it is some other row then change 1:1 to suit
You can use this array entered function (assuming your header is on row 1):


type the function, then instead of hitting ENTER, Confirm with CTRL-SHIFT-ENTER

Saqib Husain, SyedEngineerCommented:
Oops...column number...why not simply


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

@ssaqibh - Good one.  While both are "correct" for finding the column header on the row, yours finds the last occurrence of that header, mine finds the first.  If there's only one, that last post is a winner!

Saqib Husain, SyedEngineerCommented:
Dave, are you back from your vacation? Probably not....both formulas give same results.
If there are multiple occurrences then they yield results as I posted

Yep. I'm back it was a quickie
Saqib Husain, SyedEngineerCommented:
Multiple occurences... both give same results.
Agree - I must have been looking cross-sighted :P
StevenPMoffatAuthor Commented:
Very simple, thank you
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.