+ Reply to Thread
Results 1 to 3 of 3

Formula to find Greater / Lesser Value in a Range of Column

  1. #1
    Registered User
    Join Date
    06-29-2022
    Location
    Canada
    MS-Off Ver
    2021
    Posts
    38

    Formula to find Greater / Lesser Value in a Range of Column

    Hi,

    I have values in column F from F4 onward. In column C and D, I also have some values.

    From Cell G5 Onward:
    In cell G5, I want to search C5 value in Range E5:E74 and if there is any value in this range equal or lesser than C5 value, then 0 should be written in cell G5. Otherwise, it should write value of cell G1 in cell G5.
    In cell G6, I want to search C6 value in Range E6:E74 and if there is any value in this range equal or lesser than C6 value, then 0 should be written in cell G6. Otherwise, it should write value of cell G1 in cell G6.
    And so on…

    From Cell H5 Onward:
    In cell H5, I want to search D5 value in Range E5:E74 and if there is any value in this range equal or Greater than D5 value, then 0 should be written in cell H5. Otherwise, it should write value of cell G1 in cell H5.
    In cell H6, I want to search D6 value in Range E6:E74 and if there is any value in this range equal or Greater than D6 value, then 0 should be written in cell H6. Otherwise, it should write value of cell G1 in cell H6.
    And so on ….

    (Excel File is attached for more clarification)

    (I am using Excel 2021)

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,691

    Re: Formula to find Greater / Lesser Value in a Range of Column

    I have attached a file with a solution that matches what you described in your post.

    But your example results do not match that description. For example, in row 9, C5 is 1830. Your result in column G is -5, suggesting that no values were found in E5:E74 that are less than 1830. However, all the values that in range are less than 1830. You have a similar problem with the sample results in column H.

    Also I can't see how the column headings in G and H relate to your description:
    Please Login or Register  to view this content.

    Also is there any utility to the value in H1?
    Attached Files Attached Files
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    06-29-2022
    Location
    Canada
    MS-Off Ver
    2021
    Posts
    38

    Re: Formula to find Greater / Lesser Value in a Range of Column

    Hi 6StringJazzer,

    Thank you so much sir.

    This is exactly what i wanted.

+ 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] Find maximum date with from range with last value greater than zero from next column
    By anotherbe01 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-27-2017, 07:31 PM
  2. [SOLVED] always deduct the lesser value from the greater value from two columns please?
    By fruit&veg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-30-2014, 11:00 AM
  3. Replies: 3
    Last Post: 10-10-2012, 06:37 AM
  4. Greater then and lesser then.
    By Bharathms3 in forum Excel General
    Replies: 7
    Last Post: 02-04-2012, 10:53 AM
  5. Greater or Lesser Than Formula
    By MBoozer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-16-2006, 02:17 AM
  6. greater than or lesser than formulas
    By Orrutility secretary in forum Excel General
    Replies: 4
    Last Post: 09-27-2005, 03:05 PM
  7. if greater or lesser than
    By ditchy in forum Excel General
    Replies: 5
    Last Post: 08-04-2005, 12:05 AM

Tags for this Thread

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