+ Reply to Thread
Results 1 to 8 of 8

Formula for multiple conditions.

  1. #1
    Registered User
    Join Date
    01-20-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    32

    Formula for multiple conditions.

    Need a formula to the following please:

    IF A1 is greater than 0 and less than 7, then return the result in A1
    IF A1 is equal or greater than 7, then return 7
    IF A1 is equal or less than 0, then return nothing
    IF A1 is empty then return nothing.


    Thanks
    Last edited by halfpint123; 09-28-2012 at 11:53 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If Forumla Help

    ..iF A1 is greater than 0 and less than 7, then return the result in A1
    What do you mean by this?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: If Forumla Help

    Hi,

    not sure what you're waiting to get if A1 is 0 or 7


    An attempt

    Please Login or Register  to view this content.

    Cheers
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

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

    Re: If Forumla Help

    =if(or(a1="",a1<0),"",if(a1>7,7,a1))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: If Forumla Help

    Hi,

    not sure what you're waiting to get if A1 is 0 or 7


    An attempt

    Please Login or Register  to view this content.

    Cheers

  6. #6
    Registered User
    Join Date
    01-20-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: If Forumla Help

    Corrected what I want. Please help

  7. #7
    Registered User
    Join Date
    01-20-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: If Forumla Help

    give the figure in A1.

    So for instance if 8 is A1, the formula would return 7.
    If 6 is A1 the formula would return 6.

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula for multiple conditions.

    My suggestion.

    =IF(OR(A1=0,A1=""),"",IF(A1>7,7,IF(AND(A1>0,A1<=7),A1)))

+ 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