prukrishnan
New Member
- Joined
- Feb 6, 2016
- Messages
- 9
Hello,
I am struggling with trying to create a macro and hope I can get some help. I have one sheet (called Sheet1) with 58 columns and about 30,000 rows of data. I am trying to check if values from another sheet appear in the first one and assign a value to against each row if it matches the criteria.
[TABLE="class: grid, width: 50"]
<tbody>[TR]
[TD]Unit 1[/TD]
[TD]Unit 2[/TD]
[TD]Unit 3[/TD]
[TD]Unit 4[/TD]
[TD]Unit 5[/TD]
[TD]Level 1[/TD]
[TD]Level 2[/TD]
[TD]Level 3[/TD]
[TD]Level 4[/TD]
[TD]Level 5[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
If any value in requirement1 (unit 1 to 5) matches and if any value in requirement2 (Level 1 to 5) matches, then value on the last column (name) needs to appear in sheet1 against the relevant row. Each row is one set of criteria and all criteria needs to be checked against each row in Sheet1. There are about 300 rowss in the requirement sheet.
When I had only 2 units and 2 levels to check, I was able to use the following formula to identify the rows for each requirement
=Countif(Sheet1!A2:BE2,Requirement!$A2)+Countif(Sheet1!A2:BE2,Requirement!$B2)
However, this isn't working with 20 units.
Let me know if this isn't clear.
Please help!
I am struggling with trying to create a macro and hope I can get some help. I have one sheet (called Sheet1) with 58 columns and about 30,000 rows of data. I am trying to check if values from another sheet appear in the first one and assign a value to against each row if it matches the criteria.
[TABLE="class: grid, width: 50"]
<tbody>[TR]
[TD]Unit 1[/TD]
[TD]Unit 2[/TD]
[TD]Unit 3[/TD]
[TD]Unit 4[/TD]
[TD]Unit 5[/TD]
[TD]Level 1[/TD]
[TD]Level 2[/TD]
[TD]Level 3[/TD]
[TD]Level 4[/TD]
[TD]Level 5[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
If any value in requirement1 (unit 1 to 5) matches and if any value in requirement2 (Level 1 to 5) matches, then value on the last column (name) needs to appear in sheet1 against the relevant row. Each row is one set of criteria and all criteria needs to be checked against each row in Sheet1. There are about 300 rowss in the requirement sheet.
When I had only 2 units and 2 levels to check, I was able to use the following formula to identify the rows for each requirement
=Countif(Sheet1!A2:BE2,Requirement!$A2)+Countif(Sheet1!A2:BE2,Requirement!$B2)
However, this isn't working with 20 units.
Let me know if this isn't clear.
Please help!