Re: Transfer Rows with Duplicate Values
Great.
Thanks a lot shknbk2.
Re: Transfer Rows with Duplicate Values
Great.
Thanks a lot shknbk2.
Dears,
I would like to transfer all rows that have duplicate values between 2 columns (NameA and NameB) which exist as reverse (NameB and NameA) on the same columns.
Please see attached excel file.
br,
ivan
Re: Find the 2 column values and search in reverse in same 2 columns
Thanks skywriter..
I really appreciated your code.
Have a nice day!
Re: Find the 2 column values and search in reverse in same 2 columns
Thanks again, skywriter.
What i mean is, @ sheet 1
[TABLE="width: 427"]
Item
[/td]NameA
[/td]TerminalA
[/td]NameB
[/td]TerminalB
[/td]Remarks
[/td]
[TD="align: right"]352 [/TD]
2137
[/td]DKJB
[/td]1
[/td]DKJA
[/td]
[TD="align: right"]8[/TD]
58
[/td]DKLA
[/td]DKLB
[/td]No duplicate
[/td]
[/TABLE]
Then @ sheet 2
[TABLE="width: 427"]
Item
[/td]NameA
[/td]TerminalA
[/td]NameB
[/td]TerminalB
[/td]Remarks
[/td]
[TD="align: right"]1[/TD]
1
[/td]DKJA
[/td]2137
[/td]DKJB
[/td]
[/TABLE]
br,
Re: Find the 2 column values and search in reverse in same 2 columns
Thanks a lot, skywriter, it works perfectly fine.
What if i wanted to transfer/separate all duplicated rows to sheet2 and remain only the unique values on sheet1?
br,
Re: Find the 2 column values and search in reverse in same 2 columns
hi skywiter,
as per my attached file and shknbk2's code, after i run the code, please filter @ colum TerminalB.
Here it shows no Duplicate @ row20 but it shows [email protected] @ row 479, same with the other one.
The duplicate should not show from Col NameA & TerminalA to Col NameB & TerminalB.
[TABLE="width: 421"]
Item
[/td]NameA
[/td]TerminalA
[/td]NameB
[/td]TerminalB
[/td]Remarks
[/td]
[TD="align: right"]20[/TD]
2002
[/td]D7AB
[/td]2191
[/td]D7AA
[/td]no Duplicate
[/td]
[TD="align: right"]479[/TD]
2191
[/td]D7AA
[/td]2002
[/td]D7AB
[/td]
[TD="align: right"]1023[/TD]
2326
[/td]DLOB
[/td]4178
[/td]DLOA
[/td]no Duplicate
[/td]
[TD="align: right"]1027[/TD]
4178
[/td]DLOA
[/td]2326
[/td]DLOB
[/td]
[/TABLE]
br,
Re: Find the 2 column values and search in reverse in same 2 columns
Dear shknbk2,
Thanks a lot.
Please see attached file.
All duplicated rows should be transferred @ sheet2 with the same table format as sheet1, same remarks as we had, mentioning from which rows it was duplicated for both sheets
br,
Re: Find the 2 column values and search in reverse in same 2 columns
Thanks a lot shknbk2.
I tested it on some other data, it gives an error... some was found "no duplicates" but when i check it has duplicates, and the remarks has found the duplicate.
Please see below table results.
[TABLE="width: 421"]
Item
[/td]NameA
[/td]TerminalA
[/td]NameB
[/td]TerminalB
[/td]Remarks
[/td]
[TD="align: right"]1[/TD]
3000
[/td]W07B
[/td]4884
[/td]W07A
[/td]no Duplicate
[/td]
[TD="align: right"]159[/TD]
4884
[/td]W07A
[/td]3000
[/td]W07B
[/td]
[TD="align: right"]79[/TD]
4841
[/td]B20B
[/td]4840
[/td]B20A
[/td]
[TD="align: right"]70[/TD]
4840
[/td]B20A
[/td]4841
[/td]B20B
[/td]no Duplicate
[/td]
[/TABLE]
What if i wanted to transfer the whole rows for duplicates to another sheet and remain the unique rows only.
br,
Hello,
Can anyone help me how to to check in vba the values for two columns (NameA and NameB) and check it on reverse columns (NameB and NameA) and highlights the duplicates if found
[TABLE="width: 200"]
Item
[/td]NameA
[/td]TerminalA
[/td]NameB
[/td]TerminalB
[/td]Remarks
[/td]1
[/td]2000
[/td]XXX1
[/td]2001
[/td]XXX2
[/td]2
[/td]2002
[/td]YYYA
[/td]2003
[/td]YYYB
[/td]3
[/td]XYZ22
[/td]ABCA
[/td]XYZ11
[/td]ABCB
[/td]no Duplicate
[/td]4
[/td]2001
[/td]XXX2
[/td]2000
[/td]XXX1
[/td]5
[/td]2003
[/td]YYYB
[/td]2002
[/td]YYYA
[/td]6
[/td]2000
[/td]ZZZA
[/td]2002
[/td]ZZZB
[/td]no Duplicate
[/td]
[/TABLE]
br,
Ivan
Re: Excel VBA - Summary table fori Vacant and Occupied
There is no data in column C, it should show the data have "36 Vacant". In your code it is showing but it was repeated in 6 consecutive rows.
Re: Excel VBA - Summary table fori Vacant and Occupied
To jindon, it also works well to all scenario except when it is empty..
Re: Excel VBA - Summary table fori Vacant and Occupied
Thanks again, i got an error "Subscript out of range", i just create another scenario.
Re: Excel VBA - Summary table fori Vacant and Occupied
Thanks again, i edit again the table, but it didn't show the right output.
Re: Excel VBA - Summary table fori Vacant and Occupied
Dear KjBox, could you please check it again, i just edit the table, but it didn't show the right output.
Thanks.
Re: Excel VBA - Summary table fori Vacant and Occupied
Thanks KjBox, i just edit the table but it didn't show the right output.
Re: Excel VBA - Summary table fori Vacant and Occupied
Thank richdj4.
i prefer to use VBA, since i have a 2000 rows to work on, which is on different sheets.
Dears,
Good day! I would like to make a summary of my table using excel vba.
From attached file, i have a number of rows which specify the name/number of rooms in col B and at col C mentioned number of occupied rooms.
If the value in col C, for example show as "Occupied 2" it will take the first 2 rows and make the summary table which is shown on col E to J. if it is "Occupied 8" it will occupy the 8 rows.. and so on.
if the next rows (after occupying the number of rows mentions) is vacant, it will count the number of vacant until it reach the row with values again.
This will have a loop until the last rows in col B and create the summary table.
Thanks in advance.
br,
Ivan
Re: Summarized Duplication - 15USD
Dear Krishnakumar,
Can you do it for 30USD?
br,
Ivan