+ Reply to Thread
Results 1 to 5 of 5

Extracting Column heading from Table

  1. #1
    Registered User
    Join Date
    06-25-2023
    Location
    T.O.
    MS-Off Ver
    2013
    Posts
    2

    Extracting Column heading from Table

    I have a table with column headings and under each column is the data. Given the inputs, I want to create a formula to achieve the desired result highlighted in Yellow.

    I know this must be fairly simple but given my limited knowledge, any help would be greatly appreciated! I am using a desktop version of MS Excel 2013



    Excel.xlsx

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Extracting Column heading from Table

    B8=IFERROR(INDEX($A$1:$C$1,,AGGREGATE(15,6,COLUMN($A$1:$C$1)-COLUMN($A$1)+1/($A$2:$C$4=$A8),COLUMNS($A$1:A1))),"")

    Copy down

  3. #3
    Registered User
    Join Date
    06-25-2023
    Location
    T.O.
    MS-Off Ver
    2013
    Posts
    2

    Re: Extracting Column heading from Table

    Thank you, this works on my desktop MS Excel. I'm trying to upload this to my Google Sheets for sharing and it seems like it doesn't like the Aggregate formula. Would it be possible to help me break it down to a Google Sheets friendly formula

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,004

    Re: Extracting Column heading from Table

    If you are going to use google sheets, you should have mentioned in the OP.

    B8
    =INDEX($A$1:$C$1,,SUMPRODUCT(($A$2:$C$4=A8)*COLUMN($A$2:$C$4)))

    copied down.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,836

    Re: Extracting Column heading from Table

    Please change your proile to Google Sheets if that is what you are now using.

    I am moving this to the correct forum section.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Return the Column Heading of a Table - Help really needed!
    By ZachJones810 in forum Excel General
    Replies: 2
    Last Post: 11-18-2016, 10:18 AM
  2. Get column heading of last value in a row in that particular table
    By Operator in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-08-2016, 12:16 PM
  3. [SOLVED] Summing a column based on table heading
    By J0rgen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-27-2014, 07:28 AM
  4. Extracting Row Information if Value appears in Columns to List under Column Heading
    By cristame in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2013, 11:26 AM
  5. Replies: 7
    Last Post: 01-25-2013, 05:17 PM
  6. Lookup item in table and get column heading
    By jayanderson78 in forum Excel General
    Replies: 1
    Last Post: 09-23-2010, 11:55 AM
  7. [SOLVED] In a table produce an value by column heading and row heading
    By naflan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-27-2005, 01: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