Insert symbol - if statement

NX555V

Board Regular
Joined
Feb 27, 2007
Messages
159
Hello,

Am I able to insert a symbol into a IF statement for TRUE? In other words...

=IF(A2=B2,"SYMBOL CODE","No")

I want to insert a check mark if True

Thanks
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
=IF(A2=B2,CHAR(251),"No")

and change the font to get your desired symbol.
 
Upvote 0
One way is to use a different font - like wingdings - which may have the symbol you're looking for.

You can use your computer's character map to browse different fonts, then select the character you want and paste it into your formula, between " marks. Format the cell so that it is in whichever font you've chosen.

The problem with this is that it may be difficult to combine symbols and text in the same cell, if your chosen font doesn't have both your symbol and text characters.

One way round this is to use two formulas instead of one, the first one showing the symbol only
Code:
=if(a2=b2,"symbol code","")
with font set to your chosen symbol font,
and the second one showing the text string only
Code:
=if(a2=b2,"","No")
with font set to your chosen text font.
 
Upvote 0

Forum statistics

Threads
1,218,254
Messages
6,141,403
Members
450,356
Latest member
q11

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