+ Reply to Thread
Results 1 to 8 of 8

less than or greater than

  1. #1
    Forum Contributor
    Join Date
    04-30-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2007
    Posts
    234

    less than or greater than

    A1: 10
    C1: 20

    B1: is there a formula to show A1 is less than or equal to C1?

    Like this...

    10 < 20

    10 = 10

    20>10

  2. #2
    Forum Contributor
    Join Date
    01-28-2010
    Location
    Riverside, CA
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: less than or greater than

    Are you looking for something like this?

    A1<=C1
    Happy Excel'ing!

  3. #3
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: less than or greater than

    sure: =A1&IF(A1<C1,"<",IF(A1>C1,">","="))&C1
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: less than or greater than

    Or in B1
    =IF(A1<C1, A1&"<"&C1,IF(A1>C1, A1&">"&C1, A1&"="&C1))?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Contributor
    Join Date
    04-30-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2007
    Posts
    234

    Re: less than or greater than

    tlafferty, is there a way to show only the less than or greater sign?

    haru, yes i'm looking for this A1<=C2

  6. #6
    Forum Contributor
    Join Date
    04-30-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2007
    Posts
    234

    Re: less than or greater than

    i want something like this

    A1: 10
    B1: <
    C1:20

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: less than or greater than

    =if(a1<c1, "<",if(a1>c1, ">", "="))

  8. #8
    Forum Contributor
    Join Date
    04-30-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2007
    Posts
    234

    Re: less than or greater than

    nice thank you chemist, you're great!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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