Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default merge two cel into ONE retaining the two values

i need to merge into one cell (A1) the cells A1 and B1.
A1 contain the word DESCRIPTION
B1 contain the word CODE

I want to MERGE, not concatenate or use "& to join the information from A1
and B1, and have displayed only the information from A1.
A1 = DESCRIPTION

Can anyone help
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default merge two cel into ONE retaining the two values

If you run this macro:

Sub mergge()
Range("B1").Clear
Range("A1:B1").Merge
End Sub


then cells A1 and B1 will be merged and only the contents of A1 will be
displayed.
--
Gary''s Student - gsnu200769


"victork" wrote:

i need to merge into one cell (A1) the cells A1 and B1.
A1 contain the word DESCRIPTION
B1 contain the word CODE

I want to MERGE, not concatenate or use "& to join the information from A1
and B1, and have displayed only the information from A1.
A1 = DESCRIPTION

Can anyone help

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default merge two cel into ONE retaining the two values

Your subject line is incorrect or your description is incorrect.

Subject says retaining the two values.

Description says only information from A1

That's how merge cells works.

Only the data from the top left cell is retained.

If you want both values in A1 but only A1 value to display, you will have to
concatenate in a third cell, change the formula to values, then hide the word
"CODE" with white font.


Gord Dibben MS Excel MVP

On Wed, 20 Feb 2008 05:13:01 -0800, victork
wrote:

i need to merge into one cell (A1) the cells A1 and B1.
A1 contain the word DESCRIPTION
B1 contain the word CODE

I want to MERGE, not concatenate or use "& to join the information from A1
and B1, and have displayed only the information from A1.
A1 = DESCRIPTION

Can anyone help


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
Excel 2007 not retaining formatting in mail merge operation Susan Excel Discussion (Misc queries) 3 November 4th 07 06:17 AM
VBA variables retaining their values GeorgeJ Excel Discussion (Misc queries) 2 August 17th 07 02:19 AM
Deleting a worksheet but retaining values from the worksheet. [email protected] Excel Discussion (Misc queries) 1 September 13th 06 03:00 PM
Deleting a worksheet but retaining values from the worksheet. [email protected] Excel Discussion (Misc queries) 1 September 13th 06 02:48 PM
Merge cell values Mpls501sMan Excel Discussion (Misc queries) 2 June 27th 05 08:32 PM


All times are GMT +1. The time now is 05:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"