Setup Advice - maybe using Index/Match

HWillis

Board Regular
Joined
Jun 18, 2009
Messages
62
Office Version
  1. 2016
Hi there - I am after some advice on how to look at setting something up. Not really sure if Index/Match is the right way to go or if it would work?

I have a worksheet (A) that tracks everyday work items that have KPI due dates - all have a 'type' that uses vLookUp and other formulas that calculate the KPI dates. This is used daily.

Within the same workbook a different report may only require some certain 'type' and use say the first 4 columns info with additional columns for other information to have further input. I would like to keep this on a separate worksheet (B).

Is there a way to auto populate the worksheet (B) with the duplicate columns from worksheet (A)?

So if worksheet (A) had 'type' = 'apple', 'orange', 'pear'
worksheet (B) only required the 'apple' types + columns 2, 3, and 4 copied for each row it occurred for.

Hope this makes sense?! Any help would be greatly appreciated.

Many thanks, Helen.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi there are ways of doing this. This tutorial by Mike Girvin might work for you
 
Upvote 0
thank you - I will have a look and see if this is what I am looking for - many thanks for your reply and info.
 
Upvote 0
Hi again - I am sorry but my skills are not up to this level - could you have a look at a simplified version please?
Many thanks in advance............ H. :)


NRTS example.xlsm
ABCDEFGH
1Column D on NRTS worksheet
2Task Work Typeif this is equal to any of these types on NRTS then copy columns A,B,D,E,F to REPORT2
3Gateway - routine
4Gateway - complex
5Gateway - alterations
6
7
8
9Date ReceivedDate AdequateTask Work TypePP No.Description#dwellings#ongoing jobs#construction jobs
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
REPORT2
Cells with Data Validation
CellAllowCriteria
A3:A6List=Task_WorkType


