#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Find Column

Hello all,

Try as I might, I just can't seem to get my quandry solved and I need some
help. I have a worksheet with data located in the range of A9:M49. I am
trying to search through this range of data looking for a particular value.
When the value is found, I want to return the column header that the value is
in. I have been trying to use the index/match functions but I can't get
quite what I need. Could someone possibly give me some pointers. Thanks.

Ron
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Find Column

Where is the column headers located, in Row 8 or 9? or did you mean the
Excel column headers?


--
Regards,

Peo Sjoblom


"Airfive" wrote in message
...
Hello all,

Try as I might, I just can't seem to get my quandry solved and I need some
help. I have a worksheet with data located in the range of A9:M49. I am
trying to search through this range of data looking for a particular
value.
When the value is found, I want to return the column header that the value
is
in. I have been trying to use the index/match functions but I can't get
quite what I need. Could someone possibly give me some pointers. Thanks.

Ron



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Find Column

Hi Peo,

The column headers are located in row 8 and they consist of a 4 digit
number. Every number is unique......no duplicates, the data range is also
unique with no duplicates. I have row 8 formatted as text but I have tried
changing the format to general. Still no luck. I found a post from Dave
Peterson regarding an almost exact situation but I could not get his solution
to work for me. His earlier post is as follows:

With the data to match in A2 and your 60 columns in b:bi

=index($b$1:$bi$1,match(a2,$b2:$bi2,0))



Aaron wrote:

I have a spreadsheet with 60 columns of data, each with a unique header
label. What formula do I use to search each row for specific data, then,
upon finding a match, return the header label data (i.e. the info in Row 1 of
that particular column.)

Thanks!


--

Dave Peterson

Thanks for any help.

Ron

"Peo Sjoblom" wrote:

Where is the column headers located, in Row 8 or 9? or did you mean the
Excel column headers?


--
Regards,

Peo Sjoblom


"Airfive" wrote in message
...
Hello all,

Try as I might, I just can't seem to get my quandry solved and I need some
help. I have a worksheet with data located in the range of A9:M49. I am
trying to search through this range of data looking for a particular
value.
When the value is found, I want to return the column header that the value
is
in. I have been trying to use the index/match functions but I can't get
quite what I need. Could someone possibly give me some pointers. Thanks.

Ron




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Find Column

Try this

=INDEX($A$8:$M$8,MAX(($A$9:$M$49=A1)*(COLUMN($A$9: $M$49))))

entered with ctrl + shift & enter


where A1 holds the value you would like to find in A9:M49

--
Regards,

Peo Sjoblom

"Airfive" wrote in message
...
Hi Peo,

The column headers are located in row 8 and they consist of a 4 digit
number. Every number is unique......no duplicates, the data range is also
unique with no duplicates. I have row 8 formatted as text but I have
tried
changing the format to general. Still no luck. I found a post from Dave
Peterson regarding an almost exact situation but I could not get his
solution
to work for me. His earlier post is as follows:

With the data to match in A2 and your 60 columns in b:bi

=index($b$1:$bi$1,match(a2,$b2:$bi2,0))



Aaron wrote:

I have a spreadsheet with 60 columns of data, each with a unique header
label. What formula do I use to search each row for specific data, then,
upon finding a match, return the header label data (i.e. the info in Row
1 of
that particular column.)

Thanks!


--

Dave Peterson

Thanks for any help.

Ron

"Peo Sjoblom" wrote:

Where is the column headers located, in Row 8 or 9? or did you mean the
Excel column headers?


--
Regards,

Peo Sjoblom


"Airfive" wrote in message
...
Hello all,

Try as I might, I just can't seem to get my quandry solved and I need
some
help. I have a worksheet with data located in the range of A9:M49. I
am
trying to search through this range of data looking for a particular
value.
When the value is found, I want to return the column header that the
value
is
in. I have been trying to use the index/match functions but I can't
get
quite what I need. Could someone possibly give me some pointers.
Thanks.

Ron






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Find Column

Thank you Peo. That did the trick. Many thanks.

Ron

"Peo Sjoblom" wrote:

Try this

=INDEX($A$8:$M$8,MAX(($A$9:$M$49=A1)*(COLUMN($A$9: $M$49))))

entered with ctrl + shift & enter


where A1 holds the value you would like to find in A9:M49

--
Regards,

Peo Sjoblom

"Airfive" wrote in message
...
Hi Peo,

The column headers are located in row 8 and they consist of a 4 digit
number. Every number is unique......no duplicates, the data range is also
unique with no duplicates. I have row 8 formatted as text but I have
tried
changing the format to general. Still no luck. I found a post from Dave
Peterson regarding an almost exact situation but I could not get his
solution
to work for me. His earlier post is as follows:

With the data to match in A2 and your 60 columns in b:bi

=index($b$1:$bi$1,match(a2,$b2:$bi2,0))



Aaron wrote:

I have a spreadsheet with 60 columns of data, each with a unique header
label. What formula do I use to search each row for specific data, then,
upon finding a match, return the header label data (i.e. the info in Row
1 of
that particular column.)

Thanks!


--

Dave Peterson

Thanks for any help.

Ron

"Peo Sjoblom" wrote:

Where is the column headers located, in Row 8 or 9? or did you mean the
Excel column headers?


--
Regards,

Peo Sjoblom


"Airfive" wrote in message
...
Hello all,

Try as I might, I just can't seem to get my quandry solved and I need
some
help. I have a worksheet with data located in the range of A9:M49. I
am
trying to search through this range of data looking for a particular
value.
When the value is found, I want to return the column header that the
value
is
in. I have been trying to use the index/match functions but I can't
get
quite what I need. Could someone possibly give me some pointers.
Thanks.

Ron








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
Find First Non blank cell than find column header and return that value Silver Rose Excel Worksheet Functions 10 April 30th 07 05:56 PM
To find Multiple values in column B for a unique value in column A kishdaba Excel Worksheet Functions 2 November 14th 06 12:49 PM
How to find the most recent date in a column based on other column Veretax Excel Worksheet Functions 7 October 18th 06 05:01 PM
find a specific value in a column and write another column MUSTANG Excel Discussion (Misc queries) 2 February 5th 06 09:24 AM
I need to find the Average from Column A - but Reference Column B BAM718 Excel Worksheet Functions 2 March 15th 05 02:42 PM


All times are GMT +1. The time now is 09:19 AM.

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

About Us

"It's about Microsoft Excel"