LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 336
Default Returning comlumn hearder uppon matching a text sting in a row

Good morning,

I would like to have a formula that would enable me to receive back the
column header uppon matching a text criteria within a row.

Example:
A B C D E
1 - ROLE1 - ROLE2 - ROLE3 - ROLE 4 - LEADER (R)
2 - R A C I ROLE1
3 - I C A R ROLE4

In other word, cell E should contain a formula that search for the "R" in
A2:D2 and return the column header (A1) so I can display the label
automatically and update it.

I made it work with "IF ("R",A2,A1,IF("R",B2,B1,UNAVAILBLE))" but I can not
embbed more than 8 x IF within a single formula and I have over 20 columns to
manage.

I have also made it work with SEARCH but if there is instance of letters
after the matching criteria, it gives me the last column containing a letter
(vice versa with numbers). I can not put columns in alphabetical order which
might be the reason why I have this behavior. Putting them in alphabetical
order is not a viable option anyway....

Thanks a lot in advance for your help
Martin




 
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
Matching and returning only one cell Matticoda Excel Discussion (Misc queries) 1 June 9th 08 07:27 PM
Matching Three columns and returning a value Rob Excel Discussion (Misc queries) 5 April 29th 08 09:04 AM
Matching & Returning values DebbieV Excel Discussion (Misc queries) 3 March 6th 08 11:00 AM
using a formula inside a sting of text lauras03 Excel Discussion (Misc queries) 2 March 12th 07 05:03 PM
Returning a Value by Matching Two Columns of Data Christine Edwards Excel Worksheet Functions 5 May 10th 06 07:28 PM


All times are GMT +1. The time now is 08:01 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"