Filter or any other function for filter the data

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
543
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
Hi, we want the folloing data to be filtered, along with the desired results. Please help us filter for tasks that are either completed or in progress?

Data Sheet
Book1
ABCDEF
1Data
2ListStoneLabourStart DateDue DateCompletion Date
3M7-2.testM7-test TJohn10/22/2410/22/2410/22/24
4M7-2.testM7-test TRock10/22/2410/22/24-
5M6-2.POSITIVEM6-POSITIVERuby10/22/2410/22/2410/22/24
6M6-2.POSITIVEM6-POSITIVEJohn10/22/2410/22/2410/22/24
7M6-2.POSITIVEM6-POSITIVEwick10/22/2410/22/24-
8M5-2.HOLIM5- HOLDJai10/15/2410/18/2410/22/24
9M3-2.RUGGEDM3- RUGGEDJohn10/22/2410/22/2410/22/24
10M1- PASSEDM1- PASSEDUser10/17/2410/17/2410/17/24
11M1- PASSEDM1- PASSEDUser10/17/2410/17/24
12M1- PASSEDM1- PASSEDVan D10/17/2410/17/2410/17/24
13M1- PASSEDM1- PASSEDRuby10/17/2410/17/24
14M1- PASSEDM1- PASSED AGVan D10/17/2410/17/2410/17/24
15M3- 1.KAR M3- KARJohn10/19/2410/19/2410/22/24
16M9-STAR M9-STAR
17M9-STAR M9-STAR
Sheet1


Result Sheet
Book1
IJKLMN
1Data
2ListStoneLabourStart DateDue DateCompletion Date
3M7-2.testM7-test TRock10/22/2410/22/24-
4M6-2.POSITIVEM6-POSITIVEwick10/22/2410/22/24-
5M5-2.HOLIM5- HOLDJai10/15/2410/18/2410/22/24
6M3-2.RUGGEDM3- RUGGEDJohn10/22/2410/22/2410/22/24
7M1- PASSEDM1- PASSEDUser10/17/2410/17/24
8M1- PASSEDM1- PASSEDRuby10/17/2410/17/24
9M3- 1.KAR M3- KARJohn10/19/2410/19/2410/22/24
10M9-STAR M9-STAR
Sheet1
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Row 7 & 8 should not be included in the filtered data ?
 
Upvote 0
Your instructions are confusing. Rows 7 & 8 column N are missing any indicator like the other cells in the column. It appears that
N7 & N8 should be omitted from the filtering.
 
Upvote 0
Your instructions are confusing. Rows 7 & 8 column N are missing any indicator like the other cells in the column. It appears that
N7 & N8 should be omitted from the filtering.
if you will check then find that we are tracking as per following
Heading Stone are main task
Heading List are under the main Task
now we want all the heading work done or not, if done then what is last task done and if not done then on which stage only
 
Upvote 0
we have given the work in N7 & N8 but its not done, so we want in list
 
Upvote 0
Code:
Sub test()
    Dim r As Range
    With [a1].CurrentRegion.Offset(1)
        Set r = .Offset(, .Columns.Count + 2).Range("a1:a2")
        r(2).Formula = "=or(countif(" & .Columns(1).Address & "," & .Cells(2, 1).Address(0, 0) & _
        ")=1,and(" & .Cells(2, 1).Address(0, 0) & "=" & .Cells(1, 1).Address(0, 0) & ",or(" & _
        .Cells(2, "f").Address(0, 0) & "={""-"",""""})))"
        .AdvancedFilter 1, r
    End With
    r=""
End Sub
 
Last edited:
Upvote 0
1) "not working" is the wrost response.
How is it not working?
Error? Does't do anything?

Not working as you expect?
If so, you need to explain about it.

2) your desire result in #1.
qqq.xlsm
ABCDEF
1Data
2ListStoneLabourStart DateDue DateCompletion Date
3M7-2.testM7-test TRock10/22/2410/22/24-
4M6-2.POSITIVEM6-POSITIVEwick10/22/2410/22/24-
5M5-2.HOLIM5- HOLDJai10/15/2410/18/2410/22/24
6M3-2.RUGGEDM3- RUGGEDJohn10/22/2410/22/2410/22/24
7M1- PASSEDM1- PASSEDUser10/17/2410/17/24
8M1- PASSEDM1- PASSEDRuby10/17/2410/17/24
9M3- 1.KARM3- KARJohn10/19/2410/19/2410/22/24
10M9-STARM9-STAR
Sheet1

3) My result after the code.
qqq.xlsm
ABCDEF
1Data
2ListStoneLabourStart DateDue DateCompletion Date
4M7-2.testM7-test TRock10/22/2410/22/24-
7M6-2.POSITIVEM6-POSITIVEwick10/22/2410/22/24-
8M5-2.HOLIM5- HOLDJai10/15/2410/18/2410/22/24
9M3-2.RUGGEDM3- RUGGEDJohn10/22/2410/22/2410/22/24
11M1- PASSEDM1- PASSEDUser10/17/2410/17/24
13M1- PASSEDM1- PASSEDRuby10/17/2410/17/24
15M3- 1.KARM3- KARJohn10/19/2410/19/2410/22/24
17M9-STARM9-STAR
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,879
Messages
6,175,148
Members
452,615
Latest member
bogeys2birdies

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