+ Reply to Thread
Results 1 to 11 of 11

Rating system to generate smileys

  1. #1
    Registered User
    Join Date
    10-08-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    46

    Rating system to generate smileys

    Hi,

    I want excel to generate a smiley depending on weather the result was on budget, under or above. Basically like this:

    :D = more than 5% over budget
    :) = 0-5% over budget
    :( = under budget

    I have a chart of the budget in the sheet as well as a sheet to input the actual outcome (sales) and then I want this evaluation chart with the smileys.

    I'm stuck in some infinite loop of 'IF' and 'AND's and basiclly don't know what the heck I'm doing anymore. I have no idea how to include so many IF's in one formula/cell.

    Please help! This is driving me crazy..

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Rating system to generate smileys

    Assuming a budget of 10, maybe:
    PHP Code: 
    =LOOKUP(A1,{0,10,10.05},{":(",":)",":D"}) 

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Rating system to generate smileys

    Well I guess I went a different route than Kyle with budget in A1 and expenditures in B1

    =IF(B1>=A1*1.05,"J",IF(B1<A1,"L",IF(OR(A1=B1,B1<A1*1.05),"K")))

    Note: Windings font
    HTH
    Regards, Jeff

  4. #4
    Registered User
    Join Date
    10-08-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Rating system to generate smileys

    That didn't do anything, bah. Let's just assume the budget is X and Y is the actual. For example when generating the smiley for "", then I need it to say something like =IF(AND(Y>=X;Y<(1,051*X));"";""). But how do I then add in the other IF's for the other smileys?

  5. #5
    Registered User
    Join Date
    10-08-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Rating system to generate smileys

    Jeff, it works! Halleluja. I love you!

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Rating system to generate smileys

    You are very welcome and thanks for the feedback

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  7. #7
    Registered User
    Join Date
    10-08-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Rating system to generate smileys

    New day, new problems. So I'm at it again. Now the problem I have is that when I have no data input for the smiley to evaluate, it still provides me with a ":D". I want it to leave it blank. Where and how can I add that into my formula?

    Thank you,
    Emma

  8. #8
    Registered User
    Join Date
    06-19-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Rating system to generate smileys

    Try this =IF(A1="";"";IF(B1>=A1*1,05;":D";IF(B1<A1;"";IF(OR(A1=B1;B1<A1*1,05);""))))

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

    Re: Rating system to generate smileys

    Try this..

    =IF(OR(A1="",B1=""),"",IF(B1>=A1*1.05,"J",IF(B1<A1,"L",IF(OR(A1=B1,B1<A1*1.05),"K"))))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  10. #10
    Registered User
    Join Date
    10-08-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Rating system to generate smileys

    gah, Thank you!! I had written =IF(A1;"";""; Why doesn't that work?

  11. #11
    Registered User
    Join Date
    10-08-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Rating system to generate smileys

    Never mind, I got it! Too early too process correctly. Thank you so much again!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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