+ Reply to Thread
Results 1 to 4 of 4

Look up in the range

  1. #1
    Registered User
    Join Date
    03-06-2019
    Location
    Prague
    MS-Off Ver
    MS Office 2016
    Posts
    4

    Look up in the range

    Hello.

    I am trying to create a formula, that would look up the name of the column with the last value OK as per example below. Could you please help with the syntax?

    Max#1 Max#2 Max#3 Max#4 Expected Result
    NOT OK OK OK OK Max#4
    NOT OK OK NOT OK NOT OK Max#2
    NOT OK OK OK NOT OK Max#3

    Thank you in advance.
    Alisa
    Last edited by AlisaS; 04-17-2019 at 11:40 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2016 (Win 10 - Work) & 365 Subscription (Win 10 - Home)
    Posts
    24,763

    Re: Look up in the range

    Try this:

    =LOOKUP(2,1/($A2:$D2="OK"),$A$1:$D$1)

    Change the ranges to suit.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    STOP PRESS: Forum Rules Updated September 2018! Please read them here.
    Are you new to Power Query and don't know what to do with the code you've been given? Have a look here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Registered User
    Join Date
    03-06-2019
    Location
    Prague
    MS-Off Ver
    MS Office 2016
    Posts
    4

    Re: Look up in the range

    It works. Thank you very much!
    Alisa

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2016 (Win 10 - Work) & 365 Subscription (Win 10 - Home)
    Posts
    24,763

    Re: Look up in the range

    No problem.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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