![]() |
Format Formula
Hi
I have this formula and I want the answer to come back as TOTAL - $98,104. I also want the text to wrap as it takes up too much space, that is why I could not use Custom Format. This is my formula ="TOTAL"&" - "&"$"&SUM(AA4:AA78) This is my answer TOTAL - 98103.9666666667 This is what I would like to happen TOTAL $98,104 I am using Excel 2007 Thanking you Anne |
Format Formula
Format the formula cell to wrap text, then try something like this:
="TOTAL"&CHAR(10)&TEXT(SUM(AA4:AA78),"$#,##0") -- Max Singapore http://savefile.com/projects/236895 Downloads:25,000 Files:300 Subscribers:70 xdemechanik --- "enna49" wrote: I have this formula and I want the answer to come back as TOTAL - $98,104. I also want the text to wrap as it takes up too much space, that is why I could not use Custom Format. This is my formula ="TOTAL"&" - "&"$"&SUM(AA4:AA78) This is my answer TOTAL - 98103.9666666667 This is what I would like to happen TOTAL $98,104 I am using Excel 2007 Thanking you Anne |
Format Formula
Use
="TOTAL"&" - "&"$"& Text(SUM(AA4:AA78),"0.00") adjust 0.00 to the format you want. you may want a space after $ or include that as part of format within TEXT function. "enna49" wrote: Hi I have this formula and I want the answer to come back as TOTAL - $98,104. I also want the text to wrap as it takes up too much space, that is why I could not use Custom Format. This is my formula ="TOTAL"&" - "&"$"&SUM(AA4:AA78) This is my answer TOTAL - 98103.9666666667 This is what I would like to happen TOTAL $98,104 I am using Excel 2007 Thanking you Anne |
Format Formula
You could try a custom format:
Rightclick on the cell. Format Cells|Number Tab|Custom category "Total"(ctrl-j)$#,##0 Don't type the (ctrl-j) Instead hit and hold the control key while hitting the j key. Then Rightclick on the cell. Format Cells|Alignment tab Check the "shrink to fit" box first Then check Wrap text You can autofit the columnwidth--then shrink it a little more (manually). And you'll have to adjust the rowheight manually, too. enna49 wrote: Hi I have this formula and I want the answer to come back as TOTAL - $98,104. I also want the text to wrap as it takes up too much space, that is why I could not use Custom Format. This is my formula ="TOTAL"&" - "&"$"&SUM(AA4:AA78) This is my answer TOTAL - 98103.9666666667 This is what I would like to happen TOTAL $98,104 I am using Excel 2007 Thanking you Anne -- Dave Peterson |
Format Formula
Works perfectly thanks for the quick response. What is the CHAR(10) Thanks
Anne "Max" wrote: Format the formula cell to wrap text, then try something like this: ="TOTAL"&CHAR(10)&TEXT(SUM(AA4:AA78),"$#,##0") -- Max Singapore http://savefile.com/projects/236895 Downloads:25,000 Files:300 Subscribers:70 xdemechanik --- "enna49" wrote: I have this formula and I want the answer to come back as TOTAL - $98,104. I also want the text to wrap as it takes up too much space, that is why I could not use Custom Format. This is my formula ="TOTAL"&" - "&"$"&SUM(AA4:AA78) This is my answer TOTAL - 98103.9666666667 This is what I would like to happen TOTAL $98,104 I am using Excel 2007 Thanking you Anne |
Format Formula
CHAR(10) is the new line char, equiv. to pressing Alt+ENTER when you break
for a new line within a cell. (the wrap text formatting is still required for it to work) -- Max Singapore http://savefile.com/projects/236895 Downloads:25,000 Files:300 Subscribers:70 xdemechanik --- "enna49" wrote: Works perfectly thanks for the quick response. What is the CHAR(10) Anne |
All times are GMT +1. The time now is 05:49 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com