+ Reply to Thread
Results 1 to 4 of 4

When column value is reached return contents from adjacent cell

  1. #1
    Registered User
    Join Date
    03-18-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2208 Build 16.0.15601.20148) 64-bit
    Posts
    14

    When column value is reached return contents from adjacent cell

    Hi, I'm trying to find a formula so when the value in a table from column A "Temperature" goes above 35, the value in the same row but from table column B "Pressure" is returned?

    While this is a simplified example, the actual data will have many rows and columns. The indicated rows may not necessarily be next to each other.

    Any help would be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: When column value is reached return contents from adjacent cell

    Will. Do you have 365?

    =INDEX(Table1,MIN(IF(Table1[Temperature]>35,ROW(Table1[Temperature]),999999))-1,2)


    You might want to wrap your formula with

    =If(Max(Table1[Temperature]) >=35, Formula , "")

    You may need to enter this using Ctrl Shift Enter. The 2 at the end of the table tells excel to return the value in column 2 of the table.

    =If(Max(Table1[Temperature]) >=35, INDEX(Table1,MIN(IF(Table1[Temperature]>35,ROW(Table1[Temperature]),999999))-1,2) , "")


    Yes that worked for me.
    Last edited by mehmetcik; 11-11-2021 at 10:39 AM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    03-18-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2208 Build 16.0.15601.20148) 64-bit
    Posts
    14

    Re: When column value is reached return contents from adjacent cell

    Quote Originally Posted by mehmetcik View Post
    Will. Do you have 365?
    I believe so yes, I think this is Excel version 16.

  4. #4
    Registered User
    Join Date
    03-18-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2208 Build 16.0.15601.20148) 64-bit
    Posts
    14

    Re: When column value is reached return contents from adjacent cell

    Hi Mehmetcik, that works perfectly. I'll play around with both formulas you suggested.

    Thats the second time you've helped me out this week, thanks so much

+ 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: 3
    Last Post: 07-17-2020, 01:15 PM
  2. Check contents of cell against an adjacent cell and return comparison?
    By Nate Westcott in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-07-2015, 01:05 PM
  3. [SOLVED] Find first cell where threshold value is reached, return value from adjacent column
    By CatSqueezer in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-06-2013, 08:49 PM
  4. Replies: 2
    Last Post: 08-04-2013, 11:28 AM
  5. Insert Column Adjacent to Cell If Cell Contents Anything Other Than Condition
    By Jrub in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 03-20-2013, 03:45 PM
  6. Sum until a 0 is reached, then add value from adjacent cell
    By fuller_trey in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-05-2012, 12:47 PM
  7. Sum until a certain value is reached in the adjacent cell
    By alebirolo in forum Excel General
    Replies: 3
    Last Post: 06-17-2011, 10:33 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