Retaining Formatting in 'joined' cells

D

Dowitch

In order to build a chart from my pivot tables that shows both a dollar
value, and a number of entries, I've downloaded XY Chart Labels so that I can
use an unrelated cell as the label source.

In that new cell, I have used the following command to generate my label:
="$"&ROUND(VALUE(D28),0) & "/" & VALUE(D27)

where D28 is the $ value, and D27 is the number of entries.

My problem is that the $ value doesn't include the comma in values exceeding
1000.

The source cells show the formatting as I want it to appear on the chart.
How can I get the chart label to look the same?
 
A

Andy Pope

Hi,

You need to format the result of the ROUND function.

="$"&TEXT(ROUND(VALUE(D28),0),"#,##0")& "/" & VALUE(D27)

Cheers
Andy
 
D

Dowitch

Awesome. Worked brilliantly.

I knew it was probably something like that, but I'm really bad at using
formatting in formulae.

Thank you so much!
 

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