+ Reply to Thread
Results 1 to 2 of 2

Search Row 1 for value and return cooresponding column number.

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    41

    Search Row 1 for value and return cooresponding column number.

    Say I have a file that looks somthing like this

    Please Login or Register  to view this content.
    Where Dog,Cat, Bird, Fish and Tiger represent the Data in Row 1 (the column headings) and the x's represent the other rows of data. How can I write a formula to search Row 1 for "FISH" and return "D" since FISH is the fourth column and thus in excel would be in column D.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,062

    Re: Search Row 1 for value and return cooresponding column number.

    There may be a better way but this works

    =MID(ADDRESS(1,MATCH("FISH",A1:E1,0)),2,1)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Search Value of column E if exist return value of column B put result in column P
    By hassan khansa in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-23-2013, 11:39 AM
  2. Replies: 4
    Last Post: 12-21-2012, 10:35 AM
  3. Replies: 8
    Last Post: 04-11-2012, 04:03 PM
  4. Replies: 1
    Last Post: 07-26-2011, 06:48 AM
  5. Search from every row of column in a column and return row number
    By cyki in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 09-11-2008, 09:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1