+ Reply to Thread
Results 1 to 5 of 5

IF formula

Hybrid View

  1. #1
    Registered User
    Join Date
    12-14-2016
    Location
    lusk
    MS-Off Ver
    use mostly in google
    Posts
    1

    IF formula

    Hi
    Need help.
    Need a correct formula
    if a=97-100 then b=1,1
    if a=85-96,99 then b=1

    Thanks in advance

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,695

    Re: IF formula

    Try this:

    =IF(AND(A1>=85;A1<97);1;IF(AND(A1>=97;A1<=100);1,1;0))
    Last edited by AliGW; 12-14-2016 at 06:18 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,418

    Re: IF formula

    Try this in B1:

    =IF(A1>=97;1,1;IF(A1>=85;1;""))

    You have not said what you want if a is below 85 - this formula returns a blank.

    Hope this helps.

    Pete

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: IF formula

    Maybe I'm missing something - (wouldn't be the first time) but you appear to be saying that all the values from 85-100 should result in a 1.
    Hence if so, why do you want two if tests?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,418

    Re: IF formula

    Richard,

    I think the OP uses a comma instead of a decimal point, so 97-100 equates to 1.1 and 85-97 equates to 1.0

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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