ExcelRookie17
New Member
- Joined
- Mar 30, 2022
- Messages
- 5
- Office Version
- 2010
- Platform
- Windows
Hello,
I have been trying for a few days to figure this out, however I have run out of solutions and formulas to complete this. I have two sheets and would like to find the value from sheet1 column 1 in sheet2 column 3 and also sheet1 column 2 in sheet2 column 11.
If all matches then I want it to write TBC in Sheet2 Column 2.
I have the following code but I cannot get around it to match all 4 and then actually paste "TBC" value in the cells.
lastrow = Thisworkbook.worksheets("Sheet1").cells(Rows.Count, 1).End(xlUp).row
For i = lastrow to 2 Step by -1
If thisworkbook.worksheets("Sheet1").Cells(i,1).Value = Thisworkbook.worksheets("Sheet2").Cells(i,3).Value = True Then
Worksheets("Sheet2").Cells(i,2).Value = "TBC"
End If
Next
End Sub
Can someone kindly help me please....
I have been trying for a few days to figure this out, however I have run out of solutions and formulas to complete this. I have two sheets and would like to find the value from sheet1 column 1 in sheet2 column 3 and also sheet1 column 2 in sheet2 column 11.
If all matches then I want it to write TBC in Sheet2 Column 2.
I have the following code but I cannot get around it to match all 4 and then actually paste "TBC" value in the cells.
lastrow = Thisworkbook.worksheets("Sheet1").cells(Rows.Count, 1).End(xlUp).row
For i = lastrow to 2 Step by -1
If thisworkbook.worksheets("Sheet1").Cells(i,1).Value = Thisworkbook.worksheets("Sheet2").Cells(i,3).Value = True Then
Worksheets("Sheet2").Cells(i,2).Value = "TBC"
End If
Next
End Sub
Can someone kindly help me please....