# Custom formatting: combining text and percentages!

#### xiano

##### New Member
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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

#### Brian from Maui

##### MrExcel MVP
Try,

TEXT(B1,"00%")

As in

A1&" Signed off "&TEXT(B1,"00%")

#### dwelleronthethreshold

##### Board Regular
= 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.

Replies
2
Views
240
Replies
2
Views
281
Replies
4
Views
151
Replies
3
Views
355
Replies
22
Views
895

Threads
1,182,024
Messages
5,933,327
Members
436,888
Latest member
Kantonides

### 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

### 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