+ Reply to Thread
Results 1 to 2 of 2

Need column name based on a given row and given answer

  1. #1
    Registered User
    Join Date
    04-03-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    1

    Need column name based on a given row and given answer

    Greetings all-

    I have an array of data (30 columns and 25 rows). I know the row name, and I know the number in the row (only one occurance of number per row) in the row that I want to match. What I need to do is search by row, then by number, and when it matches, give me the column name.

    Any help would be appreciated!!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,734

    Re: Need column name based on a given row and given answer

    Try this:

    =INDEX(B$1:AD$1,MATCH(number,INDEX(B$2:AD$25,MATCH(row_name,A$2:A$25,0),0),0))

    Assumes your data is in A1:AD25, with headers in row 1 and in column A. Put the cell references in for row_name and for number.

    Hope this helps.

    Pete

+ 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. Replies: 1
    Last Post: 07-03-2013, 10:50 AM
  2. [SOLVED] Simple formula to match column A, sheet1, with column A, sheet2, return text answer
    By Connie5761 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-14-2012, 02:56 PM
  3. Replies: 2
    Last Post: 07-12-2012, 05:31 PM
  4. Divide one column from another (numbers) and paste answer in new column
    By nachousa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2010, 12:39 PM
  5. get an answer based on a value?
    By davidcrawt in forum Excel General
    Replies: 5
    Last Post: 01-01-2010, 09:17 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