+ Reply to Thread
Results 1 to 9 of 9

very bacis IF formula - not working

  1. #1
    Registered User
    Join Date
    01-27-2016
    Location
    Prague
    MS-Off Ver
    2013
    Posts
    3

    very bacis IF formula - not working

    Hello,
    I would like to ask for help with very basic IF formula - the typical example with intervals : it is working only for number 75 and it shows "a", with other, lower number it is automatically "fail" option. I couldnt find the mistake, if u please could help me.

    =IF(G9>=75;"a";IF(G9>=60<75;"b";IF(G9>=40<60;"c";"fail")))

    thank you.

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: very bacis IF formula - not working

    Try

    =IF(G9>=75;"a";IF(AND(G9>=60;G9<75);"b";IF(AND(G9>=40;G9<6);"c";"fail")))
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    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: very bacis IF formula - not working

    ...another approach

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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.

  4. #4
    Registered User
    Join Date
    01-27-2016
    Location
    Prague
    MS-Off Ver
    2013
    Posts
    3

    Re: very bacis IF formula - not working

    Thank you for answer. It worked.
    I woule like to also ask how I could define weather I shoud you only IF(IF...)functions and IF(AND)IF function- because in the tutorial video I wathech they used with very similar task just IF(IF...))function and IF(AND(IF...)) was with multiple numbers/logical test values.
    thank you.

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: very bacis IF formula - not working

    Yes It can be done with simply as below. I didn't realize at that moment.

    =IF(G9>=75;"a";IF(G9>=60;"b";IF(G9>=40;"c";"fail")))

  6. #6
    Registered User
    Join Date
    01-27-2016
    Location
    Prague
    MS-Off Ver
    2013
    Posts
    3

    Re: very bacis IF formula - not working

    Oh, yes, now I see my mistake with >=60<75 that´s why it wasnt working.´

    thank you very much again

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: very bacis IF formula - not working

    Glad it help you and thanks for feedback.

    Please marks as it solved if your problem has now solved

  8. #8
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,077

    Re: very bacis IF formula - not working

    or try

    =LOOKUP(G9,{-1E99,40,60,75},{"fail","c","b","a"})
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  9. #9
    Forum Contributor
    Join Date
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: very bacis IF formula - not working

    Hi to all,

    Another approach could be:

    =CHOOSE(MATCH(G9,{0,40,60,75},1),"Fail","c","b","a")

    Blessing

+ 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: 3
    Last Post: 05-14-2015, 07:32 AM
  2. Correct/Working (Index,Match) formula not working between cells
    By barnerd in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-11-2014, 01:20 PM
  3. Replies: 3
    Last Post: 10-10-2013, 10:15 PM
  4. Working formula for 2007 not working in 2003, SumIfs not available in 2003: Can it be ??
    By Spreadlover in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-05-2013, 06:06 PM
  5. Replies: 9
    Last Post: 03-08-2013, 11:50 AM
  6. Replies: 2
    Last Post: 08-17-2012, 08:16 AM
  7. Replies: 2
    Last Post: 08-01-2012, 11:53 AM

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