Тёмный

Copy Every Nth Row of Data From Sheet1 to Sheet2 

Dinesh Kumar Takyar
Подписаться 114 тыс.
Просмотров 8 тыс.
50% 1

Опубликовано:

 

26 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 32   
@garykabuthu8713
@garykabuthu8713 2 года назад
Thank you Dinesh Kumar Takyar, You just saved me hours of work. Excellent
@Exceltrainingvideos
@Exceltrainingvideos 2 года назад
Happy to help
@mohamedel-hanfy9140
@mohamedel-hanfy9140 3 года назад
Many thanks for all the valuable information you provide
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
Glad it was helpful!
@shivkumarmahoniya8246
@shivkumarmahoniya8246 3 года назад
Thank u sir, mujhe iski talas thi
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
Share with your friends too. Apne mitron ke saath share kijiye.
@binayyadav1987
@binayyadav1987 3 года назад
Great to learn from you
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
Glad to hear that
@redhaakhund1271
@redhaakhund1271 3 года назад
excellent, how about if you make a video to count every 5 or any number of rows to new sheet. means, copy from 1 to 5 row to new sheet and so on with out using step. make sure you add date in sheet1 before as wen you cop date to new sheet it will result numbers and not date format. Thanks a million👍
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
Great suggestion!
@sankityadav3998
@sankityadav3998 Год назад
How can copy and paste n number of cell of a coloumn with certain interval in New Sheet In A row
@xaqibashraf8470
@xaqibashraf8470 2 года назад
Highly Appreciated Many Thanks Sir
@Exceltrainingvideos
@Exceltrainingvideos 2 года назад
So nice of you. Please share my channel with your friends.
@jessetagore5385
@jessetagore5385 Год назад
rng.Rows(i).Copy Sheet2.Range("A" & startrowsheet2) , this only copies one cell and pastes How do I copy the selected cell as well as one cell below it and specialpaste transpose it. Thank you for your video.
@kellybrannan6292
@kellybrannan6292 2 года назад
Hello, when I enter the script as above, it only counts 1 row and as such, does not copy. I'm using Windows 11, but I don't think it should have changed? I have also visited the link you attached and copy/paste the script in to check for typing errors on my side, but it gives me a compile error, variable not defined for the "A1" (Ln 11, Col 28). Please help-what am I missing?
@Exceltrainingvideos
@Exceltrainingvideos 2 года назад
First copy the code to notepad. Then use it in your VBA editor. Even then check for any extra characters especially the quotes.
@RajaGiri_tvpm
@RajaGiri_tvpm 3 года назад
Thank you,👍
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
Welcome 😊
@ouza1430
@ouza1430 3 года назад
Sir, in Excel we can drag /copy one formula ($C5:$D5 ) copy to ($G5:$H5) as a repetitive formula to ($C6:$M6) ($G6:$H6 ). how we can do the same in VBA I have a table that move data to another sheet once a button clicked ( they are 300 rows) there must be a way in VBA I want too resue the macro but in different cells reference Sub copyVprocess5() Dim wsCopy As Worksheet Dim wsDest As Worksheet Set wsCopy = Workbooks("RoadMap.xlsm").Worksheets("Employee List") Set wsDest = Workbooks(" RoadMap.xlsm").Worksheets("VProcess") wsCopy.Range("C5:M5").Copy wsDest.Range("D1045").End(xlUp).Offset(1, 0) Range("5:5").Rows.Hidden = True End Sub I want to repeat it for C6:M6 , C7:M7...etc)
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
This link will guide: www.exceltrainingvideos.com/copy-paste-data-repeatedly-from-sheet1-to-sheet2/ Or you can try a looping process like so: Sub copyVprocess5() Dim i As Long Dim wsCopy As Worksheet Dim wsDest As Worksheet Set wsCopy = Workbooks("RoadMap.xlsm").Worksheets("Employee List") Set wsDest = Workbooks("RoadMap.xlsm").Worksheets("VProcess") Worksheets("Employee List").Activate For i = 5 To 300 'wsCopy.Range("C5:F5").Copy wsDest.Range("D1045").End(xlUp).Offset(1, 0) wsCopy.Range(Cells(i, 3), Cells(i, 6)).Copy wsDest.Range("D1045").End(xlUp).Offset(1, 0) 'Range("5:5").Rows.Hidden = True Next i End Sub Keep the wsCopy.Range..... and wsDest.Range... in the same line of code.
@ouza1430
@ouza1430 3 года назад
@@Exceltrainingvideos Thank you Sir, you are a genius. that is all what i want
@safeerahmed4474
@safeerahmed4474 3 года назад
Hi sir, I need a help from you.. For example I have two different files in 2 different folders. I file is a database which no body has access to and the other file every body has access. My question how I will update the data on a workbook which every one has access to every time I run a macro one after the other... Please help me sir this is very important for me... We collect feedback from customers but we can't give access of that file to every one... Hence I want the code in order to copy the data one after the other once the closed workbook gets updated.... Thank you
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
These links will guide: www.exceltrainingvideos.com/how-to-transfer-data-from-one-excel-workbook-to-another-automatically/ www.exceltrainingvideos.com/copy-paste-multiple-rows-of-data-from-one-workbook-to-another-using-excel-vba/ www.exceltrainingvideos.com/copy-data-to-another-excel-workbook-based-on-criteria-using-vba/ www.exceltrainingvideos.com/tag/copy-data-from-unknown-range-in-another-workbook-with-usedrange-property/ www.exceltrainingvideos.com/copy-data-from-one-workbook-to-another-to-a-specific-worksheet/ www.exceltrainingvideos.com/transfer-data-multiple-workbooks-master-workbook-automatically/ www.exceltrainingvideos.com/how-to-get-multiple-values-from-closed-workbook-using-vba/
@leocosh
@leocosh 3 года назад
Sir, can i copy data of sheet1 from row 1 to 10 to sheet2 and then 10 to 20 to sheet 3 and so on.. Please help
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
Yes,
@leocosh
@leocosh 3 года назад
@@Exceltrainingvideos please tell me how
@kashifqdn
@kashifqdn 3 года назад
What if we have to paste a continuous data in every nth row? Please help
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
Can you elaborate?
@sureshnchavhan
@sureshnchavhan 3 года назад
Sir, many thanks to you, i want to update excel file daily with macro to be run without opening it at all. i have doing same as you explain in 70,786 views •Dec 3, 2018
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
This link will guide: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-OnhqCSLW-cs.html
@emraan94
@emraan94 Год назад
Sub CopyeveryNthROW() Dim i As Long, N As Long, countrows As Long, Startrowsheet2 As Long Dim Rng As Range Startrowsheet 2 = 1 N = 9 SetRng = Sheet1.Range("d1").CurrentRegion countrows = Rng.Rows.Count For i = 1 To countows Step N Rng.Rows(i).copysheet2.Range ("A" & Startrowsheet2) Startrowsheet2 = Startrowsheet2 + 1 Next i the code says sub or function not defined, I'm trying to copy my data from sheet 1 to sheet 8, column d, row 9th @Exceltrainingvideos @Dinesh Kumar Takyar Could you suggest where am i going wrong here, very new to vba
@102RC
@102RC Год назад
Try this, you have to create a worksheet named "Sheet8" (no quotes) in your Excel file before you run the code. Sub CopyeveryNthROW() Dim i As Long, N As Long, countrows As Long, Startrowsheet2 As Long Dim Rng As Range Startrowsheet2 = 9 N = 9 Set Rng = Sheet1.Range("A1").CurrentRegion countrows = Rng.Rows.Count 'MsgBox countrows For i = 1 To countrows Step N Rng.Rows(i).Copy Worksheets("Sheet8").Range("D" & Startrowsheet2) Startrowsheet2 = Startrowsheet2 + 1 Next i End Sub
Далее
Copy Paste Data repeatedly from Sheet1 to Sheet2
9:41
How to Copy Every Nth Row in Excel
11:04
Просмотров 5 тыс.
Wait for it 😂
00:19
Просмотров 3,4 млн
Speed Up Macros
9:32
Просмотров 9 тыс.
Using Find and FindNext Functions in VBA
14:05
Просмотров 60 тыс.
Search Data in Multiple Workbooks Automatically
14:59
Excel Magic Trick 418: Reference Every Third Value
2:32
Easy Python Decision Trees
3:23
Просмотров 3 тыс.