concatenating

T

TED

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
 
R

Roger Govier

Hi Ted

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

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

Rick Rothstein

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top