NRTS example.xlsm
ABCDEFGHIJKLMNOPQRSTUV
3Date ReceivedDate AdequateSign Off LevelTask Work TypePP No.DescriptionGeneral CommentsCM9 FILE #Accelo #Acknowledgement Letter SentLGAPlannerCurrent LocationDPE KPI (working days)Northern KPI (days)Days til overdue (DPE KPI then Northern KPI)Due Date 1st ApproverDue Date RDNorthern Target DateDue Date EDDPE KPI Target DateDate Completed
428/02/202028/02/2020EDGateway - routinePP_2019_CLARE_004_00Lord Howe Island LEP 2010 Amendment No 6 - PP_2019_LHOWE_001_00OBJ16/08878Lord Howe IslandRebecca CarpenterED2019-913/03/202020/03/202026/03/202028/02/202027/03/2020
510/09/2019RDGateway - routinePP_2019_LISMO_007_00Armidale Amendment 15 - PP_2019_AREGI_002_00 - Reducing Minimum Lot Size - 267 Long Swamp Road, ArmidaleFurther information being sought from Council about SEPP55 compliance - PP on hold 08/01/2020- Contamination report submitted 09/01/2020 - Advised Council to revise PP to include recommendations to contamination report and respond to questions about surrounding land EF19/26313Armidale RegionalLucy Walker Council2019 13/01/190020/01/190026/01/1900 27/01/1900
630/09/2019RDGateway - routinePP_2019_TWEED_005_00 Council PoundDraft PP inadequate. Requested additional information. Council requested formal advice. Sent to 1st approver 05/11/19 08/11/2019 Letter sent to Council requesting revised draftEF19/25525ByronJenny JohnsonCouncil2019 13/01/190020/01/190026/01/1900 27/01/1900
718/11/201921/11/2019EDGateway - complexPP_2019_TWEED_004_00P_2019_TWEED_004_00- Rezone Lot 1747 DP 1215252 in the Seabreeze Estate, Pottsville.21/11/2019 - Determined to be adequate 24/02/2020 - Sent to TL for reviewEF18/22749TweedRebecca CarpenterCOMPLETED4021Complete12/12/201920/12/201920/12/201916/01/202030/01/20206/03/2020
86/03/2020RDGateway - routinePP_2020_LISMO_001_00 - 389 Keen Street, East Lismore10/03/2020- Add info requested. On hold. EF20/9083LismoreLucy Walker Council2019 13/01/190020/01/190026/01/1900 27/01/1900
96/03/202011/03/2020RDGateway - routinePP_2020_BYRON_001_00 - rezone 54 Parrot Tree Place, BangalowEF20/9130ByronJon StoneCOMPLETED2019Complete25/03/20201/04/20207/04/2020 8/04/20202/04/2020
1010/03/2020RDGateway - routinePP_2020_BYRON_002_00 - Tiny House DevelopmentEF20/18292ByronJenny JohnsonPlanner2019 13/01/190020/01/190026/01/1900 27/01/1900
1110/03/2020RDGateway - routine PP_2020_BYRON_003_00 - Short-term Rental Accommodation2020-03-19_Sent to policy team for review in re to inconsistency with SEPP Assessing adequacyEF20/18293ByronGina DavisPolicy Team2019 13/01/190020/01/190026/01/1900 27/01/1900
1220/03/202020/03/2020RDs9.1 signoff PP_2019_BALLI_003_00 - Lot 951 DP 1165266, 26 Boeing Avenue, BallinaEF19/25612BallinaPlanner1514331/03/20203/04/20209/04/2020 14/04/2020
1320/03/202020/03/2020RDs9.1 signoff PP_2017_PORTM_008_00 - 4.4 signoff2020-03-26_Sent to TL EF17/13516Port Macquarie HastingsGina DavisCOMPLETED1514Complete31/03/20203/04/20209/04/2020 14/04/202030/03/2020
1423/03/2020RDGateway - routinePP_2020_CLARE_001_00 - Ulmarra-Nymboida Heritage AmendmentEF20/18763Clarence ValleyHelen WillisCouncil2019 13/01/190020/01/190026/01/1900 27/01/1900
1516/09/20192/12/2019RDGateway - routinePP_2019_CLARE_004_00 - Part of Lot 102 DP1221192, Summerland Way, Koolkhan11/12/2019 - Sent to TLEF19/26541yesClarence ValleyRebecca Carpenter2019-6316/12/20196/01/202010/01/2020 13/01/2020
1628/11/20192/12/2019RDGateway - routinePP_2019_BYRON_007_00Byron LEP 2014 - - former Byron Bay Hospital Site13/12/2019- Sent to TL 16/12/2019- Sent to RD 08/01/2020- Signed by RDEF19/30431YesByronLucy Walker 2019-6316/12/20196/01/202010/01/2020 13/01/2020
175/12/20199/12/2019RDGateway - routinePP_2019_TWEED_007_00 - Tweed Bowl's Club18/12/2019 - Sent to TL 18/12/2019 - Sent to RDEF19/30784YesTweedLucy Walker 2019-586/01/202013/01/202017/01/2020 20/01/2020
182/12/20195/12/2019RDGateway - routinePP_2019_LISMO_007_00 - Schedule 1 Amendment to permit a General Industry (erosion mat manufacturing) at 464 Broadwater Road, DUNGARUBBA - S-51619/12/19 sent to TL 19/12/19 sent to RDEF19/30538LismoreHelen Willis2019-6019/12/20199/01/202015/01/2020 16/01/2020
195/12/20195/12/2019RDGateway - routinePP_2019_BALLI_005_00 - Rural Industry Definition Change18/12/2019 - Sent to TL 19/12/2020 - Sent to RD 14/01/2020 - GD approvedEF19/30672BallinaKate Campbell2019-6019/12/20199/01/202015/01/2020 16/01/2020
2015/12/201915/12/2019RDs9.1 signoff Kyogle Amendment 13 - 4.4 signoffRFS raised no objectionsOBJ17/04525KyogleJon Stone1514-597/01/202010/01/202016/01/2020 17/01/2020
21        
22        
23        
24        
NRTS
Cell Formulas
RangeFormula
N4:N24N4=IFERROR(VLOOKUP([Task Work Type],KPI_workingdays,2,FALSE),"")
O4:O24O4=IFERROR(VLOOKUP([Task Work Type],KPI_workingdays,3,FALSE),"")
P4:P24P4=IF(B4="","",IF(V4="",IF(U4="",NETWORKDAYS(TODAY(),S4,Holidays),NETWORKDAYS(TODAY(),U4,Holidays)),"Complete"))
Q4:Q24Q4=IFERROR(IF(OR([@[Sign Off Level]]="1st App",[@[Sign Off Level]]="RD",[@[Sign Off Level]]="ED"),WORKDAY([@[Date Adequate]],VLOOKUP([Task Work Type],KPI_workingdays,4,FALSE),Holidays),""),"")
R4:R24R4=(IF(OR([@[Sign Off Level]]="RD",[@[Sign Off Level]]="ED"),WORKDAY([@[Date Adequate]],VLOOKUP([Task Work Type],KPI_workingdays,5,FALSE),Holidays),""))
S4:S24S4=IFERROR(WORKDAY([@[Date Adequate]],[@[Northern KPI (days)]],Holidays),"")
T4:T24T4=IFERROR(IF(OR([@[Sign Off Level]]="ED"),WORKDAY([@[Date Adequate]],VLOOKUP([Task Work Type],KPI_workingdays,6,FALSE),Holidays),""),"")
U4:U24U4=IF([DPE KPI (working days)]=0,"",IFERROR(WORKDAY([@[Date Adequate]],[@[DPE KPI (working days)]],Holidays),""))
Named Ranges
NameRefers ToCells
Holidays=Lists!$O$2:$O$67Q4:U24
KPI_workingdays=Lists!$A$2:$F$31T4:T24, Q4:R24, N4:O24
Task_WorkType=Lists!$A$2:$A$31T4:T24, Q4:R24, N4:O24
Cells with Conditional Formatting
CellConditionCell FormatStop If True
P4:P50Cell Value=""textNO
P4:P50Cell Value>10textNO
R4:R24Dates Occurringthis weektextNO
R4:R24Dates Occurringnext weektextNO
R4:R24Dates Occurringlast weektextNO
P4:P50Cell Valuebetween 5 and 10textNO
P4:P50Cell Value<5textNO
Cells with Data Validation
CellAllowCriteria
C4:C50List=SignOffLevel
D4:D50List=Task_WorkType
J4:J50List=Yes_No
K4:K50List=LGA
L4:L50List=Planner
M4:M50List=CurrentLocation
 
