How to Find the Same data and find different Row VBA.Help

punnipah

Board Regular
Joined
Nov 3, 2021
Messages
134
Office Version
  1. 2019
Platform
  1. Windows
Hi.

i want to Find the Same data in Row and find different Row values to "output" sheet

1.Find the Same data between Sheet1 and Sheet2 (Find only two or more duplicates)
2.if data in sheet1 and sheet2 have the same number and equal counted then to skip
3.if data in sheet1 and sheet 2 have not the same number and not equal counted to Value to "output" sheet

Ex.
Sheet 1

Check 4853,Check1275,Check19960 (Find only two or more duplicates)

Output_Packageพฤษภาคม_2023.xlsx
ABCD
1Merchant IDDevice IDOperation timeOperation status
223033048532023-05-20 00:02:32Succeed
323033048532023-05-20 00:21:42Succeed
423033012752023-05-20 09:36:11Succeed
523033012752023-05-20 13:49:01Succeed
623033012752023-05-20 15:16:03Succeed
723033078322023-05-20 15:30:59Succeed
823033073992023-05-20 17:07:12Succeed
923033099602023-05-20 17:27:08Succeed
1023033099602023-05-20 20:02:52Succeed
11
12
13
14
15
16
17
18
Sheet1



Sheet 2

Check 4853 = 2 Row, (equal to Sheet 1 to skip)
Check1275 =1 (not equal to Sheet 1(have 3 Row ) Value to "output" sheet
Check9960 =1 (not equal to Sheet 1(have 2 Row ) Value to "output" sheet

Output_Packageพฤษภาคม_2023.xlsx
ABCD
1NoBank LocBankCodeReceipt Date
218614048535/17/2023
328614048535/17/2023
438614012755/17/2023
548613112755/17/2023
658613112755/17/2023
768613178325/17/2023
878613173995/17/2023
988621199605/17/2023
1098621199605/17/2023
1110862126295/17/2023
1211862126295/17/2023
13
14
15
16
17
18
19
20End of Report
21
22
sheet2



Output

Output_Packageพฤษภาคม_2023.xlsx
ABCDE
1No. 1Merchant IDDevice IDOperation timeOperation status
223033012752023-05-20 09:36:11Succeed
323033012752023-05-20 13:49:01Succeed
423033012752023-05-20 15:16:03Succeed
5NoBank LocBankCodeReceipt Date
68614012755/17/2023
7
8No. 2Merchant IDDevice IDOperation timeOperation status
923033099602023-05-20 17:27:08Succeed
1023033099602023-05-20 20:02:52Succeed
11NoBank LocBankCodeReceipt Date
1288621199605/17/2023
13
14
15
16
17
output
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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