HomeGoogle DocsSpreadsheetSmileys and Icons Based on Values in Google Sheets

Smileys and Icons Based on Values in Google Sheets

Published on

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.

Get Top N Values Using Excel’s FILTER Function

When using the FILTER function in Excel to extract the top N values, it's...

XLOOKUP in Excel: Working with Visible Rows in a Table

In Excel, the XLOOKUP function isn't inherently designed to exclusively work with visible rows;...

SUMPRODUCT Differences: Excel vs. Google Sheets

The core purpose of the SUMPRODUCT function remains consistent across both Excel and Google...

Sum Values by Month and Category in Excel

With the help of EOMONTH, UNIQUE, and SUMIFS functions in Excel, you can efficiently...

More like this

Interactive Random Task Assigner in Google Sheets

You have multiple tasks and multiple people. Here's a fun way to randomly assign...

Google Sheets Bar and Column Chart with Target Coloring

To color each data point in the column or bar chart according to the...

Analyzing Column A Between Non-Adjacent Values in Column B: Google Sheets

This tutorial addresses a common scenario encountered in Google Sheets: how to sum, average,...

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.