how to copy and paste a DATA from one sheet to another

charith

Board Regular
Joined
Jan 3, 2014
Messages
152
hello...

i want to copy column A,D,E,F from sheet 1 to sheet 2 column B,C,D,F...

I have a sheet titled "Main" that contains the raw data like the example below. I have another sheets titled "Orders" and . I'm needing a code to copy the data only from column A,D,E,F in "Main" sheet, and paste it in the "Sheet 2" column B,C,D,F based on "sell & buy" values

Sheet(main)
ABCDEF
ORDER TYPE#ORDERSPRICE%
BUY145.780.1
SELL232354.670.15
----
BUY34567890.23

<tbody>
</tbody>

Sheet(Orders)
ABCDFG
A1BUY145.780.1
B2SELL232354.670.15
C1BUY34567890.23
D1

<tbody>
</tbody>

Any help is MUCH appreciated THANK YOU!!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
if i want to copy column 84 and 85 in " Main " sheet, to Order sheet( TO column G and H ) what are the changes in code..!!
 
Upvote 0
Hy,

I really need your advice, or better to say, help.
I need to copy data from one sheet to another, but the trick is that the arrangement of cells is diffrent in each sheet.
To be more precise, I need the value in cell A4 in sheet 2 to be in cell A1 in sheet 1, cell A15 in sheet 2 to be in cell A2 in sheet 1, cell A26 in sheet 2 to be in cell A3 in sheet 1 and so on. So basicly, the diffrence is always 11. Siince, there is a ton of data, I need formula for this.

Thanks a lot.
 
Last edited:
Upvote 0
Add this line of code just above the End If statement.


Code:
     c.Offset(, 83).Resize(1, 2).Copy
        Sheets("Orders").Range("G" & Rows.Count).End(xlUp)(2).PasteSpecial Paste:=xlPasteValues

Howard
 
Upvote 0
Hi badrat,welcome to the forum.

What you have done here with your post is called Highjacking another post. You should read the do's and don't for posting in the forum.

What you want is doable.

Please do this.

Submit a new post with the title something like:

How to copy every eleventh cell on one sheet to a list on another.

I will be looking for it as well as many superb code experts.

I think you will be surprised with the results you get.

Regards,
Howard
 
Upvote 0
In the private mail to me:

charith said:
sir can you plese help me to solve this , actually this code works fine but the problem is , when the column 3 fills automatically with "S" it do not work..!! sorry for the disturb..

This is not clear to me.

What column 3 and where do the S's come from?

No need for private mail, others viewers here may have a solution also, or understand better what the problem is.

I would suggest a link to an example workbook and explain the problem in that post or on the sheet in the workbook you are having the problem.

I use and like Drop Box, but there are others.

Howard
 
Upvote 0
https://www.dropbox.com/s/uusm1kfxwfebqry/LIVE%20STOCK%20QUOTES%20%28API%29%20V5.1.xlsx

This is it..!! it is about share market

when the stoket market open DayHigh and DayLow prices are fill automatically.
once market price came to that columns, the "Open column(Column number 103)" fills with "Y" (as now the market is closed we can drag the cell CY6 ("Y") down and see the changes )


So i want to copy "current price "(48) to " open price "(45) column when "open column (103)" = Y

(it works when i entered letter "Y" to column "open" (103), but it didn't work when it fills automatically)



Thank you very much
 
Upvote 0

Forum statistics

Threads
1,215,650
Messages
6,126,012
Members
449,280
Latest member
Miahr

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