Upvote 0
Perhaps I can convince you to try Power Query/Get & Transform? What is your Excel version? Any version from 2010 and above on Windows should work (+ IE v9, if I"m not mistaken).
Don't let it scare you, as all, except 1 step, only involves some mouse clicks. No coding required.

  1. In 2016 (365 subscription) start from the data ribbon, section "Get & Transform Data"
  2. Select a cell from the data range
  3. then click From Table/Range (your table has headers, so flag that)
  4. PQ windows opens
  5. Filter the column like you would in Excel (hardcoding now, we'll fix that later)
  6. get rid of the columns you do not need in your result table, if any. Simply select them, right click with the mouse and select Delete Column from the context menu
  7. load to excel as table, where you want it to land
If new data is added to your original table, then a refresh if this new table will work.

Making it respond to your selection requires a bit of extra work.
  1. Select your task work type (A2:A6)
  2. Again load from table/range and remember the headers
  3. On the Transformation ribbon, select "Convert To List"
  4. Name your query ListToFilter or something of the like
  5. Save and load as "Only create connection"

Last few steps
  1. On the data ribbon, click Queries and Connections" to open the Query Pane
  2. You will see both your queries
  3. Select the first one, click right and select "Edit"
  4. Find your "Filter" step in the "Applied steps" section. If you do not see that, go to "view" and click the "Query Settings". Then it should show.
  5. Delete this filter step (click red cross before the applied step)
  6. Add a Custom Column via the ribbon "Add Column"
  7. In the formula section type List.Contains(ListToFilter,[Task Work Type]) -> it will return true/false. See I've used the name of the query that holds your list of selection criteria.
  8. Filter your table again on this column with "TRUE".
  9. Save and load
Replace your selections via the drop down and then press refresh. If all goes well, the table is filtered accordingly. Let me know if you need more help.
 
Upvote 0
This is pretty amazing stuff. Thank you. I have everything working but - can the ListToFilter be dynamic. I have tried researching this but I am not sure.

So in my original workbook my Task Work Type is 30 items - can I use this as the ListToFilter based on what is filtered/selected each time someone needs to run the report?

Thank you so much for your help....... H.
 
Upvote 0
This is pretty amazing stuff.
I know :cool::giggle:...

I have everything working but - can the ListToFilter be dynamic. I have tried researching this but I am not sure.
So in my original workbook my Task Work Type is 30 items - can I use this as the ListToFilter based on what is filtered/selected each time someone needs to run the report?
Cool you made it that far. Thumps up already.
We need to elaborate on this. How exactly is this list being used by the person running the report? The offered solution may require a tweak or two.

Thank you so much for your help....... H.
More then welcome, it is why these types of fora exist. Don't forget to hit the like button ;)
 
Upvote 0
We have a reference group going atm - after a meeting last Friday a new template has come out this morning - I will check out the new version everyone has agreed on and see what I need to sort.
Many thanks again for your continued help. Hope you had a lovely Easter. :)
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,397
Members
449,081
Latest member
JAMES KECULAH

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