#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ted Ted is offline
external usenet poster
 
Posts: 48
Default concatenating

How do I concatenate a fixed number (like "30") and the first two #'s of
another cell that also contains text?

For example, joining 300 and another cell that has 2509Peters to form 3025
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default concatenating

Assume data in A2 down

To return it as text,
in B2, copied down:
="30"&LEFT(A2,2)

To return it as a real number,
in B2, copied down:
=("30"&LEFT(A2,2))+0
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,000 Files:370 Subscribers:66
xdemechanik
---
"TED" wrote:
How do I concatenate a fixed number (like "30") and the first two #'s of
another cell that also contains text?

For example, joining 300 and another cell that has 2509Peters to form 3025

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default concatenating

Hi Ted

=30&Left(A1,2)
will give 3025 as a text value

=--(30&Left(A1,2))
will give 3025 as a numeric value


--
Regards
Roger Govier

"TED" wrote in message
...
How do I concatenate a fixed number (like "30") and the first two #'s of
another cell that also contains text?

For example, joining 300 and another cell that has 2509Peters to form 3025


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default concatenating

If the number 30 is really "fixed" as you indicated (not sure about that
because of your use of 300 in your example), then make it 100 times larger
(3000 instead of 30) and add it to the left 2 numbers...

=3000+LEFT(A1,2)

This returns a real number, not text.

--
Rick (MVP - Excel)


"TED" wrote in message
...
How do I concatenate a fixed number (like "30") and the first two #'s of
another cell that also contains text?

For example, joining 300 and another cell that has 2509Peters to form 3025


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
concatenating Yosh Excel Discussion (Misc queries) 7 February 7th 07 09:03 PM
Concatenating % confused Excel Discussion (Misc queries) 2 September 21st 06 03:49 AM
Concatenating Problem Jack Excel Discussion (Misc queries) 1 June 9th 06 08:11 PM
Concatenating Metalteck New Users to Excel 10 May 4th 05 01:01 AM
concatenating numbers Mig Excel Worksheet Functions 3 April 7th 05 01:30 AM


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