Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default text and formula in the same cell - how do I format this cell??

I've figured out how to put a formula and text in the same cell, thanks
to this group. However, I can't figure out how to format the value of
the cell. For example, I want to create one cell with the following:
Cost $XXX.

The following is what I put in the cell:
="Cost $" & B21*8.

This is the result I get:
Cost $35.32365

I want the value to round to 2 decimal points, but I can't figure out
how to do that. The cell B21 is already in currency form, but the new
value does not show up with a dollar sign. So, I guess I have 2
questions:

1. How do I get this dollar sign to show up automatically (being that
the value is based upon another dollar value?)

2. How do I round the value to 2 decimal places?

Any help is greatly appreciated.

Thanks!!!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default text and formula in the same cell - how do I format this cell??

Format Cells... Number Custom
and then enter "Cost "$#,##0.00
with =8*B21 in the cell

You don't need any concatenation within the cell...just formatting
--
Gary's Student


" wrote:

I've figured out how to put a formula and text in the same cell, thanks
to this group. However, I can't figure out how to format the value of
the cell. For example, I want to create one cell with the following:
Cost $XXX.

The following is what I put in the cell:
="Cost $" & B21*8.

This is the result I get:
Cost $35.32365

I want the value to round to 2 decimal points, but I can't figure out
how to do that. The cell B21 is already in currency form, but the new
value does not show up with a dollar sign. So, I guess I have 2
questions:

1. How do I get this dollar sign to show up automatically (being that
the value is based upon another dollar value?)

2. How do I round the value to 2 decimal places?

Any help is greatly appreciated.

Thanks!!!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default text and formula in the same cell - how do I format this cell??

Try this::

="Cost " & TEXT(B21*8,"$0.00")

Biff

wrote in message
ups.com...
I've figured out how to put a formula and text in the same cell, thanks
to this group. However, I can't figure out how to format the value of
the cell. For example, I want to create one cell with the following:
Cost $XXX.

The following is what I put in the cell:
="Cost $" & B21*8.

This is the result I get:
Cost $35.32365

I want the value to round to 2 decimal points, but I can't figure out
how to do that. The cell B21 is already in currency form, but the new
value does not show up with a dollar sign. So, I guess I have 2
questions:

1. How do I get this dollar sign to show up automatically (being that
the value is based upon another dollar value?)

2. How do I round the value to 2 decimal places?

Any help is greatly appreciated.

Thanks!!!



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,089
Default text and formula in the same cell - how do I format this cell??

="Cost $" & Round(B21*8,2)

Regards

Trevor

wrote in message
ups.com...
I've figured out how to put a formula and text in the same cell, thanks
to this group. However, I can't figure out how to format the value of
the cell. For example, I want to create one cell with the following:
Cost $XXX.

The following is what I put in the cell:
="Cost $" & B21*8.

This is the result I get:
Cost $35.32365

I want the value to round to 2 decimal points, but I can't figure out
how to do that. The cell B21 is already in currency form, but the new
value does not show up with a dollar sign. So, I guess I have 2
questions:

1. How do I get this dollar sign to show up automatically (being that
the value is based upon another dollar value?)

2. How do I round the value to 2 decimal places?

Any help is greatly appreciated.

Thanks!!!



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 791
Default text and formula in the same cell - how do I format this cell??

Good afternoon. First, add the round function to your formula:
="Cost $" & Round(B21*8,2). That will get you your 2 decimal places.
Second, it doesn't matter that B21 is formatted as currency. The cell with
your formula is text. I'm afraid you'll have to continue adding the $ within
the quotes. HTH--
Sincerely, Michael Colvin


" wrote:

I've figured out how to put a formula and text in the same cell, thanks
to this group. However, I can't figure out how to format the value of
the cell. For example, I want to create one cell with the following:
Cost $XXX.

The following is what I put in the cell:
="Cost $" & B21*8.

This is the result I get:
Cost $35.32365

I want the value to round to 2 decimal points, but I can't figure out
how to do that. The cell B21 is already in currency form, but the new
value does not show up with a dollar sign. So, I guess I have 2
questions:

1. How do I get this dollar sign to show up automatically (being that
the value is based upon another dollar value?)

2. How do I round the value to 2 decimal places?

Any help is greatly appreciated.

Thanks!!!


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
Format Issue DS Excel Worksheet Functions 4 October 13th 06 01:20 AM
How do I use cond format formula to set cell text and color? sbwilliams Excel Discussion (Misc queries) 4 January 8th 06 10:20 AM
Text in formula bar is not displaying in cell Mike Excel Discussion (Misc queries) 0 August 29th 05 09:47 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 05:51 PM.

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

About Us

"It's about Microsoft Excel"