Concatenate and then limit # of characters

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a list of concatenated arguments that are two characters in length for
each argument. How can I display only 26 characters of that output into
another cell (or limit to 26 within that cell)? Thanks, Steve
 
Hi Steve

=LEFT(CONCATENATE(A1," ", B1, " ", C1, " ", D1),26)
or
=RIGHT(CONCATENATE(A1," ", B1, " ", C1, " ", D1),26)
or
=LEFT(A1& " " & B1 & " " & C1 & " " & D1,26)
etc

Cheers
JulieD
 
Thanks JulieD...I'm now trying a few other things based off of your feedback.
Curious though, what is the significance of the (Right/Left) is that
justification or from which end of the string it should count? Also, can I
make it count from the left but not start until after the second dash "-" or
some other character?
 
Hi SP

LEFT / RIGHT is the side to start from
so the formulas i gave you join the cells together and then truncate the
answer at 26 characters.

if you want to start other than at the ends check out the MID function in
HELP (you might also need to incorporate the SEARCH or FIND functions in
there to locate the "-")

see how you go and if you need more assistance, please post back with
specific examples of what you have and what you want.

Cheers
JulieD
 

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

Back
Top