+ Reply to Thread
Results 1 to 8 of 8

return number from column if number is greater than and return result from different cell.

  1. #1
    Registered User
    Join Date
    12-06-2015
    Location
    canada
    MS-Off Ver
    2007
    Posts
    3

    return number from column if number is greater than and return result from different cell.

    my knowledge with excel is limited and i dont know how to do this. Any help would be greatly appreciated. Thank you.

    If a number in the column C1:C10 > A1 then return the value from B cell of that same row

  2. #2
    Registered User
    Join Date
    11-18-2015
    Location
    Madrid
    MS-Off Ver
    2016
    Posts
    95

    Re: return number from column if number is greater than and return result from different c

    Hi, write this in cell D1, and copy down:
    Please Login or Register  to view this content.
    excelbat.com: free Excel tools, macros...

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,175

    Re: return number from column if number is greater than and return result from different c

    If I understand your question: compare each Cell in range C1:C10 against A1

    in D1

    =IF(C1>$A$1,B1,"")

    Copy down
    Last edited by JohnTopley; 12-06-2015 at 06:56 AM.

  4. #4
    Registered User
    Join Date
    12-06-2015
    Location
    canada
    MS-Off Ver
    2007
    Posts
    3

    Re: return number from column if number is greater than and return result from different c

    thanks for the reply guys! I want to condense it to only one cell, rather than copying it all the way down. I want the formula to go down each cell and return the first cell that makes that statement true. I thought the solution might be in a combination of index and match. but i have not been able to figure out how to properly use them to return a number from the cell over. thanks again for your help!

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,175

    Re: return number from column if number is greater than and return result from different c

    Try

    =IFERROR(INDEX($B$1:$B$10,SMALL(IF($C$1:$C$10>$A$1,ROW($B$1:$B$10)-ROW($B$1)+1,""),ROWS($B$1:B1))),"")

    will return all values from B where C> A1

    =IFERROR(INDEX($B$1:$B$10,SMALL(IF($C$1:$C$10>$A$1,ROW($B$1:$B$10)-ROW($B$1)+1,""),1)),"")

    Will return first

    Enter both with Ctrl+Shift+Enter

  6. #6
    Registered User
    Join Date
    12-06-2015
    Location
    canada
    MS-Off Ver
    2007
    Posts
    3

    Re: return number from column if number is greater than and return result from different c

    Fantastic! Just what i was looking for. I may have had more success if i knew about ctrl+shift+enter before. Thanks so much! i was struggling with this problem for quite some time, thanks again!

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,175

    Re: return number from column if number is greater than and return result from different c

    Thank you for the feedback. If your problem has been addressed please mark the thread as SOLVED ("thread Tools" at top of post).

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: return number from column if number is greater than and return result from different c

    Quote Originally Posted by saoldric View Post
    I may have had more success if i knew about ctrl+shift+enter before.
    See this:

    http://www.cpearson.com/Excel/ArrayFormulas.aspx
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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: 7
    Last Post: 10-08-2014, 12:19 PM
  2. Replies: 2
    Last Post: 02-14-2014, 03:33 PM
  3. Replies: 5
    Last Post: 02-13-2014, 05:37 PM
  4. [SOLVED] Formula to index each column and return whole number greater than zero below Yes OR No
    By Martin Chamberlin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2013, 12:24 AM
  5. Return row & column number from cell in 2d array
    By ranald in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-13-2013, 05:27 PM
  6. Return value once sum is greater than a certain number
    By simmo86 in forum Excel General
    Replies: 6
    Last Post: 06-30-2011, 03:19 PM
  7. return the column reference number of a function result
    By Mahendhra in forum Excel General
    Replies: 2
    Last Post: 05-16-2005, 08:06 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