Smileys and Icons Based on Values in Google Sheets

Smileys and icons can bring life to your Spreadsheet if you use them cleverly. You can insert smileys and icons based on values in Google Sheets.

There are two methods to insert emoticons within cells (not above cells or floating) in Sheets.

  1. Using Image function (requires image URLs).
  2. Using the menu Insert > Image > Image in cell feature (directly search on Google from within Docs Sheets and insert or directly upload from your desktop).

I am following the second method that uses the built-in menu command.

If you use the Image function, it might affect the performance of your Sheets. It requires Image URLs, and I don’t recommend you to use image URLs from third-party websites.

If you have icon sets or smileys, upload them into any free image hosting website and get the URLs from there to use in the Image function.

As mentioned above, I am following the second method here, which doesn’t involve the Image function and the URLs.

I am using Google Sheets’ relatively new Insert Image in cell feature. Here are the steps.

Steps to Insert Smileys and Icons Based on Values

Download an icon pack (required icons/smileys) on your desktop.

There are plenty of sites offering free as well as paid icon packs. If you can’t find one, don’t worry! Just read on. I will guide you to get one.

Step # 1: Upload Image/Smileys into Cells in Google Sheets

I have one Google Sheets file, which contains two tabs – Sheet1 and Sheet2. Sheet1 contains my demo data, and Sheet2 is blank.

Click on cell B1 in Sheet2. Then go to Insert > Image > Image in Cell.

Click on the tab “Search” and search for smileys. If you have Smileys or icon packs already downloaded on your desktop, use the “Upload” button instead.

Free smileys and icons search within Google Sheets

Click on the Smiley that you want to insert. In Cell B2, B3… follow the above steps. Name the smiley in cells A1, A2, A3… as shown below.

Create a table contain emoticons to use in Vlookup

Our topic is how to get Smileys and Icons based on values in Google Sheets. So far, we have only inserted a few of the most common smileys.

If you want a home icon, use the search term “home icon” as the search key on the image search field above.

Step # 2: Prepare the Example Sheet in Which You Want to Insert the Emoticons

The above images (icons) are in Sheet2.

In Sheet1, we can prepare the sample data to test. I have very basic data as below in Sheet1.

ABC
1EmployeeSales VolumeStatus
2Employee 14500
3Employee 211000
4Employee 37500

Step # 3: Vlookup Smileys or Icons Based on Values

Conditions to make the smileys appear:

If sale volume is <5000, “Unhappy”, sale volume is >=5000 and <7500, “Happy” and >=7500, “Love”.

The below IF formula (cell C2) adopts the above conditions to return the texts unhappy, happy, or love based on sales volume.

=ArrayFormula(if(B2:B4<5000,"Unhappy",if(B2:B4<7500,"Happy","Love")))

Don’t forget to use the same keyword presented in Sheet2 column A in this IF formula.

Search keys to lookup Smileys and Icons based on values

The above formula only includes the finite/closed range B2:B4. You can use the infinite/open range B2:B to include future values as below.

=ArrayFormula(if(B2:B<>"",(if(B2:B<5000,"Unhappy",if(B2:B<7500,"Happy","Love"))),))

Use this formula as search keys in a Vlookup as below.

Generic Formula:

Vlookup(search_keys[If formula above],range to lookup [Sheet2 column A and B],output[Sheet2 Column 2])

Rewrite the IF formula in Sheet1 cell C2 as below (based on the generic formula above).

=ArrayFormula(IFERROR(Vlookup(if(B2:B<>"",(if(B2:B<5000,"Unhappy",if(B2:B<7500,"Happy","Love"))),),Sheet2!A1:B,2,0)))
Formula to get smileys and icons based on values

This way you can get Smileys and Icons based on values in Google Sheets. Enjoy!

Resources:

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

How to Create a Searchable Table in Excel Using the FILTER Function

Finding specific records, or rows containing the required information, is straightforward in Excel using...

Time Sequences in Excel by Minute, Hour, or Second Increments

Creating time sequences, whether by hour, minute, or second increments in Excel, can be...

Finding Most Frequent Text in Excel with Dynamic Array Formulas

Looking to identify the most frequently occurring text in Excel? You can do this...

Hierarchical Numbering Sequences in Excel

Creating hierarchical numbering sequences in an Excel spreadsheet can significantly improve the way you...

More like this

XMATCH Row by Row: Finding Values Across a Range in Google Sheets

Using the BYROW function with XMATCH in Google Sheets allows us to match values...

Limit Formula Expansion to a Specific Row in Google Sheets

In this tutorial, I’ll explain how to limit the expansion of an array formula...

3-D Referencing Structured Data Tables in Google Sheets

When you have several tables within a single sheet—not across multiple sheets in a...

7 COMMENTS

  1. Hi, I have tried the formula for the emoji icons to reflect.

    However, only the first row reflects the emoji icons and not the following row. Not too sure where the error occurs.

  2. Is there a way to achieve the same result by adding a condition to match the text in the cell?

    I’m trying to add an image based on text in the previous cell.

  3. Hi! so I’ve done this manual conditional formatting to my chart and it looks great!

    My only problem is when I try to copy-paste it to a google slide. It does not paste it, even if I don’t link it to the original source. Have you found a solution for this?

    Thanks!!

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.