+ Reply to Thread
Results 1 to 5 of 5

Search for row and column title

  1. #1
    Registered User
    Join Date
    10-20-2017
    Location
    Sweden
    MS-Off Ver
    2017
    Posts
    3

    Search for row and column title

    Hi

    I need formula which will show column title and row title in table for specific data which i will ask for. Note that data which i will look for will be always unique.
    forum.png

    I tried =INDEX($C$35:$E$35,MATCH($A$36,C36:E36,0)) but its only working in one column or in one row, not in multiple area. Same with HLOOKUP and VLOOKUP.

    Thank you in advance for help.

    P
    Attached Images Attached Images

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Search for row and column title

    welcome to the forum, soldelta. do upload an excel sample so that we do not have to manually key in your data to do a testing.

    input the desired results like you did so that we don't have to second-guess if what we are doing is correct or not. you may look at my signature to upload an eg that is easier to understand.

    the upload attachment must be done by going to Go Advanced. click on Manage Attachments. Choose file, upload and close the window.

    hopefully, i did a correct guess. otherwise, i have wasted time coming up with something that does not help you. if i really guessed it wrongly, please upload something according to my recommendations. try to use the solution i have given and we'll help to advise what went wrong.

    when you say "data which i will look for will be always unique.", you mean "B" or "CCC" will only appear once in that particular column? try:
    =INDEX($B$34:$B$36,MATCH(H33,INDEX($C$34:$E$36,,MATCH(H34,$C$33:$E$33,0)),0))
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    10-20-2017
    Location
    Sweden
    MS-Off Ver
    2017
    Posts
    3

    Re: Search for row and column title

    Hi

    Sorry for not following forum rules.
    When i open your file, i need to put data in both "Search for" and "day". Then your formula in "Drawer" will show me name. What i need is just to put "Search for" and both day and drawer will show correct column and row title.

    P

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Search for row and column title

    in my file, change H34 to:
    =INDEX(C33:E33,SUMPRODUCT((C34:E36=H33)*COLUMN(C34:E36))-COLUMN(C34)+1)

    H35 to:
    =INDEX(B34:B36,SUMPRODUCT((C34:E36=H33)*ROW(C34:E36))-ROW(C34)+1)

  5. #5
    Registered User
    Join Date
    10-20-2017
    Location
    Sweden
    MS-Off Ver
    2017
    Posts
    3

    Re: Search for row and column title

    Works, thank you very much for help!

+ 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] Search a sheet for a song title and return Album title
    By A440 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-28-2016, 10:19 AM
  2. a formula to search and consider all rows with the same title
    By Mill8 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-12-2015, 02:56 AM
  3. [SOLVED] Search for pdf files by date or title
    By bnwash in forum Excel General
    Replies: 32
    Last Post: 05-24-2015, 09:12 PM
  4. many workbooks title into cell after search
    By mrjackt in forum Excel General
    Replies: 0
    Last Post: 03-05-2015, 08:58 AM
  5. Using cell contents to search for corresponding sheet title
    By teblowtime in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2013, 03:31 PM
  6. Replies: 4
    Last Post: 10-19-2012, 12:09 PM
  7. [SOLVED] Named range=Column title,comumn title in cellB6 use B6in equation
    By Graham in forum Excel General
    Replies: 2
    Last Post: 07-21-2006, 05:10 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