ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Merge Cells (https://www.excelbanter.com/excel-discussion-misc-queries/132045-merge-cells.html)

trunzop

Merge Cells
 
I know how to combine the contents of 2 cells (example: cell A1 "1234" and
cell B1 "567") by using =(A1&""&B1) resulting in "1234567". How can I
combine the cells but dropping the last digit in A1 to have a result as
"123567"? I found help in doing this before but can not locate it. I
remember using the above function but with a slight adjustment.

Thank you!

tim m

Merge Cells
 
Is the number in A1 always 4 digits long? If so you could use this formula.

=LEFT(A1,3)&B1

"trunzop" wrote:

I know how to combine the contents of 2 cells (example: cell A1 "1234" and
cell B1 "567") by using =(A1&""&B1) resulting in "1234567". How can I
combine the cells but dropping the last digit in A1 to have a result as
"123567"? I found help in doing this before but can not locate it. I
remember using the above function but with a slight adjustment.

Thank you!


Gord Dibben

Merge Cells
 
=LEFT(A1,3) & B1


Gord Dibben MS Excel MVP

On Fri, 23 Feb 2007 08:18:36 -0800, trunzop
wrote:

I know how to combine the contents of 2 cells (example: cell A1 "1234" and
cell B1 "567") by using =(A1&""&B1) resulting in "1234567". How can I
combine the cells but dropping the last digit in A1 to have a result as
"123567"? I found help in doing this before but can not locate it. I
remember using the above function but with a slight adjustment.

Thank you!




All times are GMT +1. The time now is 09:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com