Count formula with multiple criteria

shdawson

Active Member
Joined
Jan 6, 2007
Messages
381
Good Morning.


Need to do a logic evaluation. Thinking the COUNT function is the way to get there, but not certain.

Have this test data.
Excel Workbook
CDE
1MultipleDudeTeam
2NBobNetwork
3NJimDatabase
4YJohnDatabase
5YJohnDev
6NTomSecurity
Sheet1
Excel 2003

Need to find what columns in column D have more than 1 entry. Flag those in column C.

Any "simple" way to evaluate multiple columns in a counting action?


Thanks,
S
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
OK, nice trick.

However, I need to flag all of the rows as duplicate, so we can decide other criteria (not listed in this test data) to determine what records to purge.

Current Test Data
Excel Workbook
ABCDE
1DudeTeamFORMULAMultiple EntryDudeTeam
2BobNetworkNNBobNetwork
3JimDatabaseNNJimDatabase
4JohnDevNNJohnDev
5John A.DatabaseNYJohn A.Database
6John A.DatabaseYYJohn A.Database
7John B.DatabaseYNJohn B.Database
8TomSecurityNNTomSecurity
Sheet1
Excel 2003
Cell Formulas
RangeFormula
A1=D1&E1
A2=D2&E2
A3=D3&E3
A4=D4&E4
A5=D5&E5
A6=D6&E6
A7=D7&E7
A8=D8&E8
B2=IF(COUNTIF(A:A,A1)=1,"N","Y")
B3=IF(COUNTIF(A:A,A2)=1,"N","Y")
B4=IF(COUNTIF(A:A,A3)=1,"N","Y")
B5=IF(COUNTIF(A:A,A4)=1,"N","Y")
B6=IF(COUNTIF(A:A,A5)=1,"N","Y")
B7=IF(COUNTIF(A:A,A6)=1,"N","Y")
B8=IF(COUNTIF(A:A,A7)=1,"N","Y")



Need to flag B5 as a Y as well. How can your logic get us there?

Thank you very much!!!


S
 
Upvote 0
Its actually because you have place Formulas incorrectly.
In Formulas of B columns make sure the formula has reference to the same row.
In yours it is giving the reference of the above row.
So the formula in B2 should be
=IF(COUNTIF(A:A,A2)=1,"N","Y"):cool:
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,240
Members
452,898
Latest member
Capolavoro009

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