Excel comparision
Solved/Closed
Related:
- Excel comparision
- Excel mod apk for pc - Download - Spreadsheets
- Kernel for excel repair - Download - Backup and recovery
- Vat calculation excel - Guide
- Menu déroulant excel - Guide
- Excel online macros - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
17 Jan 2012 à 10:07
17 Jan 2012 à 10:07
Hi NITESH,
Your query is unclear to me.
I quess you want to compare your reference data with your raw data and when there is a match, then enter match in the third column.
What would you consider a match?
Please explain in greater detail.
Best regards,
Trowa
Your query is unclear to me.
I quess you want to compare your reference data with your raw data and when there is a match, then enter match in the third column.
What would you consider a match?
Please explain in greater detail.
Best regards,
Trowa
18 Jan 2012 à 07:29
i really appreciate that u did consider my question ,
My q is if a is a reference data in a sheet 1in any column(say A) and b is a Raw data in sheet 2 in any column(say D),then Raw data must be compared with the reference data of sheet1,and if any match found then that match will be copy to the sheet3 of same workbook..
A(reference data) D(raw data) A(status)
ab xc
bc cb
cd ab match
ef pq
gh cd match
ij zx
kl qr
hj bc MATCH
rh
ch
pls.. help to solve this problem of excel.
thanks in advance.
nitesh
18 Jan 2012 à 07:31
i really appreciate that u did consider my question ,
My q is if a is a reference data in a sheet 1in any column(say A) and b is a Raw data in sheet 2 in any column(say D),then Raw data must be compared with the reference data of sheet1,and if any match found then that match will be copy to the sheet3 of same workbook..
A(reference data) D(raw data) A(status)
ab --------- --------- xc
bc---------- ------ cb
cd ------------- ab match
ef ------------pq
gh --------- cd match
ij ------------ zx
kl------------- qr
hj ------------- bc MATCH
rh
ch
pls.. help to solve this problem of excel.
thanks in advance.
nitesh
19 Jan 2012 à 09:58
Sheet1, column A, Header: Reference data.
Sheet2, column D, Header: Raw data.
Sheet3, column A, Header: Status
If this is ok, then try this code:
Sub Compare() Dim lRow, lRow2, x As Integer lRow = Sheets("Sheet2").Range("D" & Rows.Count).End(xlUp).Row lRow2 = Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Row For Each cell In Sheets("Sheet2").Range("D2:D" & lRow) x = 2 Do If cell.Value = Sheets("Sheet1").Range("A" & x) Then Sheets("Sheet3").Range("A" & cell.Row).Value = "Match" End If x = x + 1 Loop Until x > lRow2 Next cell End SubDoes this yield the desired result?
Best regards,
Trowa
19 Jan 2012 à 15:39
Thanks again
Nitesh
20 Jan 2012 à 09:19
thanks again