+ 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
    14

    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
    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,470

    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!
    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.

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

    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
    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,470

    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)

Similar Threads

  1. Copy range A of cells if value is in range B & paste in range B/Multiple Or
    By Jeremycad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2018, 04:28 AM
  2. Replies: 4
    Last Post: 02-24-2017, 02:06 AM
  3. Replies: 9
    Last Post: 05-19-2016, 06:48 PM
  4. Replies: 0
    Last Post: 05-18-2016, 04:52 PM
  5. [SOLVED] Help! - Copy Range (Sheet1,A10:F50), Paste Range (Sheet 2,A1:F41), Offset Range & Repeat
    By cjtimmer in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-30-2015, 06:27 PM
  6. [SOLVED] Count number of occurances below a range, within a range, and below a range
    By maacmaac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-15-2013, 11:36 PM
  7. send to range, popup box to input what the range should be each time/select range
    By lax2734 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2012, 01:37 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