Insert smiley face dependent upon a value in another cell

MsTwiitch

New Member
Joined
Nov 19, 2021
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi all. I'm trying to set up conditional formatting on a budget spreadsheet and I'm not sure if what I'm looking to do is possible.

Objectives:
1. Compare values in Column N to values in Column F
2. If values in Column N are within 2% of the values in column F, fill the cell in Column N "green"
3. If values in Column N are between 2% and 4% of the values in column F, fill the cell in Column N "yellow"
4. If the values in Column N are not within 4% of the values in column F, fill the cell in Column N "red"

If Possible:
Add a smiley face to the end of the figure in Column N if the cell is colored "green"
Add a meh face to the end of the figure in Column N if the cell is colored "yellow"
Add a frowney face to the end of the figure in Column N if the cell is colored "red"

If the above isn't possible:
Add a smiley face to the cell in Column O if the cell next to it in Column N is "green"
Add a meh face to the cell in Column O if the cell next to it in Column N is "yellow"
Add a frowney face to the cell in Column O if the cell next to it in Column N is "red"

*Column N already has a formula (cell in Column K divided by cell in Column L*

1637348460461.png
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Welcome to the Forum.

I mocked up an example spreadsheet for you. If you prefer different emoticons, this website lists lost of them.

Note that the emoticons here in this HTML website are all yellow, but in Excel they will be properly coloured.

MrExcel posts19.xlsx
ABCDE
1https://www.alt-codes.net/smiley_alt_codes.php
2
3
4code128578128528128577
5result???
6confirmation128578128528128577
7
8
9hurdles
102%
114%
12
13sample data
14targetobservationaccuracy
156.06.813.3%?
1679.078.01.3%?
1728.027.51.8%?
1812.011.54.2%?
1927.027.83.0%?
2060.060.50.8%?
2175.075.20.3%?
2252.052.51.0%?
2312.013.08.3%?
2434.034.92.6%?
2562.062.40.6%?
2662.062.50.8%?
2737.038.02.7%?
Sheet5
Cell Formulas
RangeFormula
C5:E5C5=UNICHAR(C4)
C6:E6C6=UNICODE(C5)
D15:D27D15=ABS(C15/B15-1)
E15:E27E15=IF(D15>$C$11,UNICHAR(128577),IF(D15<$C$10,UNICHAR(128578),UNICHAR(128528)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E15:E27Expression=D15>$C$11textNO
E15:E27Expression=D15<=$C$10textNO
E15:E27Expression=D15<=$C$11textNO
C15:C27Expression=D15>$C$11textNO
C15:C27Expression=D15<=$C$10textNO
C15:C27Expression=D15<=$C$11textNO
 
Upvote 0
Solution
Welcome to the Forum.

I mocked up an example spreadsheet for you. If you prefer different emoticons, this website lists lost of them.

Note that the emoticons here in this HTML website are all yellow, but in Excel they will be properly coloured.

MrExcel posts19.xlsx
ABCDE
1https://www.alt-codes.net/smiley_alt_codes.php
2
3
4code128578128528128577
5result???
6confirmation128578128528128577
7
8
9hurdles
102%
114%
12
13sample data
14targetobservationaccuracy
156.06.813.3%?
1679.078.01.3%?
1728.027.51.8%?
1812.011.54.2%?
1927.027.83.0%?
2060.060.50.8%?
2175.075.20.3%?
2252.052.51.0%?
2312.013.08.3%?
2434.034.92.6%?
2562.062.40.6%?
2662.062.50.8%?
2737.038.02.7%?
Sheet5
Cell Formulas
RangeFormula
C5:E5C5=UNICHAR(C4)
C6:E6C6=UNICODE(C5)
D15:D27D15=ABS(C15/B15-1)
E15:E27E15=IF(D15>$C$11,UNICHAR(128577),IF(D15<$C$10,UNICHAR(128578),UNICHAR(128528)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E15:E27Expression=D15>$C$11textNO
E15:E27Expression=D15<=$C$10textNO
E15:E27Expression=D15<=$C$11textNO
C15:C27Expression=D15>$C$11textNO
C15:C27Expression=D15<=$C$10textNO
C15:C27Expression=D15<=$C$11textNO
Thanks for the welcome, and the solution! It's much simpler than the formulas I was thinking I was going to end up using.
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top