+ Reply to Thread
Results 1 to 10 of 10

Returning value in top row of table

  1. #1
    Registered User
    Join Date
    06-11-2019
    Location
    Scotland
    MS-Off Ver
    2016
    Posts
    5

    Returning value in top row of table

    Hi,

    I'm new to this forum and excel in general. I'm looking for help with the following: in the table below, how do I locate certain value and return corresponding value from top row of the same table?

    I.e. if I'm looking for 2000, but don't know what row/column is it, I want formula to return February.

    table.png

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Returning value in top row of table

    Hi and welcome
    Try https://www.quora.com/What-is-the-fo...nd-table-value

  3. #3
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Returning value in top row of table

    What do you expect to be your result when looking for '5'?

  4. #4
    Registered User
    Join Date
    06-11-2019
    Location
    Scotland
    MS-Off Ver
    2016
    Posts
    5
    Thanks for reply Pepe Le Mokko however this formula won't work as there are no row headings. I know the value I'm looking for and I need to locate it in a table with only column headings and return the value in the top row for that column.

  5. #5
    Registered User
    Join Date
    06-11-2019
    Location
    Scotland
    MS-Off Ver
    2016
    Posts
    5
    Quote Originally Posted by kersplash View Post
    What do you expect to be your result when looking for '5'?
    I'm looking for max value which is very likely to be unique.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,800

    Re: Returning value in top row of table

    The max value in your table is 4000, so it's a bit confusing.

    It would help if you attached a sample Excel workbook.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Do not try to use the Paperclip icon, as this does not work on this forum.

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    06-11-2019
    Location
    Scotland
    MS-Off Ver
    2016
    Posts
    5
    Quote Originally Posted by Pete_UK View Post
    The max value in your table is 4000, so it's a bit confusing.

    It would help if you attached a sample Excel workbook.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Do not try to use the Paperclip icon, as this does not work on this forum.

    Hope this helps.

    Pete
    Thanks Pete, I've now attached a sample table. What I'm looking for is to return a column heading for max value in the table - in this case february as the max value is 5678.
    Attached Files Attached Files

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Returning value in top row of table

    Something like =INDEX(A1:D1,SUMPRODUCT(COLUMN(A2:D5)*(A2:D5=MAX(A2:D5)))-COLUMN(A2:D5)+1)

  9. #9
    Registered User
    Join Date
    06-11-2019
    Location
    Scotland
    MS-Off Ver
    2016
    Posts
    5
    Quote Originally Posted by Pepe Le Mokko View Post
    Something like =INDEX(A1:D1,SUMPRODUCT(COLUMN(A2:D5)*(A2:D5=MAX(A2:D5)))-COLUMN(A2:D5)+1)

    Thanks a lot Pepe, it worked!
    Last edited by excelhino; 06-12-2019 at 02:48 PM.

  10. #10
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Returning value in top row of table

    Errr, it's Pepe , not Pete ...

+ 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] Returning a value from a table with 4 variables
    By cbruss in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-06-2017, 02:42 AM
  2. Replies: 7
    Last Post: 06-30-2017, 09:23 AM
  3. [SOLVED] Returning row and column value from a table
    By excelhelpguy123 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-12-2016, 02:55 PM
  4. Returning row and column value from a table
    By excelhelpguy123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-12-2016, 02:15 PM
  5. Replies: 6
    Last Post: 12-10-2013, 05:34 PM
  6. Replies: 1
    Last Post: 07-31-2013, 04:11 PM
  7. Returning data in one table based on the values from another table
    By excelignorant in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-24-2013, 04:12 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