+ Reply to Thread
Results 1 to 4 of 4

If Greater Than Match cell. IM SURE THIS SHOULD BE SIMPLE

  1. #1
    Registered User
    Join Date
    09-30-2012
    Location
    LONDON, ENGLAND
    MS-Off Ver
    Excel 2007
    Posts
    26

    If Greater Than Match cell. IM SURE THIS SHOULD BE SIMPLE

    Hi there, pulling my hair out over this one, Im a bit of a beginner so i would appreciate help with this one.

    I though this would be one of the easiest formulas on my sheet but its proving a pain in the backside.

    I trying to make a cell show the value of another cell if it is over 6 if the value of the other cell is under 6 i want it to display 6. However all it keeps doing is showing what ever is in the other cell.

    Here is my formula:
    =IF(H46>6,H46,"6")
    I just tried =IF(H46>6),H46(H46<6),6
    but that does not work either

    Much appreciated

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: If Greater Than Match cell. IM SURE THIS SHOULD BE SIMPLE

    =IF(H46>6,H46,6) should work as long as h46 has a real number or try =IF(H46+0>6,H46+0,6)
    or even just
    =max(h46,6) or =max(h46+0,6)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor wallyeye's Avatar
    Join Date
    05-06-2011
    Location
    Arizona
    MS-Off Ver
    Office 2010, 2007
    Posts
    308

    Re: If Greater Than Match cell. IM SURE THIS SHOULD BE SIMPLE

    Is the value a number or text? If it is text, you will need to convert it to a value to compare:

    =IF(value(H46)>6,H46,"6")

    or

    =IF(value(H46)>6,H46,6)

  4. #4
    Registered User
    Join Date
    09-30-2012
    Location
    LONDON, ENGLAND
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: If Greater Than Match cell. IM SURE THIS SHOULD BE SIMPLE

    HI

    Thank MartinDwilson =max(h46+0,6) worked great

    Thanks again

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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