Duplicate data to another sheet and copy to update when master is changed

Ana_P

New Member
Joined
Aug 22, 2019
Messages
35
Office Version
  1. 2016
Platform
  1. Windows
Hi

I have been tasked with creating a duplicate of a pre-existing data table in Excel to another sheet in the workbook to sort, filter and display differently to the master sheet.

A few things to note:
- the copy needs to update when the master is changed
- blank cells in the master are to remain blank in the copy also (rather than pre-fill with 0)
- the data will be sorted into weeks and a new row will be needed below the data for each week to add subtotals to certain columns
- I would like formatting to copy through also
- new data will be added to the bottom of the master table and this will need to flow through to the copy also

I have tried paste link which I had to do in sections as the table was too big to do in one go - however this raised the issue with the blank cells showing values.
I then tried the formula IF(ISBLANK(A1),"",A1) however instead of A1 I clicked on the actual cell in the master table to use the structured reference with Excel tables, however when I tried to drag the formula to the rest of the cells the structured reference wouldn't change as necessary.

And then I got stuck and not sure where to go from here to achieve the result required - please help :)

Thanks
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Sorry, for me the objective is not totally clear. Is data copied just for one week or is any new data copied? So the copy sheet must have a summary row for each week?

So we do not have to try to create a workbook from scratch it would sure be nice if you could post a link to yours.
 
Upvote 0
Hi,

The whole table needs to be copied and then the copy will be sorted and filtered as needed.

And yes, the copy sheet must have a summary row for each week.

If any changes, including new entries, are made on the master, then the copy will need to reflect those changes.

Will provide a link to my workbook shortly.

Thanks
 
Upvote 0
I do see one potential challenge. You say that the "copy" will include rows with sums for each week. If you sort or filter you may not get the expected results, or am I missing something?

This formula -- IF(ISBLANK(A1),"",A1) -- would seem to be unhelpful as it says if the cell is empty then put empty into the cell, otherwise show A1.

Maybe this would help: If(AND(A1<>"", A1<>0), A1, ""). When you copy it down or across the reference to A1 should adjust.
 
Upvote 0
I apologize, I guess your formula is ok. My response was too hasty.
 
Upvote 0
I do see one potential challenge. You say that the "copy" will include rows with sums for each week. If you sort or filter you may not get the expected results, or am I missing something?

This formula -- IF(ISBLANK(A1),"",A1) -- would seem to be unhelpful as it says if the cell is empty then put empty into the cell, otherwise show A1.

Maybe this would help: If(AND(A1<>"", A1<>0), A1, ""). When you copy it down or across the reference to A1 should adjust.
So I used the formula =IF(ISBLANK(INDEX('July-Dec 2022'!$A:$AB,ROW(),COLUMN())),"",INDEX('July-Dec 2022'!$A:$AB,ROW(),COLUMN())) to copy the info across from one sheet to the other. However, once I got to the sorting/filtering realised that this method is not the way I need to go about it as the formula basically keeps the data in the same format as the master copy.

In the copy I need to sort by Year, Schedule Week, Schedule Date, then F/Y column (in that order and from smallest to largest, or oldest to newest). Then I require a subtotal based on Schedule Week to add totals to Metres In, Metres Out, Kgs In, Kgs Out.

Here is some of the data table:

