Excel formula to find occurrences greater than 1

JENWPS

New Member
Joined
Nov 9, 2023
Messages
10
Office Version
  1. 365
Platform
  1. Windows
I am trying to create a formula to find out if a certain word appears more than one time in a column with criteria. I have a PO# in column A and in column B the words DROP or MISC appear. I am trying to find out if the word DROP appears more than once for each PO#. I am currently using the formula =COUNTIF(A:A,A2)=COUNTIFS(A:A,A2,B:B,"=DROP")>1 but it returns all as TRUE. In the example below, PO#'s 2401034, 2401096 and 2401284 should all come back as TRUE.
PO NUMBERProductLine
2401307DROP
2401307MISC
2401309MISC
2401309DROP
2401034DROP
2401034DROP
2401034MISC
2401067MISC
2401067MISC
2401067DROP
2401096DROP
2401096MISC
2401096DROP
2401195MISC
2401195DROP
2401195MISC
2401284MISC
2401284DROP
2401284DROP
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi & welcome to MrExcel.
How about
Excel Formula:
=COUNTIFS(A:A,A2,B:B,"DROP")>1
 
Upvote 1
I have another inquiry regarding this same spreadsheet but I'm not sure if I should start a new thread. I'll ask here for now. For this same project, I have 3 columns - Column A (Vendor), Column B(PO#), Column C(Product Line). Similar to last time I am trying to weed out certain PO's that meet certain criteria. For this one, as long as all of the DROP lines for a given PO have the same vendor it can be deleted. So if a PO# has a Product Line DROP and the VENDOR is the same for each of those DROP lines I can disregard that PO all together regardless of the MISC lines.

VENDORPO#PRODUCT LINE
CONTIXO2401242DROPDON'T NEED
CONTIXO2401242DROPDON'T NEED
CONTIXO2401242DROPDON'T NEED
CONTIXO2401242DROPDON'T NEED
MATTEL2401242MISCDON'T NEED
KIDGAL2401242MISCDON'T NEED
CONTIXO2401246DROPKEEP
WONFOLD2401246DROPKEEP
STANS2401253DROPKEEP
ROYALG2401253DROPKEEP
STANS2401253MISCKEEP
 
Upvote 0
I have another inquiry regarding this same spreadsheet but I'm not sure if I should start a new thread. I'll ask here for now. For this same project, I have 3 columns - Column A (Vendor), Column B(PO#), Column C(Product Line). Similar to last time I am trying to weed out certain PO's that meet certain criteria. For this one, as long as all of the DROP lines for a given PO have the same vendor it can be deleted. So if a PO# has a Product Line DROP and the VENDOR is the same for each of those DROP lines I can disregard that PO all together regardless of the MISC lines.

VENDORPO#PRODUCT LINE
CONTIXO2401242DROPDON'T NEED
CONTIXO2401242DROPDON'T NEED
CONTIXO2401242DROPDON'T NEED
CONTIXO2401242DROPDON'T NEED
MATTEL2401242MISCDON'T NEED
KIDGAL2401242MISCDON'T NEED
CONTIXO2401246DROPKEEP
WONFOLD2401246DROPKEEP
STANS2401253DROPKEEP
ROYALG2401253DROPKEEP
STANS2401253MISCKEEP
Sorry, I should clarify that I am looking for a TRUE/FALSE formula to find these
 
Upvote 0
As this is a significantly different question, it needs a new thread. Thanks
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,963
Members
449,094
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