+ Reply to Thread
Results 1 to 6 of 6

Return column headers from a 2D array

  1. #1
    Registered User
    Join Date
    11-07-2022
    Location
    Bekasi, Indonesia
    MS-Off Ver
    Office 365
    Posts
    9

    Return column headers from a 2D array

    Dear All.
    Good days,

    I have a question as picture below :
    Sample.PNG

    What if I want to know the unique number in row number Two (2) based on the unique number in column B, there's any suggestion?

    Thank you.

  2. #2
    Registered User
    Join Date
    08-29-2018
    Location
    Sharjah
    MS-Off Ver
    2007
    Posts
    3

    re: Return column headers from a 2D array

    Use the formula in cell B11 with Ctrl+Shift+Enter and drag it forward
    =IFERROR(INDEX($B$1:$M$1,0,SMALL(IF(INDEX($B$2:$M$8,MATCH($A$11,$A$2:$A$8,0),0)<>"",COLUMN($B$1:$M$1)-1),COLUMNS($B$11:B11))),"")

    See the attached sample file.
    Attached Files Attached Files

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    re: Return column headers from a 2D array

    Or:

    =FILTER(B1:H1,FILTER(B2:H6,A2:A6=A9)=1)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    re: Return column headers from a 2D array

    mas uqon.

    Hi. Forum Rule 1 is very short. It states: "Title must briefly summarize your request."

    A GOOD thread title is the sort of thing you would use as a search term on Google*. Your chosen title would produce a squillion useless hits. In future, please take a bit more time to think of a descriptive title that would be "Google-friendly". Many people search the forum answers looking for help and your very general title wouldn't help them at all.

    Since you are a new or very infrequent user of this site, on this occasion, I have changed it for you.

    However, if you continue to use weak titles, you can expect to have your thread BLOCKED until you change it yourself. If that happens, to edit the thread title, open the original post, click "Edit Post" (bottom right) to access the area where you can edit your title.

    To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    *Other search engines are available!!!



    Regards,

    Glenn.

  5. #5
    Registered User
    Join Date
    11-07-2022
    Location
    Bekasi, Indonesia
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Return column headers from a 2D array

    Dear Junaid Azhar,
    thank you for your answer, it's work.

    Dear Glenn,
    Thanks for the answers and suggestions too.
    I just don't know how to solve this case, next time I will check with other search engines first.
    Thank you.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Return column headers from a 2D array

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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: 18
    Last Post: 10-24-2022, 09:13 PM
  2. Formula to return column headers
    By Prototype in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-09-2017, 02:53 AM
  3. Replies: 3
    Last Post: 06-16-2016, 02:09 AM
  4. [SOLVED] return row and column headers
    By learner81 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-11-2015, 08:55 PM
  5. [SOLVED] Array Formula to print out column headers
    By DublinMeUp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2012, 04:18 PM
  6. Replies: 2
    Last Post: 05-09-2012, 01:30 PM
  7. return a value based on column and row headers
    By jimmy1981 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-01-2012, 11:02 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