+ Reply to Thread
Results 1 to 3 of 3

using less than and greater than in one formula

  1. #1
    Registered User
    Join Date
    04-04-2011
    Location
    San Martin CA
    MS-Off Ver
    Excel 2010
    Posts
    1

    using less than and greater than in one formula

    I need a formula to do the following function:
    cell Y = If (cellx) >7.92 and (cellx) <=8.0, return a value of 8, and if (cellx) >8.0, return true value of (cellx)
    Can this be done?

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

    Re: using less than and greater than in one formula

    Let's say Cellx is A1,

    =IF(AND(A1>7.92,A1<=8.0),8,A1)

    How's that work for you?
    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

  3. #3
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: using less than and greater than in one formula

    What do you want the result to be if cellx is ≤ 7.92?

+ 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