#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default 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



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 793
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default 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

  #5   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default 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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
formula to format Rick Excel Discussion (Misc queries) 5 January 5th 09 05:17 PM
sum format in formula bar LovestheBOSOX Excel Discussion (Misc queries) 3 June 5th 07 02:07 AM
Formula or Format Error?? DavidB New Users to Excel 3 October 17th 06 08:10 AM
Format\Formula Help scott Excel Worksheet Functions 7 April 14th 06 09:49 PM
format cell formula Juco New Users to Excel 4 February 13th 05 12:33 PM


All times are GMT +1. The time now is 02:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"