+ Reply to Thread
Results 1 to 10 of 10

Logical , functions , on ( IF , AND , OR)

Hybrid View

  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    Johannesburg
    MS-Off Ver
    Excel 2007
    Posts
    10

    Logical , functions , on ( IF , AND , OR)

    Good Day, Hope somebody can assist me with this logical and mindboggling functions.
    I am trying to group a rating on point system say for instance between 55 - 65 ( 5 points ) , 66 - 76 ( 10 points ) 77 -87 ( 15 points ) 88 - 98 ( 20 points ) ansd so forth.

    the Formula that i tried to use is in D1 whiich is =IF(AND(B2>113,B2>103),"25",IF(AND(B2>102,B2>92),"20",IF(AND(B2>91,B2>81),"15",IF(AND(B2>80,B2>70),"10",IF(AND(B2>69,B2>59),"5",IF(AND(B2>55,B2>65),"5"))))))

    In (B2: B6) is the ratings , 100, 95, 75, 69, 65, 88.

    The issue is the points returned in D1: D6 looks incorreect as 15 , 5 , 5 , False , 10 , False .

    From my understading it should have returned 20 , 20 , 10 , 5 , 5 , 10 if i correct.
    Attached Files Attached Files

  2. #2
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Logical , functions , on ( IF , AND , OR)

    Hi

    The formula for D6 is referencing B7 an empty cell.

    Chris
    Click my star if I helped Thanks

  3. #3
    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: Logical , functions , on ( IF , AND , OR)

    In D1 and copy down.

    IF(AND(B1<=113,B1>=103),25,IF(AND(B1<=102,B1>=92),20,IF(AND(B1<=91,B1>=81),15,IF(AND(B1<=80,B1>=70),10,IF(AND(B1<=69,B1>=59),5,IF(AND(B1>=55,B1<=65),5,""))))))
    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.

  4. #4
    Registered User
    Join Date
    10-02-2012
    Location
    Johannesburg
    MS-Off Ver
    Excel 2007
    Posts
    10

    Red face Re: Logical , functions , on ( IF , AND , OR)

    Thanks, Brilliant
    I think i should hang out more in this forum.

  5. #5
    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: Logical , functions , on ( IF , AND , OR)

    You are welcome.

    YES. If you like Excel you should hang out more in this forum. You ;ll have to learn a lot!

    Thanks for the reb* and for your kind comments!

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Logical , functions , on ( IF , AND , OR)

    another i think which follows below statement of your's.

    I am trying to group a rating on point system say for instance between 55 - 65 ( 5 points ) , 66 - 76 ( 10 points ) 77 -87 ( 15 points ) 88 - 98 ( 20 points ) ansd so forth.
    =LOOKUP(B1,{0,55,66,77,88,99},{0,5,10,15,20,25})
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  7. #7
    Forum Contributor
    Join Date
    09-11-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003, Excel 2007, Excel 2013
    Posts
    103

    Re: Logical , functions , on ( IF , AND , OR)

    Quote Originally Posted by The Learner View Post
    55 - 65 ( 5 points ) , 66 - 76 ( 10 points ) 77 -87 ( 15 points ) 88 - 98 ( 20 points )
    Base on your request, it is still short of some information.

    For score below 55, will it be 0 points or 5 points? For score above of 98, will it be 20 points or higher?

    Below is the formula I used.

    Formula: copy to clipboard
    =IF($B1-54<=0,0,ROUNDUP(($B1-54)/11,0)*5)


    Attached is your file.
    Attached Files Attached Files
    Click * to reward me...
    Thank you...

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: Logical , functions , on ( IF , AND , OR)

    Thois one also seems to work
    =(FLOOR((B1-55)/11,1)+1)*5*(B1>55)

  9. #9
    Forum Contributor
    Join Date
    09-11-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003, Excel 2007, Excel 2013
    Posts
    103

    Re: Logical , functions , on ( IF , AND , OR)

    Quote Originally Posted by Pepe Le Mokko View Post
    Thois one also seems to work
    =(FLOOR((B1-55)/11,1)+1)*5*(B1>55)
    It return "#NUM!" for number lesser than 55.

  10. #10
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: Logical , functions , on ( IF , AND , OR)

    Quote Originally Posted by crzu View Post
    It return "#NUM!" for number lesser than 55.

    Returns 0 for me

+ 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