Merge different cell & O/P in first cell

EC_08

New Member
Joined
Sep 4, 2013
Messages
39
Hi,

I have 15000 raw data as per below , Column A contain different id there home address split in column b (A,B,C,D) i want output in first cell of C column (ABCD) agints each id.

Column AColumn BColumn C
IdAddressO/P
OT001 AABCD
B
C
D
PTT001FFG
G

<colgroup><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col width="64" span="3" style="width:48pt"></colgroup><tbody>
</tbody>
 
its working .. but if possible formula base soluation. pls.
You said this in Message #5...

"But my problem is I don't know my address in column B split in how many cell .
In your formula is my address split in 5 to 7 or may be in 10 cell then what to do...."


Based on that, I started my response in Message #6 with this which I still think applies...

"With the variability your are describing, I do not see how a formula solution is possible,..."
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
its working .. but if possible formula base soluation. pls.
Hard to keep up with your changes of mind - in post #3 you said a macro was ok ;)

A formula solution is possible. You can keep extending my previous formula pretty much as long as you like, but you have to decide what the maximum number of items there might be to decide how much to extend the formula.

Keep adding the bold, underlined section just inside the final ")" and each time increment the red numbers by one

=IF(A2="","",B2&IF(COUNTA(A2:A3)=1,B3,"")&IF(COUNTA(A2:A4)=1,B4,"")&IF(COUNTA(A2:A5)=1,B5,""))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top