converting columns C cells to a new row under A and B -macro

osmanoca

Board Regular
Joined
Apr 16, 2016
Messages
87
Hello dear mrexcel helpfull friends. i have three columns and many rows.

this is a dictionary data.
A is word
B is meaning
C is example sentence

i want to bring C example centence to under A and B. because when i copy to word file these columns, no space to be side by side. so i need to bring example column to under word and meanig. so i need a MACRO please.

example:
A B C
1-reading xwendin xwendin tiştekî xweş e.

İ Want to be so:

A B
1- reading xwendin

2- xwendin tiştekî xweş e.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Assuming no header row :

Code:
Dim lr#, rng As Range
lr = Cells(Rows.Count, "A").End(xlUp).Row
Set rng = Range("C1:C" & lr)
Application.ScreenUpdating = False
rng.Copy Cells(lr + 1, "A")
[C1] = 1
[C1].AutoFill Destination:=rng, Type:=xlFillSeries
rng.Copy Cells(lr + 1, "C")
[A:C].Sort Key1:=[C1], Order1:=xlAscending, Header:=xlNo
[C:C].Delete
Application.ScreenUpdating = True
 
Last edited:
Upvote 0
sorry it doesnt do anything. no name chen i click one run makro. so it doesnt see any macro. please check.

thanks

macro please..
 
Upvote 0
Try it like this.

Howard

Code:
Sub Macro_Name_is _Needed()
Dim lr#, rng As Range

lr = Cells(Rows.Count, "A").End(xlUp).Row
Set rng = Range("C1:C" & lr)

Application.ScreenUpdating = False

rng.Copy Cells(lr + 1, "A")
[C1] = 1
[C1].AutoFill Destination:=rng, Type:=xlFillSeries
rng.Copy Cells(lr + 1, "C")
[A:C].Sort Key1:=[C1], Order1:=xlAscending, Header:=xlNo
[C:C].Delete

Application.ScreenUpdating = True

End Sub
 
Upvote 0
Thanks dear friend. it worked with a smalle change. i only changed first row as below:
Sub anyname()


this made new row. very good. and it copies C to below row in A. is possible to come to A and B together with merging them. because so i need to merge all new row A and B to be equal lenght with word and meaning(A and B)
?
İf you can do thanks....
again..



Try it like this.

Howard

Code:
Sub Macro_Name_is _Needed()
Dim lr#, rng As Range

lr = Cells(Rows.Count, "A").End(xlUp).Row
Set rng = Range("C1:C" & lr)

Application.ScreenUpdating = False

rng.Copy Cells(lr + 1, "A")
[C1] = 1
[C1].AutoFill Destination:=rng, Type:=xlFillSeries
rng.Copy Cells(lr + 1, "C")
[A:C].Sort Key1:=[C1], Order1:=xlAscending, Header:=xlNo
[C:C].Delete

Application.ScreenUpdating = True

End Sub
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,313
Members
452,634
Latest member
cpostell

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