VBA or Formula to find miss-matched Data when Cell A matches

westc4

Board Regular
Joined
Aug 1, 2012
Messages
89
Office Version
  1. 365
Platform
  1. Windows
I need a formula or VBA function that can be used to find the miss-matched data.

If the Customer number (cell A) is the same, then Check that the CGrp match, Check that AAG match, Check Grp1 match, Check Grp3 match only when the Customer number is the same. ("Match" or "Check")

Start over with next set of Customer numbers. There are times that the count is 2, 3, 4 and 5. A formula for each Check is Ok.

CustomerCOUNTSOrg.DChlCGrpCHECKAAGCHECKPayTCHECKGrp1CHECKGrp3CHECK
11057003S001101Match
1Check
N033Match
46Check
Check
11057003S002101Match
2Check
N033Match
1Check
CM1Check
11057003S030101Match
1Check
N033Match
46Check
Check
11057013S0011071N01247
11057013S0021011N01247CM1
11057013S0301011N01218
11057053S0011071N03347
11057053S0021072N03347
11057053S0301071N0331
11057083S0011071N01247
11057083S0021011N01246
11057083S0301011N01247

<tbody>
</tbody>

Thank you for your review and help.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
westc4,

Try like ....

Excel Workbook
ABCDEFGHIJ
1CustomerCOUNTSOrg.DChlCGrpCHECKAAGCHECKPayTCHECK
211057003S001101Match1CheckN033Match
311057003S002101Match2CheckN033Match
411057003S030101Match1CheckN033Match
511057013S001107Check1MatchN012Match
611057013S002101Check1MatchN012Match
711057013S030101Check1MatchN012Match
811057053S001107Match1CheckN033Match
911057053S002107Match2CheckN033Match
1011057053S030107Match1CheckN033Match
1111057083S001107Check1MatchN012Match
1211057083S002101Check1MatchN012Match
1311057083S030101Check1MatchN012Match
14**********
Sheet4


Hope that helps.
 
Upvote 0
westc4,

Try like ....

Sheet4

*ABCDEFGHIJ
1CustomerCOUNTSOrg.DChlCGrpCHECKAAGCHECKPayTCHECK
211057003S001101Match1CheckN033Match
311057003S002101Match2CheckN033Match
411057003S030101Match1CheckN033Match
511057013S001107Check1MatchN012Match
611057013S002101Check1MatchN012Match
711057013S030101Check1MatchN012Match
811057053S001107Match1CheckN033Match
911057053S002107Match2CheckN033Match
1011057053S030107Match1CheckN033Match
1111057083S001107Check1MatchN012Match
1211057083S002101Check1MatchN012Match
1311057083S030101Check1MatchN012Match
14**********

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
F2=IF(A2="","",IF(COUNTIF($A$2:$A$200,$A2)=SUMPRODUCT(--($A$2:$A$200&$E$2:$E$200=A2&E2)),"Match","Check"))
H2=IF(A2="","",IF(COUNTIF($A$2:$A$200,$A2)=SUMPRODUCT(--($A$2:$A$200&$G$2:$G$200=A2&G2)),"Match","Check"))
J2=IF(A2="","",IF(COUNTIF($A$2:$A$200,$A2)=SUMPRODUCT(--($A$2:$A$200&$I$2:$I$200=A2&I2)),"Match","Check"))

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

Hope that helps.

That is just what I needed!! Thank you so much.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,752
Members
448,989
Latest member
mariah3

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