Happy face icon

Tahas

Board Regular
Joined
Sep 10, 2008
Messages
166
Hi Friends,

I’m trying to use windings for smileys but only getting happy face. Please see table below:

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Skills (E12)[/TD]
[TD]Knowledge (F12)[/TD]
[TD]Attitude (G12)[/TD]
[TD]Behaviour (H12)[/TD]
[TD]Circumstance (I12)[/TD]
[TD]Staff Morale (J12[/TD]
[/TR]
[TR]
[TD="align: center"]Y[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]NA[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]NA[/TD]
[TD="align: center"]Formula Result[/TD]
[/TR]
</tbody>[/TABLE]







In cell J12, I want to show a happy face when cells E12 though I12 either show “Y” or “NA” and if any cell show “N” then show sad face. My formula only works well for the happy face but not giving any sad face. I used following formula but only getting a happy face.

=IF(OR(E12="Y",E12="NA"),IF(OR(F12="Y",F12="NA"),IF(OR(G12="Y",G12="NA"),IF(OR(H12="Y",H12="NA"),IF(OR(I12="Y",I12="NA"),"J","L")))))

Any help will be greatly appreciated!

Thanks,
Taha
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
[Table="width:, class:grid"][tr][td="bgcolor:#C0C0C0"][/td][td="bgcolor:#C0C0C0"]
A​
[/td][td="bgcolor:#C0C0C0"]
B​
[/td][td="bgcolor:#C0C0C0"]
C​
[/td][td="bgcolor:#C0C0C0"]
D​
[/td][td="bgcolor:#C0C0C0"]
E​
[/td][td="bgcolor:#C0C0C0"]
F​
[/td][td="bgcolor:#C0C0C0"]
G​
[/td][/tr][tr][td="bgcolor:#C0C0C0"]
1​
[/td][td="bgcolor:#F3F3F3"]
Skills
[/td][td="bgcolor:#F3F3F3"]
Knowledge
[/td][td="bgcolor:#F3F3F3"]
Attitude
[/td][td="bgcolor:#F3F3F3"]
Behaviour
[/td][td="bgcolor:#F3F3F3"]
Circumstance
[/td][td="bgcolor:#F3F3F3"]
Staff Morale
[/td][td="bgcolor:#F3F3F3"]
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
2​
[/td][td]
Y​
[/td][td]
Y​
[/td][td]
NA​
[/td][td]
Y​
[/td][td]
NA​
[/td][td="bgcolor:#E5E5E5"]
J​
[/td][td]F2: =IF(COUNTA(A2:E2) < 5, "", IF(SUMPRODUCT(COUNTIF(A2:E2, {"Y","NA"})) < 5, "L", "J"))[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
3​
[/td][td]
Y​
[/td][td]
Y​
[/td][td]
NA​
[/td][td]
N​
[/td][td]
NA​
[/td][td="bgcolor:#E5E5E5"]
L​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
4​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td="bgcolor:#E5E5E5"]
[/td][td][/td][/tr]
[/table]
 
Upvote 0
try
Code:
=IF(ISNUMBER(MATCH("n",E12:I12,0)),"L","J")
 
Upvote 0
Try this:
Code:
=IF(COUNTIF(E12:I12,"N")>0,"L","J")

The formula looks at the range E12:I12 and counts any cells that have "N" in them. If there are any such cells (>0), then put an "L" in the cell; otherwise, put a "J."

You have to set the font for this cell to Wingdings. The "L" is the sad face, and the J is the happy face.

Note that setting the font in a cell sets it not just for the displayed value but also for the underlying formula. So once you set the font to Wingding, if you try to edit the formula, it will just be a bunch of wingdings. To make sense of the formula, should you wish to change it, you have to change the font of the cell back to a readable font.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,305
Members
452,633
Latest member
DougMo

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