Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Return column number from column header text

Excel 2003

I need to return the column number from a worksheet by searching on
the text in the column headers.

Example:
I have simple names in Row 2 of Jim, Frank, Tony which could have
moved by inserting or deleting a column.

How do I return the column number?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Return column number from column header text

=MATCH("Frank",1:1,0)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Roger" wrote in message ...
| Excel 2003
|
| I need to return the column number from a worksheet by searching on
| the text in the column headers.
|
| Example:
| I have simple names in Row 2 of Jim, Frank, Tony which could have
| moved by inserting or deleting a column.
|
| How do I return the column number?
|
| Thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Return column number from column header text

On Feb 15, 9:35 am, "Niek Otten" wrote:
=MATCH("Frank",1:1,0)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Roger" wrote in ...

| Excel 2003
|
| I need to return the column number from a worksheet by searching on
| the text in the column headers.
|
| Example:
| I have simple names in Row 2 of Jim, Frank, Tony which could have
| moved by inserting or deleting a column.
|
| How do I return the column number?
|
| Thanks


This nailed it thanks
And to think I've been looking at the use of 'Match' in other formulae
- DOH!
Can't see the forest for the trees syndrome I suspect.

Thanks Niek
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Return column number from column header text

On Feb 15, 10:00 am, Roger wrote:
On Feb 15, 9:35 am, "Niek Otten" wrote:



=MATCH("Frank",1:1,0)


--
Kind regards,


Niek Otten
Microsoft MVP - Excel


"Roger" wrote in ...


| Excel 2003
|
| I need to return the column number from a worksheet by searching on
| the text in the column headers.
|
| Example:
| I have simple names in Row 2 of Jim, Frank, Tony which could have
| moved by inserting or deleting a column.
|
| How do I return the column number?
|
| Thanks


This nailed it thanks
And to think I've been looking at the use of 'Match' in other formulae
- DOH!
Can't see the forest for the trees syndrome I suspect.

Thanks Niek


Actually, now I need to be able to look for this information FROM
another spreadsheet.
How do I do that?
Regards
Roger
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Return column number from column header text

=MATCH("Frank",[Book3]Sheet2!$1:$1,0)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Roger" wrote in message ...
| On Feb 15, 10:00 am, Roger wrote:
| On Feb 15, 9:35 am, "Niek Otten" wrote:
|
|
|
| =MATCH("Frank",1:1,0)
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "Roger" wrote in ...
|
| | Excel 2003
| |
| | I need to return the column number from a worksheet by searching on
| | the text in the column headers.
| |
| | Example:
| | I have simple names in Row 2 of Jim, Frank, Tony which could have
| | moved by inserting or deleting a column.
| |
| | How do I return the column number?
| |
| | Thanks
|
| This nailed it thanks
| And to think I've been looking at the use of 'Match' in other formulae
| - DOH!
| Can't see the forest for the trees syndrome I suspect.
|
| Thanks Niek
|
| Actually, now I need to be able to look for this information FROM
| another spreadsheet.
| How do I do that?
| Regards
| Roger


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
lookup first & last values within row & return column header value Matt Excel Discussion (Misc queries) 12 May 1st 09 07:08 AM
Return text in Column A if Column B and Column K match jeannie v Excel Worksheet Functions 4 December 13th 07 07:36 PM
Rank and return column header Jshendel Excel Discussion (Misc queries) 5 November 3rd 06 10:12 PM
column header changed from letter to number, how return to letter Ron Excel Discussion (Misc queries) 2 May 9th 05 08:34 PM
Return Column header, if row value is > X kvail Excel Discussion (Misc queries) 2 January 11th 05 01:31 PM


All times are GMT +1. The time now is 01:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"