Custom formatting: combining text and percentages!

xiano

New Member
Joined
Nov 21, 2004
Messages
12
Hi

I've got a spreadsheet where I need a one sentence summary in one cell, along the lines of:

"10 signed off (50%); 5 in progress (25%)"

The figure '10' is generated using a COUNTIF statement, and the percentage (50%) using the COUNTIF result in a standard percentage calculation. This is so these values update themselves whenever the 'status' flag (signed off, in progress) is changed on any entry.

Problem is, in order to get this one-line summary to update instantly as well, i need a custom format that would let me reference the number value calculated for the percentage - which tends to have a lot of decimal places, eg: 0.3434343434!

Assuming A1 holds the number value 10, and cell B1 holds the percentage value 0.34343434: for the cell with the one line summary, I have something like:

= A1 & " signed off (" & B1 & ");"

and this returns in the cell

10 signed off (0.3434343434);

How can I get the decimal value to appear as 34% in this cell along with the text?! It's driving me crazy. I know I could do it with a macro button & a bit of VBA, but I was hoping to avoid the need for that.

Many, many thanks

xiano
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
= A1 & " signed off (" & B1 & ");"

and this returns in the cell

10 signed off (0.3434343434);


How about:

=A1&" Signed Off ("&Round(B1,3)*100&"%)"

Change the "3" to suit your decimal requirements.
 
Upvote 0

Forum statistics

Threads
1,214,902
Messages
6,122,161
Members
449,069
Latest member
msilva74

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