Inserting columns in sheet1 & sheet2 into different places in sheet3

notanexcelperson

New Member
Joined
Aug 24, 2011
Messages
2
I know what I am trying to do should not be so complicated but I am having trouble finding out how to do it online.

This is what I think I need to do:
1) to take columns A, B, and C from sheet 1 and insert them into columns A, D, and G in sheet 3.
2) take columns A, B, and C in sheet 2 and insert them into B, E, and H in sheet 3.

Here is what I am working with: I have in sheet1 current deaths for each age group, for different counties due to a disease. In sheet 2 I have the population for each age group for different counties.
Columns: age groups
Rows: counties

In sheet 3 I want for each age group a column with the "deaths", a column with"population", and a column with "deaths/population".

I can just cut and past each value I need and drag down each column, but there is a lot of sheets that I need to do this for. Does anyone know if there are short cuts to doing this in excel?
 
Last edited:

John Davis

Well-known Member
Joined
Sep 11, 2007
Messages
3,457
I know what I am trying to do should not be so complicated but I am having trouble finding out how to do it online.

This is what I think I need to do:
1) to take columns A, B, and C from sheet 1 and insert them into columns A, D, and G in sheet 3.
2) take columns A, B, and C in sheet 2 and insert them into B, E, and H in sheet 3.

Here is what I am working with: I have in sheet1 current deaths for each age group, for different counties due to a disease. In sheet 2 I have the population for each age group for different counties.
Columns: age groups
Rows: counties

In sheet 3 I want for each age group a column with the "deaths", a column with"population", and a column with "deaths/population".

I can just cut and past each value I need and drag down each column, but there is a lot of sheets that I need to do this for. Does anyone know if there are short cuts to doing this in excel?
Maybe: Try on a copy first.

Code:
Sub notanexcelperson()

Sheets("Sheet1").Range("A1:A" & Rows.Count).Cut Sheets("Sheet3").Range("A" & Rows.Count).End(3)(2)
Sheets("Sheet1").Range("B1:B" & Rows.Count).Cut Sheets("Sheet3").Range("D" & Rows.Count).End(3)(2)
Sheets("Sheet1").Range("C1:C" & Rows.Count).Cut Sheets("Sheet3").Range("G" & Rows.Count).End(3)(2)
Sheets("Sheet2").Range("A1:A" & Rows.Count).Cut Sheets("Sheet3").Range("B" & Rows.Count).End(3)(2)
Sheets("Sheet2").Range("B1:B" & Rows.Count).Cut Sheets("Sheet3").Range("E" & Rows.Count).End(3)(2)
Sheets("Sheet2").Range("C1:C" & Rows.Count).Cut Sheets("Sheet3").Range("H" & Rows.Count).End(3)(2)

End Sub
 

notanexcelperson

New Member
Joined
Aug 24, 2011
Messages
2
Hi John,

Thanks for your reply. I should tell you that I am not an excel expert and therefore I'm not sure how to change what you sent me to actually fit my worksheets.

Do you mind explaining how to use the code you just sent. What does count mean here?
 

Forum statistics

Threads
1,081,747
Messages
5,361,038
Members
400,610
Latest member
ebey

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top