Hi All,
I have a spreadsheet with multiple columns, with Columns "F", "I" and "L" listing scheduled jobs (SJ) and Columns "G", "J" and "M" listing work sites (WS) for the SJ. So, Columns "F" and "G" will define a SJ and a WS and Col "I" and "J" the next SJ and WS etc. These 3 columns "G", "J" and "M" might have the same WS listed, but in different rows depending on the sequence the jobs are allocated in as well as the date, which leads to my problem, I want to display only the rows that contain a specific WS, in all of the three columns. Filtering only shows the the WS in one column and I therefore do not see all jobs for a specific site.
Below is an example of the spreadsheet, which might assist in the explanation, e.g. I want to filter on BEL in the Site columns and display all rows containing BEL and also including the Headers.
[TABLE="width: 500"]
<tbody>[TR]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]Date [/TD]
[TD]Month[/TD]
[TD]Year[/TD]
[TD]Job 1[/TD]
[TD]Site 1[/TD]
[TD]Venue 1[/TD]
[TD]Job 2[/TD]
[TD]Site 2[/TD]
[TD]Venue 2[/TD]
[TD]Job 3[/TD]
[TD]Site 3[/TD]
[TD]Venue 3
[/TD]
[/TR]
[TR]
[TD]1/10/2018[/TD]
[TD]OCT[/TD]
[TD]2018[/TD]
[TD]HT[/TD]
[TD]BEL[/TD]
[TD][/TD]
[TD]F5M[/TD]
[TD]GKH[/TD]
[TD][/TD]
[TD]LT[/TD]
[TD]JCH[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2/10/2018[/TD]
[TD]OCT[/TD]
[TD]2018[/TD]
[TD]MHT[/TD]
[TD]MHH[/TD]
[TD][/TD]
[TD]LT[/TD]
[TD]BEL[/TD]
[TD][/TD]
[TD]HT[/TD]
[TD]GKH[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3/10/2018[/TD]
[TD]OCT[/TD]
[TD]2018[/TD]
[TD]F5M[/TD]
[TD]JCH[/TD]
[TD][/TD]
[TD]HT[/TD]
[TD]MHH[/TD]
[TD][/TD]
[TD]F5M[/TD]
[TD]BEL[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4/10/2018[/TD]
[TD]OCT[/TD]
[TD]2018[/TD]
[TD]LT[/TD]
[TD]GKH[/TD]
[TD][/TD]
[TD]F5M[/TD]
[TD]MHH[/TD]
[TD][/TD]
[TD]MHT[/TD]
[TD]JCH[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Any help with VBA to assist with displaying only the rows that contain a specific work site in any of the columns and hiding all that does not meet the criteria, will be appreciated. I was thinking on a reference cell, where the relevant work site could be selected from a drop down list to filter on or alternatively a button for each work site to run VBA
I not sure if I have explained this well enough, but please let me know should you require any further
Kind Regards
I have a spreadsheet with multiple columns, with Columns "F", "I" and "L" listing scheduled jobs (SJ) and Columns "G", "J" and "M" listing work sites (WS) for the SJ. So, Columns "F" and "G" will define a SJ and a WS and Col "I" and "J" the next SJ and WS etc. These 3 columns "G", "J" and "M" might have the same WS listed, but in different rows depending on the sequence the jobs are allocated in as well as the date, which leads to my problem, I want to display only the rows that contain a specific WS, in all of the three columns. Filtering only shows the the WS in one column and I therefore do not see all jobs for a specific site.
Below is an example of the spreadsheet, which might assist in the explanation, e.g. I want to filter on BEL in the Site columns and display all rows containing BEL and also including the Headers.
[TABLE="width: 500"]
<tbody>[TR]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]Date [/TD]
[TD]Month[/TD]
[TD]Year[/TD]
[TD]Job 1[/TD]
[TD]Site 1[/TD]
[TD]Venue 1[/TD]
[TD]Job 2[/TD]
[TD]Site 2[/TD]
[TD]Venue 2[/TD]
[TD]Job 3[/TD]
[TD]Site 3[/TD]
[TD]Venue 3
[/TD]
[/TR]
[TR]
[TD]1/10/2018[/TD]
[TD]OCT[/TD]
[TD]2018[/TD]
[TD]HT[/TD]
[TD]BEL[/TD]
[TD][/TD]
[TD]F5M[/TD]
[TD]GKH[/TD]
[TD][/TD]
[TD]LT[/TD]
[TD]JCH[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2/10/2018[/TD]
[TD]OCT[/TD]
[TD]2018[/TD]
[TD]MHT[/TD]
[TD]MHH[/TD]
[TD][/TD]
[TD]LT[/TD]
[TD]BEL[/TD]
[TD][/TD]
[TD]HT[/TD]
[TD]GKH[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3/10/2018[/TD]
[TD]OCT[/TD]
[TD]2018[/TD]
[TD]F5M[/TD]
[TD]JCH[/TD]
[TD][/TD]
[TD]HT[/TD]
[TD]MHH[/TD]
[TD][/TD]
[TD]F5M[/TD]
[TD]BEL[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4/10/2018[/TD]
[TD]OCT[/TD]
[TD]2018[/TD]
[TD]LT[/TD]
[TD]GKH[/TD]
[TD][/TD]
[TD]F5M[/TD]
[TD]MHH[/TD]
[TD][/TD]
[TD]MHT[/TD]
[TD]JCH[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Any help with VBA to assist with displaying only the rows that contain a specific work site in any of the columns and hiding all that does not meet the criteria, will be appreciated. I was thinking on a reference cell, where the relevant work site could be selected from a drop down list to filter on or alternatively a button for each work site to run VBA
I not sure if I have explained this well enough, but please let me know should you require any further
Kind Regards
Last edited: