Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Best way to insert value in a setenecne

Excel 2003.

If in one cell I have the following statement: "Last week I ate [ x ]
apples"

And I wanted to insert a number from another cell into [ x ]. How would I
do that?

I tried have the first part of the setence one one cell. The " [ x ] " in
the second cell and the rest of the sentence in the third. But because of
other things going on in the sheet I cannot get it to line up correctly. What
are my options?
  #2   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Best way to insert value in a setenecne

try
="Last Week I ate "&A!&" apples."
if the number is in Cell A1

"dj479794" wrote:

Excel 2003.

If in one cell I have the following statement: "Last week I ate [ x ]
apples"

And I wanted to insert a number from another cell into [ x ]. How would I
do that?

I tried have the first part of the setence one one cell. The " [ x ] " in
the second cell and the rest of the sentence in the third. But because of
other things going on in the sheet I cannot get it to line up correctly. What
are my options?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Best way to insert value in a setenecne

Try

="last week I ate " & A1 & " apples"

Put howe many apples you ate in A1

Mike

"dj479794" wrote:

Excel 2003.

If in one cell I have the following statement: "Last week I ate [ x ]
apples"

And I wanted to insert a number from another cell into [ x ]. How would I
do that?

I tried have the first part of the setence one one cell. The " [ x ] " in
the second cell and the rest of the sentence in the third. But because of
other things going on in the sheet I cannot get it to line up correctly. What
are my options?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Best way to insert value in a setenecne

="Last week I ate " & a1 & " apples."

or if you need formatting:

="Last week I ate " & TEXT(A1,"#,##0") & " apples." & CHAR(10) &
"I paid " & TEXT(B1,"$#,##0.00") & " for them on " &
TEXT(C1,"mm/dd/yyyy") & "."

char(10) wraps the text
But you'll have to use format|Cells|alignment tab|Check wrap text

dj479794 wrote:

Excel 2003.

If in one cell I have the following statement: "Last week I ate [ x ]
apples"

And I wanted to insert a number from another cell into [ x ]. How would I
do that?

I tried have the first part of the setence one one cell. The " [ x ] " in
the second cell and the rest of the sentence in the third. But because of
other things going on in the sheet I cannot get it to line up correctly. What
are my options?


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Best way to insert value in a setenecne

Another way that doesn't require a helper cell, is to just format the cell as
Custom,
"Last week I ate "#" apples" and just type the number in the same
cell...........

Vaya con Dios,
Chuck, CABGx3


"dj479794" wrote:

Excel 2003.

If in one cell I have the following statement: "Last week I ate [ x ]
apples"

And I wanted to insert a number from another cell into [ x ]. How would I
do that?

I tried have the first part of the setence one one cell. The " [ x ] " in
the second cell and the rest of the sentence in the third. But because of
other things going on in the sheet I cannot get it to line up correctly. What
are my options?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default Best way to insert value in a setenecne

Excel 2003.

If in one cell I have the following statement: "Last week I ate [ x ]
apples"

And I wanted to insert a number from another cell into [ x ]. How would I
do that?

I tried have the first part of the setence one one cell. The " [ x ] " in
the second cell and the rest of the sentence in the third. But because of
other things going on in the sheet I cannot get it to line up correctly.
What
are my options?


Assuming the "apple" sentence was illustrative and that you wanted a
generalize solution, try this...

=SUBSTITUTE(A1,"[ x ]",A2)

where your sentence containing "[ x ]" is located in A1 and the other cell
containing your number is assumed to be A2.

Rick

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
unable to insert columns in excel, insert- columns (disabled) iam_leearner Excel Discussion (Misc queries) 1 August 13th 06 02:26 PM
Can I auto insert a worksheet when I insert a value in a cell. iainc Excel Worksheet Functions 0 April 27th 06 08:37 AM
Insert Next? Or insert a variable number of records...how? Tom MacKay Excel Discussion (Misc queries) 0 April 20th 06 10:44 PM
How do I insert a reference to lookup and insert a name Jan K New Users to Excel 3 July 20th 05 10:39 AM
How do I insert a comment when the Insert:Comment menu is greyed? none Excel Discussion (Misc queries) 0 May 19th 05 12:36 AM


All times are GMT +1. The time now is 10:49 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"