Deleting reference cell while keeping formula and contents

Nordsman

New Member
Joined
Apr 6, 2022
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Hello,

I'm not sure if this is even possible, or if it requires some sort of convoluted formula or special add-in, but I will try my best to word my question in a way that makes sense.

Say I have a range of cells on Sheet 1, A1-A12. I enter data into the cells. Then on a separate sheet, Sheet 2, I enter the formula "='Sheet 1'!A1'" into cell B1 and copy that formula down to cell B12, resulting in the A1 data being displayed in B1, the A2 data being displayed in B2, and so on.

Now, I'd like to keep the formulas AND Sheet 1 A1-A12 data displayed in the cell range B1-B12, while deleting the contents of A1-A12.

Furthermore, I'd like to copy the same formulas found in cells B1-B12 (of Sheet 2) and then paste them into cells B13-B24 (of Sheet 2), so when I delete the data in A1-A12 (in Sheet 1) and replace it with new data, that new data shows up in cells B13-B24 (of Sheet 2), while the old deleted A1-A12 data is still displayed in cells B1-B12.

Once again, I realize this is probably an impossibility, but I have a little hope that there's some Excel expert out there who can solve this.

Thank you,

Nordsman
 

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
Hi Welcome to the forum. It is quite easy to do something very close to what you have asked for using VBA. Put this code in the worksheet code for sheet1 (Right click on the sheet1 tab select view code and the paste this code into the worksheet code window). Then make changes on sheet1 A1 to A12 and the values will appear on sheet 2 B1 to 12, when you delete a value from A12 to A12 the code copies the values from B1 to B13 on sheet two ,etc, Try it and see if it is anything like what you want
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("A1:a12")) Is Nothing Then
If Target.Count > 1 Then Exit Sub
rowno = Target.Row
 Application.EnableEvents = False
   With Worksheets("sheet2")
   If Target.Value = "" Then  ' copy B1 to B13 etc
     .Range(.Cells(rowno + 12, 2), .Cells(rowno + 12, 2)) = .Range(.Cells(rowno, 2), .Cells(rowno, 2))
   End If
    .Range(.Cells(rowno, 2), .Cells(rowno, 2)) = Target.Value
   End With
 Application.EnableEvents = True
End If
 Application.EnableEvents = True
End Sub
.
 
Upvote 0

Forum statistics

Threads
1,214,618
Messages
6,120,544
Members
448,970
Latest member
kennimack

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