Condition that meets one condition

pto160

Active Member
Joined
Feb 1, 2009
Messages
478
Office Version
  1. 365
Platform
  1. Windows
I have Excel 365. I am trying to see if it is possible to extract data where the order number only has REVERSAL as type and not any other types.
Is there a way to exclude other types without specifying each one and only include REVERSAL? If an order for example had REVERSED and ACTIVE then that would be excluded. Here is the example.
The results are 200 and 500 as they only have REVERSAL,

[
Book1
AB
1OrderType
2100REVERSAL
3100Active
4200REVERSAL
5300REVERSAL
6300Active
7300Posted
8500REVERSAL
9
10The result I would like
11200REVERSAL
12500REVERSAL
Sheet1
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Perhaps
Excel Formula:
 =FILTER(A2:B8;(COUNTIF(A2:A8;A2:A8)=1)*(B2:B8="reversal"))
 
Upvote 0
Is it possible to have data like this?
If so, should 200 be included in the results?
If it should, should it be included once or twice?

23 08 09.xlsm
AB
1OrderType
2100REVERSAL
3100Active
4200REVERSAL
5200REVERSAL
6300REVERSAL
7300ACTIVE
8500REVERSAL
Sample
 
Upvote 0
Thank you arthurbr for your formula.

Hi, Peter_SSs. Yes, it is possible to have data like this. The 200 should be included in the results as it has REVERSAL and nothing else. It should be included once.
 
Upvote 0
Yes, it is possible to have data like this. The 200 should be included in the results as it has REVERSAL and nothing else. It should be included once.
Thanks for the clarification. In that case, try this

pto160_1.xlsm
AB
1OrderType
2100REVERSAL
3100Active
4200REVERSAL
5300REVERSAL
6300Active
7300Posted
8500REVERSAL
9600REVERSAL
10600REVERSAL
11
12
13200REVERSAL
14500REVERSAL
15600REVERSAL
Sheet1
Cell Formulas
RangeFormula
A13:B15A13=UNIQUE(FILTER(A2:B10,COUNTIF(A2:A10,A2:A10)=COUNTIFS(A2:A10,A2:A10,B2:B10,"REVERSAL"),""))
Dynamic array formulas.
 
Upvote 0
Absolutely fantastic. This works great. Thank you so much for your help. This will really help me at work. :) (y)
 
Upvote 0
Would have appreciated an acknowledgment...:(
 
Upvote 0
arthurbr, I apologize humbly. Thank you so much for your help. That was an oversight on my part. Your solution works great as well. (y) :) I will definitely use it as well at work. I will be more conscious of this in the future.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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