Filter data on the basis of some condition

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
533
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
HI, we have the following data, and want to filter the data on behalf of the following points. (we have excel 2007 and 2010)

(1) Order Not Received and target date is passed
(2) Order Received but balance Qty difference is 50 or more than 50

New Microsoft Excel Worksheet - Copy.xlsx
ABCDEFGHI
1DateOrderP NameTGQtyRecd. DateRecd. Qty
227/4/2010GivenTEST 14/29/20105004/27/2010250250
39/5/2010GivenTEST 25/16/20102005/20/201016040
49/5/2010GivenTEST 35/16/20101505/17/201010050
510/5/2010GivenTEST 45/17/2010600600
610/5/2010GivenTEST 55/17/20102545/16/2010254
712/5/2010GivenTEST 65/19/20106545/18/2010654
812/5/2010GivenTEST 75/19/20109516/10/20109501
912/5/2010GivenTEST 85/19/20107576/15/2010757
Sheet4
Cell Formulas
RangeFormula
I8,I2:I5I2=E2-H2


Help please
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Is TG the target date?

One option might be to have a J column with this:

Code:
=IF(AND(I2>0,D2>G2),"x","")

filled down to mark where I is still missing product and the TG is past.
Similarly, you could write another formula for the 2nd set of conditions.
Then, filter on either J or K.

??
 
Upvote 0
Same as @kweaver 's approach, but assuming you wanted both conditions tested in the same column (not totally clear from your post)
Book1
ABCDEFGHIJ
1DateOrderP NameTGQtyRecd. DateRecd. Qtyfilter
227/04/2010GivenTEST 14/29/20105004/27/2010250250X
39/05/2010GivenTEST 25/16/20102005/20/201016040 
49/05/2010GivenTEST 35/16/20101505/17/201010050X
510/05/2010GivenTEST 45/17/2010600600X
610/05/2010GivenTEST 55/17/20102545/16/2010254 
712/05/2010GivenTEST 65/19/20106545/18/2010654 
812/05/2010GivenTEST 75/19/20109516/10/20109501 
912/05/2010GivenTEST 85/19/20107576/15/2010757 
Sheet1
Cell Formulas
RangeFormula
I2:I5,I8I2=E2-H2
J2:J9J2=IF(OR(AND(G2="",D2<TODAY()),AND(G2<>"",(E2-H2)>=50)),"X","")
 
Upvote 0
Solution
J1=" Order Not Received and target date is passed"
K1=" Order Received but balance Qty difference is 50 or more than 50"
In J2
=AND(G2="",D2>TODAY())
In K2
=AND(G2<>"",G2<=TODAY(),I2>=50)
Copy down both
For condition 1 filter data for Column J=TRUE
For condition 2 filter data for Column K=TRUE
 
Upvote 0

Forum statistics

Threads
1,215,181
Messages
6,123,508
Members
449,101
Latest member
mgro123

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