+ Reply to Thread
Results 1 to 5 of 5

How to return column title from an array formula

  1. #1
    Registered User
    Join Date
    09-12-2013
    Location
    Kent, England
    MS-Off Ver
    Excel 2010
    Posts
    67

    How to return column title from an array formula

    Hi everyone.

    I have a table of results from a form giving me a number of items and whether they are missing or present. The Items are in f1:BM1 and the result (missing or present) are in f2:bm2. I want a list created in cells a4:a(however many results say missing). I found a formula online to do this sort of thing but it is an array for rows and not columns and no matter how much I try and play with it I can't get it to do what I want it to do.
    The formula I got online is
    Please Login or Register  to view this content.
    I have modified it to fit my parameters and seems to recognised the "Missing" part as when I evaluate it it returns a value for each column number so for F it returned 6 then false for G and then 8 for H and so on
    Please Login or Register  to view this content.
    To be honest I don't understand the array formula well enough to work out the problem.
    If anyone can help I'd be much appreciated

    Neil

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,144

    Re: How to return column title from an array formula

    Try

    in A4

    =IFERROR(INDEX($F$1:$BM$1,SMALL(IF($F$2:$BM$2="missing",COLUMN($F$1:$BM$1)-COLUMN($F$1)+1,""),ROWS($1:1))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    then copy down

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to return column title from an array formula

    Try this in A4:

    =IFERROR(INDEX($1:$1,SMALL(IF(F$2:BM$2="missing",COLUMN(F$2:BM$2)),ROWS($1:1))),"") Ctrl Shift Enter

    Drag the formula down as far as needed.

  4. #4
    Registered User
    Join Date
    09-12-2013
    Location
    Kent, England
    MS-Off Ver
    Excel 2010
    Posts
    67

    Re: How to return column title from an array formula

    Thank you so much. That works perfectly.

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to return column title from an array formula

    Glad we could help. Thanks for the rep!

+ 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] Array formula to return table column values, alpha sorted
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-07-2017, 09:31 AM
  2. [SOLVED] Formula to return column title based on a cell reference
    By AJB611 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-03-2017, 11:59 AM
  3. Array Formula To Return Unique Values From a Column Using a Value
    By lucas813 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 02-13-2015, 12:07 PM
  4. Need to search array and return value along with title and row values
    By wilburr in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-28-2013, 06:01 AM
  5. Return the Title of a column if the column is the highest column with data
    By williamspage in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-22-2013, 10:05 AM
  6. Replies: 7
    Last Post: 04-16-2009, 01:03 PM
  7. Find max value in a row and return column title
    By Jshendel in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-21-2006, 12:25 PM

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