Hi there,
I have not touched VB for a looooong time and hope someone could refresh me on the codings.
I have 2 worksheets in Excel that looks like below:
Sheet 1
A.............B.............C
Name.......ID............Number of Status=Yes
John........1111
Julie........2222
Mary.......3333
Sheet 2
ID.............Status
1111..........Yes
2222..........No
1111..........Yes
3333..........No
1111..........No
2222..........Yes
.
.
.
.
Therefore I want to have a button on the excel sheet which upon clicking the button the code will match the ID from Sheet1 with the ID in Sheet 2. It will then count the number of Status=Yes for each ID.
In the example above the results expected should be as below:
1111 = 3
2222 = 1
3333 = 0
It must be dynamic in nature as well as the number of cells may increase.
Hope to get a reply soon as ill need to come up with this function by today..thanks a bunch
Bookmarks