Forum Discussion
MattChisholm
Sep 23, 2020Copper Contributor
Auto-populate worksheets from a source worksheet based on data input
Hi MS Tech Community, I have a dilemma that I have been trying to search a solution to for quite a while. I manage a massive inventory of cannabis excise tax stamps. I am constantly issuing thous...
Craig Hatmaker
Sep 23, 2020Iron Contributor
You have many options. I recommend PowerQuery (PQ). Setup is a bit tedious but straight forward. One setup and we add new transactions to Rec Excise Tracking we can click the Data > Refresh All and every tab will update nicely.
NOTES
- PQ will convert Rec Excise Tracking to a table so I recommend making it a table and naming it tblSource before PQ does so the name means something.
- Use PQ to create each result query. You will need 1 for each tab. Just duplicate the one I created, rename it, then double click the Filtered Rows step and choose which provinces to include for each query.
- Load the query to the appropriate tab then insert a few columns:
- Row - enter formula =ROW()-ROW([#Headers])
- Start - enter formula =IF([@Row]=1,B1,INDEX([End],[@Row]-1))
- End - enter formaul=[@Start]+[@[Add/Sub]]