How to maintain the cell formatt....

albertc30

Well-known Member
Joined
May 7, 2012
Messages
1,091
Office Version
  1. 2019
Platform
  1. Windows
Morning all.

Hope everybody is holding well and safe.

Once again, here I am with yet another question. The answer is probably easy too but for the life of me, I just can't seem to work it out.

I have the following formula on a cell;

=IF(Y21/R21>=0.1,Y21/R21&" Target Achieved"&Horn(),Y21/R21)

The cell is formatted to show percentage number. Now it works till value if true is triggered. Then the value becomes whole number with 15 decimal places. Is there a way to give this a formatt included on the formula?

Many thanks and be safe everyone.

Thanks.
Albert
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
I am as far as trying to implement the TEXT function...

I think I am in the right track here?
 
Upvote 0
Try

=IF(Y21/R21>=0.1,TEXT(Y21/R21,"#.#%")&" Target Achieved"&Horn(),TEXT(Y21/R21,"#.#%"))
Cool man.

It works.

I am happy I was in the right direction but didn't quit get there before you did.

Many thanks mate. Much appreciated.

Be safe all.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,603
Members
449,089
Latest member
Motoracer88

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