+ Reply to Thread
Results 1 to 3 of 3

Find the first occurence of a value in range of cells & return the the column header label

  1. #1
    Registered User
    Join Date
    08-19-2013
    Location
    Santa Ana, California
    MS-Off Ver
    Excel 2010
    Posts
    5

    Find the first occurence of a value in range of cells & return the the column header label

    How can i find the first occurrence of a value in a range of cells. If the value is found then return the columns header label. If the value is not found, then return text "none".

    Attached spreadsheet with example data set.

    Thank you all!!

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Find the first occurence of a value in range of cells & return the the column header l

    Hi,

    In cell A2, use this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then drag it down as far as is necessary.

    Hope this helps
    Last edited by ajryan88; 09-09-2013 at 06:48 PM.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find the first occurence of a value in range of cells & return the the column header l

    Try this...

    =IFERROR(INDEX(B$1:K$1,MATCH("Yes",B2:K2,0)),"None")

    Copy down as needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Find True in one of 3 columns and return column label
    By rnomis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-09-2013, 08:49 AM
  2. [SOLVED] How do I find the first occurence of a series of data in a range and return the value
    By bparrott in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-29-2013, 07:05 PM
  3. Replies: 6
    Last Post: 07-26-2012, 06:34 PM
  4. Find the row header and column label from a cell reference
    By Clddleopard in forum Excel General
    Replies: 3
    Last Post: 09-08-2011, 07:42 PM
  5. Find last numerical value in row range and return the column header
    By Fidd$ in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-04-2011, 10:15 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