Counting by criteria

Domroy

Board Regular
Joined
Mar 8, 2018
Messages
114
[FONT=&quot]In column "A" I have a number called LOA.
[/FONT]

[FONT=&quot]In column "AS" I have claim numbers.
[/FONT]

[FONT=&quot]In column "AN" I have DOS From.
[/FONT]

[FONT=&quot]"AO" is DOS to.
[/FONT]

[FONT=&quot]
[/FONT]

[FONT=&quot]I need two formulas.
[/FONT]

[FONT=&quot]
[/FONT]

[FONT=&quot]Formula 1: "Is there more than one claim number per LOA? So, I need it to look at the LOA number, see if there are duplicates (which there are), and when there is, check and see if the claim number is a duplicate and give me a yes or no. This formula is in "AT" - not that it matters.
[/FONT]

[FONT=&quot]
[/FONT]

[FONT=&quot]Formula 2: "Is there more than one "DOS From - DOS To" instance for a claim?" So it's similar. It looks at all the matching claim numbers, and then checks columns AN and AO to see if that pairing is the same for each or not. Also to return a YES/NO. This formula is an "AU" - again, not that it matters.
[/FONT]

[FONT=&quot]
[/FONT]

[FONT=&quot]Help! And thanks!
[/FONT]

[FONT=&quot]
[/FONT]

[FONT=&quot]Judi[/FONT]
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
see below

In column "A" I have a number called LOA.

In column "AS" I have claim numbers.

In column "AN" I have DOS From.

"AO" is DOS to.



I need two formulas.



Formula 1: "Is there more than one claim number per LOA? So, I need it to look at the LOA number, see if there are duplicates (which there are), and when there is, check and see if the claim number is a duplicate and give me a yes or no. This formula is in "AT" - not that it matters.

Code:
=IF(COUNTIFS(A:A,A2)>1,IF(COUNTIFS(AS:AS,AS2)>1,"YES","NO"),"")


Formula 2: "Is there more than one "DOS From - DOS To" instance for a claim?" So it's similar. It looks at all the matching claim numbers, and then checks columns AN and AO to see if that pairing is the same for each or not. Also to return a YES/NO. This formula is an "AU" - again, not that it matters.



Help! And thanks!



Judi
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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