• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Microsoft Excel Tips and Tricks - Computergaga

  • Home
  • Excel Online Courses
  • Excel Functions List
  • Free Downloads
  • Blog
  • Tutorials
  • About
Home / Formulas / Insert a Happy Face using the IF Function

Insert a Happy Face using the IF Function

I was asked today if it was possible to write an IF function that could insert a happy face if certain criteria was met. This would be used to show good performance. An unhappy face would be inserted for poor performance.

To insert a happy face in Excel we need to enter a capital J and format the cell in a Wingdings font. For an unhappy face, it’s a capital L formatted in the Wingdings font.

The following basic Excel skills demonstrates using this technique to display a happy or unhappy face dependent upon someone’s exam grade. The exam grade is in cell B3 and the smiley face will be inserted into cell C3.

  1. Click in cell C3
  2. Write the IF function below and copy it to all the cells where you want the happy face to be displayed. This will display a happy face if 75% or more has been scored.
=IF(B3>=75%, "J", "L")
IF function to return the letter that represents a happy face
  1. Select the cells and click the Font list arrow on the Home tab of the Ribbon
  2. Select Wingdings from the list
Format as Wingdings font
  1. Happy and unhappy faces are shown dependent on the exam grade
Happy and unhappy faces returned by the IF function

Watch the Video

Related Posts:

  • Return non-adjacent columns FILTER function thumbnail
    Non-Adjacent Columns with FILTER Function
  • IMAGE function in Excel
    Excel IMAGE Function - Insert Images from a Cell Value
  • SWITCH function feature
    Excel SWITCH Function - Nested IF Function Alternative
  • N Functions in Excel thumbnail
    N Function in Excel

Reader Interactions

Comments

  1. P.G.Mathew Tharakan says

    20 November 2012 at 6:55 am

    I like it, Suppose you give an animation for the wingdings, I think so beautiful, Thanks once again for your good work

    Reply
  2. bharath bhushan says

    13 August 2013 at 7:01 pm

    awesome no words to appreciate well done, pls upload more this type of unique functions it will be helpfull to all
    thanks
    bharath bhushan

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • Excel SWITCH Function – Nested IF Function Alternative
  • Sum Formulas Only in Excel
  • How to Calculate Age in Excel
  • Custom Sort in Excel
  • Case Sensitive Lookup with XLOOKUP in Excel
Advanced Excel Success book

Footer

Contact

[email protected]

LinkedIn Twitter YouTube

Useful Links

  • Home
  • Excel Online Courses
  • Tutorials
  • Sitemap
  • Privacy Policy
  • Jobs by Jooble

Course Topics

  • Blog
  • Charts
  • Courses
  • Dashboards
  • Downloads
  • Excel Tips
  • Formulas
  • Mail Merge
  • Office
  • PivotTables
  • Power BI
  • Power Pivot
  • Power Query
  • VBA

Join Our Mailing List

© Copyright 2009 Computergaga · All Rights Reserved ·