How to extract same data twice from one cell in one sheet to two cells of another sheet of the same workbook?

Stevekent

Board Regular
Joined
Jul 24, 2013
Messages
109
Office Version
  1. 365
Platform
  1. Windows
My workbook has 2 worksheets. Worksheet 1 cell A1 contain ABC, cell A2 contain DEF. Now, how can I automatically extract these data to worksheet 2 cell A1 as ABC, cell A2 also ABC, and Cell A3 is DEF, A4 also same DEF
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
We don't need bold text over the whole question. It's like shouting.

Regarding your question.
Is that just for these two cells, A1 and A2? Or do you have a range of cells that needs to be doubled?

And what do you consider "automatically"" Press of a macro Button? When changing a certain cell?
 
Upvote 0
When changing either Cell A1 or Cell A2 in Sheet1 (Automatically)
Code goes in Sheet1 Module
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("A1:A2")) Is Nothing Then
        Sheets("Sheet2").Range("A1:A2").Value = Sheets("Sheet1").Range("A1").Value
        Sheets("Sheet2").Range("A3:A4").Value = Sheets("Sheet1").Range("A2").Value
    End If
End Sub
Or with a Macro Button or Keyboard Shortcut.
Code goes in a regular Module
Code:
Sub With_Macro_Button()
    Sheets("Sheet2").Range("A1:A2").Value = Sheets("Sheet1").Range("A1").Value
    Sheets("Sheet2").Range("A3:A4").Value = Sheets("Sheet1").Range("A2").Value
End Sub
 
Upvote 0
Sorry, I didn't notice I bold it.
I didn't really mean automatically, I just want an Excel formula to do it.
BTW, beside the Macro you suggest, is there a formula to do it.
Thank you very much
 
Upvote 0
Sorry, I didn't notice I bold it.
I didn't really mean automatically, I just want an Excel formula to do it.
BTW, beside the Macro you suggest, is there a formula to do it.
Thank you very much
If you just want a formula, you will just enter a formula like this in the cell you want in sheet2.

=Sheet1!A1
or:
=Sheet1!A2

And so, on
 
Upvote 0
If you just want a formula, you will just enter a formula like this in the cell you want in sheet2.

=Sheet1!A1
or:
=Sheet1!A2

And so, on
This is not what I want. What I want is sheet2 A1 and A2 has the same value of sheet1 A1, and sheet2 A3 and A4 has same value as sheet1A2 and so on.
 
Upvote 0
This is not what I want. What I want is sheet2 A1 and A2 has the same value of sheet1 A1, and sheet2 A3 and A4 has same value as sheet1A2 and so on.
Yes. I just gave you an example.
Just modify to your needs.
 
Upvote 0
Yes. I just gave you an example.
Just modify to your needs.
If I use your method, I have to enter every cells and it'll be very tedious and a lot of works. What I want is just a formula to insert in the cell and drag it down
 
Upvote 0
If I use your method, I have to enter every cells and it'll be very tedious and a lot of works. What I want is just a formula to insert in the cell and drag it down
This is beyond my knowledgebase.
I will continue to monitor this thread to see what I can learn.
 
Upvote 0

Forum statistics

Threads
1,215,096
Messages
6,123,074
Members
449,093
Latest member
ripvw

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