+ Reply to Thread
Results 1 to 3 of 3

How to create a GREATER THAN formula

  1. #1
    Registered User
    Join Date
    07-22-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    11

    Cool How to create a GREATER THAN formula

    I have two columns in excel 2007. The columns are (price) and (MSRP). If B2 (MSRP) is greater then A2 (price) I want to replace B2 with A2.

    Example:
    A2: $238.80 B2:$299.99

    Result: A2 $299.99

    What formula would I use? I think its important to note: if greater than or equal to replace. If not leave cell alone.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to create a GREATER THAN formula

    HI SubPar,

    Welcome to the forum.

    You can use below formula in column C :-

    =IF(B2>=A2,B2,"")

    and when done, just replace column A with column C's results if you want . thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey
    +91 9810929744
    [email protected]

  3. #3
    Forum Guru Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: How to create a GREATER THAN formula

    Perhaps..

    =MAX(A2,B2)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    07-22-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: How to create a GREATER THAN formula

    Quote Originally Posted by dilipandey View Post
    HI SubPar,

    Welcome to the forum.

    You can use below formula in column C :-

    =IF(B2>=A2,B2,"")

    and when done, just replace column A with column C's results if you want . thanks.

    Regards,
    DILIPandey


    <click on below 'star' if this helps>
    The only problem with executing this formula would be the copy/paste of the blank cells for the value it didn't change, other then that the formula is fine. Ace_XL formula resolve this, thanks.

    Quote Originally Posted by Ace_XL View Post
    Perhaps..

    =MAX(A2,B2)

    Thanks


    It would be nice to have a Marcos to handle this. Do either one of you know a Marcos for this?
    Last edited by SubPar; 07-28-2012 at 07:55 AM.

+ 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