Sample.xlsx
ABCDEFGHIJKLMN
1Date RaisedDate DeliveredF/YCWOFinisherAdd LTCustomerCustomer POCommentsDue DateRevised ETASchedule DateSchedule WeekDate Received
9318/01/2218/01/22F22000ABGHI1/02/221/02/22525/01/22
9418/01/2218/01/22F22001ABPQR1/02/221/02/2253/02/22
9518/01/2218/01/22F22001ABPQR1/02/221/02/2253/02/22
9618/01/2218/01/22F22001ABPQR1/02/221/02/2253/02/22
9718/01/2218/01/22F22004ABPQR1/02/221/02/2253/02/22
9818/01/2218/01/22F22005ABAZ1/02/221/02/22516/02/22
9918/01/2218/01/22F22008ABGHI1/02/221/02/22531/01/22
10018/01/2218/01/22F22008ABGHI1/02/221/02/22531/01/22
10118/01/2218/01/22F22008ABGHI1/02/221/02/22531/01/22
10218/01/2218/01/22F22008ABGHI1/02/221/02/22531/01/22
10318/01/2218/01/22F22009ABABC1/02/221/02/2251/02/22
10418/01/2218/01/22F22009ABABC1/02/221/02/2251/02/22
10519/01/2219/01/22F22011ABOP82/02/222/02/22511/02/22
10620/01/2224/01/22F22012ABJKL7/02/227/02/22617/02/22
10720/01/2224/01/22F22012ABJKL7/02/227/02/22617/02/22
10820/01/2231/01/22F22012ABJKL14/02/2214/02/22725/02/22
10929/03/2229/03/22F22012ABJKL12/04/2212/04/221514/04/22
11020/01/222/02/22F22013ABJKL16/02/2216/02/22725/02/22
11120/01/2221/01/22F22014ABJKL4/02/224/02/22530/05/22
11220/01/2229/03/22F22014ABJKL12/04/2212/04/221512/04/22
11320/01/2219/01/22F22015ABJKL2/02/222/02/22510/02/22
11420/01/2231/01/22F22016ABYZ14/02/2214/02/2274/02/22
11520/01/2231/01/22F22016ABYZ14/02/2214/02/22717/02/22
11625/01/2225/01/22F22018ABGHI8/02/228/02/22628/01/22
11725/01/2225/01/22F22018ABGHI8/02/228/02/22628/01/22
11825/01/2225/01/22F22018ABGHI8/02/228/02/2261/02/22
11925/01/2225/01/22F22018ABGHI8/02/228/02/22614/02/22
12025/01/2225/01/22F22018ABGHI8/02/228/02/22614/02/22
12125/01/2225/01/22F22019ABAZ8/02/228/02/22616/02/22
12225/01/2225/01/22F22020ABPQR8/02/228/02/2263/02/22
12325/01/2225/01/22F22021CDGHI8/02/228/02/2264/02/22
12425/01/2225/01/22F22021CDGHI8/02/228/02/2264/02/22
12525/01/2225/01/22F22021CDGHI8/02/228/02/2264/02/22
July-Dec 2022
Cell Formulas
RangeFormula
L93:L125L93=IF(ISBLANK([@[Revised ETA]]),[@[Due Date]],[@[Revised ETA]])
M93:M125M93=IF(OR([@[Schedule Date]]="",[@[Schedule Date]]="Missing Info"),"",ISOWEEKNUM([@[Schedule Date]]))
J93:J125J93=IF(ISBLANK([@[Date Raised]]),"",IF(OR(ISBLANK([@[Date Delivered]]),ISBLANK([@[F/Y]])),"Missing Info",[@[Date Delivered]]+VLOOKUP([@[F/Y]],Lead_Time,3,FALSE)+[@[Add LT]]))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I2:I601Expression=AND($Q2="Open",ISNUMBER(SEARCH("ASAP",$I2)))textNO
I2:I601Expression=AND($Q2="Open",ISNUMBER(SEARCH("Urgent",$I2)))textNO
I2:I601Expression=AND($Q2="Open",ISNUMBER(SEARCH("Repro",$I2)))textNO
L2:M601Expression=AND($Q2="Open",$M2<Current_Week)textNO
J2:J601Expression=ISNUMBER($K2)textNO
Cells with Data Validation
CellAllowCriteria
J2:L125Date>1/01/1900
N2:N125Date>1/01/1900
A2:B601Date>1/01/1900
C2:C601List=Reference!$A$3:$A$7
E2:E601List=Reference!$A$15:$A$17
F2:F601Whole numberbetween 0 and 99
 
Upvote 0

Forum statistics

Threads
1,214,389
Messages
6,119,232
Members
448,879
Latest member
VanGirl

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