Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
mmednick
 
Posts: n/a
Default Inserting two cell values into a new cell + text


I am likely making this much more difficult than it needs to be...

I need to take the numeric values from two cells and insert them into a
new cell in this format: "898 - 1398". Where 898 and 1398 are numeric
values generated by a formula and are subject to change.

What I have is: =VALUE(A1)&" - "&VALUE(A2)
but the result gives me one or more decimal places in each number
result which I know is a result of the string concatination process.

My question is: How can I rewrite this cell's formula to zero out the
decimal entries form the source cells which is hidden from view due to
its superfluous nature, but makes its way into my string result?

Thanks for the help,
I know I am the N00bish


--
mmednick
------------------------------------------------------------------------
mmednick's Profile: http://www.excelforum.com/member.php...o&userid=29404
View this thread: http://www.excelforum.com/showthread...hreadid=491155

  #2   Report Post  
Posted to microsoft.public.excel.misc
Niek Otten
 
Posts: n/a
Default Inserting two cell values into a new cell + text

=TEXT(A1,"0")&" - "&TEXT(A2,"0")

--
Kind regards,

Niek Otten

"mmednick" wrote in
message ...

I am likely making this much more difficult than it needs to be...

I need to take the numeric values from two cells and insert them into a
new cell in this format: "898 - 1398". Where 898 and 1398 are numeric
values generated by a formula and are subject to change.

What I have is: =VALUE(A1)&" - "&VALUE(A2)
but the result gives me one or more decimal places in each number
result which I know is a result of the string concatination process.

My question is: How can I rewrite this cell's formula to zero out the
decimal entries form the source cells which is hidden from view due to
its superfluous nature, but makes its way into my string result?

Thanks for the help,
I know I am the N00bish


--
mmednick
------------------------------------------------------------------------
mmednick's Profile:
http://www.excelforum.com/member.php...o&userid=29404
View this thread: http://www.excelforum.com/showthread...hreadid=491155



  #3   Report Post  
Posted to microsoft.public.excel.misc
Arvi Laanemets
 
Posts: n/a
Default Inserting two cell values into a new cell + text

Hi

=A1 & " - " & A2

Arvi Laanemets


"mmednick" wrote in
message ...

I am likely making this much more difficult than it needs to be...

I need to take the numeric values from two cells and insert them into a
new cell in this format: "898 - 1398". Where 898 and 1398 are numeric
values generated by a formula and are subject to change.

What I have is: =VALUE(A1)&" - "&VALUE(A2)
but the result gives me one or more decimal places in each number
result which I know is a result of the string concatination process.

My question is: How can I rewrite this cell's formula to zero out the
decimal entries form the source cells which is hidden from view due to
its superfluous nature, but makes its way into my string result?

Thanks for the help,
I know I am the N00bish


--
mmednick
------------------------------------------------------------------------
mmednick's Profile:

http://www.excelforum.com/member.php...o&userid=29404
View this thread: http://www.excelforum.com/showthread...hreadid=491155



  #4   Report Post  
Posted to microsoft.public.excel.misc
David Billigmeier
 
Posts: n/a
Default Inserting two cell values into a new cell + text

=ROUND(A1,0)&" - "&ROUND(A2,0)

--
Regards,
Dave


"mmednick" wrote:


I am likely making this much more difficult than it needs to be...

I need to take the numeric values from two cells and insert them into a
new cell in this format: "898 - 1398". Where 898 and 1398 are numeric
values generated by a formula and are subject to change.

What I have is: =VALUE(A1)&" - "&VALUE(A2)
but the result gives me one or more decimal places in each number
result which I know is a result of the string concatination process.

My question is: How can I rewrite this cell's formula to zero out the
decimal entries form the source cells which is hidden from view due to
its superfluous nature, but makes its way into my string result?

Thanks for the help,
I know I am the N00bish


--
mmednick
------------------------------------------------------------------------
mmednick's Profile: http://www.excelforum.com/member.php...o&userid=29404
View this thread: http://www.excelforum.com/showthread...hreadid=491155


  #5   Report Post  
Posted to microsoft.public.excel.misc
mmednick
 
Posts: n/a
Default Inserting two cell values into a new cell + text


The solutions with the TEXT and ROUND functions and a second variable
set to 0 both seem to work, but they cut out the comma I need in
numbers grater than one thousand, any thought on how to keep comma
format?

The N00bish


--
mmednick
------------------------------------------------------------------------
mmednick's Profile: http://www.excelforum.com/member.php...o&userid=29404
View this thread: http://www.excelforum.com/showthread...hreadid=491155



  #6   Report Post  
Posted to microsoft.public.excel.misc
mmednick
 
Posts: n/a
Default Inserting two cell values into a new cell + text


bump

the n00bish


--
mmednick
------------------------------------------------------------------------
mmednick's Profile: http://www.excelforum.com/member.php...o&userid=29404
View this thread: http://www.excelforum.com/showthread...hreadid=491155

  #7   Report Post  
Posted to microsoft.public.excel.misc
David Billigmeier
 
Posts: n/a
Default Inserting two cell values into a new cell + text

=TEXT(A1,"#,#")&" - "&TEXT(A2,"#,#")

--
Regards,
Dave


"mmednick" wrote:


bump

the n00bish


--
mmednick
------------------------------------------------------------------------
mmednick's Profile: http://www.excelforum.com/member.php...o&userid=29404
View this thread: http://www.excelforum.com/showthread...hreadid=491155


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
How do I set text to top of cell next to wrap text in Excel? Carpenter Gary New Users to Excel 1 October 25th 05 06:26 PM
Text disappears when word wrap is used Mark_GS1CA Excel Discussion (Misc queries) 12 October 17th 05 12:44 PM
Cell linked to a range of cell values in different sheet szeng Excel Discussion (Misc queries) 1 August 9th 05 02:41 AM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Help inserting a Cell Value in a Text Cell Dave Excel Worksheet Functions 5 March 5th 05 09:06 PM


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

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"