Formatting with a Formula

  • Thread starter Thread starter Mike Hogan
  • Start date Start date
M

Mike Hogan

Is there any way to control the format of a cell using a formula?
Here's the scenario:
I have a column of calculated values that can be either a percentage
or a dollar amount depending on the selection of Control Buttons.
I would like the format of the cells to be either Currency or Percentage,
controlled by the same buttons.

I have been unable to find any way to do this. Can it be done? I'm not
too proficient with macros so if that's the only way I'd appreciate an
example to get me started. Thanks for any help available.

Mike Hogan
 
Assuming you link your button (I'd recommend a Forms toolbar checkbox)
to a cell (say J1):

=IF(J1=TRUE, TEXT(A1,"$0.00"),TEXT(A1,"0%"))
 

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

Back
Top