revealing format of a cell

J

James Irwin

Hi - Is there a formula that allows me to reveal a cell's format in Excel
2003? I want to be able to distinguish between cells in bold font (e.g.
return "true") vs cells not in bold font (e.g. return "false")? Any help
appreciated! Thanks.
 
B

Bernie Deitrick

James,

You would need to use a custom, user-defined function, coded in VBA.

For example

Function IsBold(r As Range) As Boolean
IsBold = R.Font.Bold
End Function

used like

=IsBold(A1)

but it won't recalc automatically - use Ctrl-Shift-F9 - and it won't reveal bolding applied by
Conditional formatting. That is a whole other kettle of fish.


HTH,
Bernie
MS Excel MVP
 
R

Ron Rosenfeld

Hi - Is there a formula that allows me to reveal a cell's format in Excel
2003? I want to be able to distinguish between cells in bold font (e.g.
return "true") vs cells not in bold font (e.g. return "false")? Any help
appreciated! Thanks.

You could download and install Longre's free morefunc.xll add-in from
http://xcell05.free.fr/ and then use the XLM.GET.CELL function.
--ron
 
J

James Irwin

Thank you very much for your help, Bernie.

Bernie Deitrick said:
James,

You would need to use a custom, user-defined function, coded in VBA.

For example

Function IsBold(r As Range) As Boolean
IsBold = R.Font.Bold
End Function

used like

=IsBold(A1)

but it won't recalc automatically - use Ctrl-Shift-F9 - and it won't reveal bolding applied by
Conditional formatting. That is a whole other kettle of fish.


HTH,
Bernie
MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top