Formatting a Cell Reference with a Formula

C

CC

I have tried to do this and cannot, but my formula is a concatenation of up
to 7 fields, including both numbers and text. Although I've formatted the
cells that the concatenated formula is pulling, the dollar amounts are not
being formatted within the concatenated formula result. Is there a way to
format dollars within a concatenation formula?

My formula reads as:
=IF(ISBLANK($H9),"",CONCATENATE($H9," - ","(",I9,")"," ",$J9," ","$",$K9,"
",$L9," "," ","(",$M9,")"))

I would like the dollar field K9 to show as dollars with dollar sign and
appriopriate commas.
 
S

Sandy Mann

Replace you reference $K9 with:

TEXT($K9,"$#,##0.00")

and remove the "$" before it.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
Replace @mailinator.com with @tiscali.co.uk
 
D

David Biddulph

In your formula, replace the reference $K9 by TEXT($K9,"$0.00") or whatever
variation you like on the format. [Look at the format of your source cells
if you want to get a clue what format string to use.]
 
C

CC

THANK YOU SOOOO MUCH!

Sandy Mann said:
Replace you reference $K9 with:

TEXT($K9,"$#,##0.00")

and remove the "$" before it.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
Replace @mailinator.com with @tiscali.co.uk
 
S

Sandy Mann

No, I'm afraid that formulas cannot format cells.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
Replace @mailinator.com with @tiscali.co.uk
 
D

David Biddulph

To expand on Sandy's answer, a formula in conditional formatting can format
a cell, but not part of a cell.
A cell which contains text can have a format applied to part of the text,
but that can't be done if the text contains a formula, rather than just
text.
 

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