elitekatti
New Member
- Joined
- Feb 10, 2011
- Messages
- 9
Hi,
I have used excel for real basic stuffs hence very new to macros and such stuffs..
I ll describe my requirement in brief:
I have a 'name' field (person entry) and 'count' field (score) in the below format in Worksheet1:
Name Count
----- ------
abc 5
def 10
xyz 10
In Worksheet2, I have an 'output' field under which I enter the result - say as "true" or "false".
Output True
-----
Now in Worksheet3, I have the entries voted by each person as shown below (Note: the entires need not be in same order as in Worksheet1):
Name answer
------ -------
abc false
xyz true
def true
Now here, I need a MACRO for a Button_click (even a formula would do) which checks the correct result in worksheet2 (True/ false) and validate worksheet3 to see how many people have answered correctly and finally in worksheet1 increment the count for respective names who answered correctly.
Explaining in the above example:
The output is "true" and hence macro shall validate worksheet3 and find out that "xyz" and "def" have answered correctly. So update the count value by say 5 for "xyz" and "def" in worksheet1.
Hence Worksheet 1 shall now show:
Names Count
------ ------
abc 5
def 15
xyz 15
I would really appreciate answers to this question in the coming two days as I am constrained by time to get this thing working!
Thanks in advance!
I have used excel for real basic stuffs hence very new to macros and such stuffs..
I ll describe my requirement in brief:
I have a 'name' field (person entry) and 'count' field (score) in the below format in Worksheet1:
Name Count
----- ------
abc 5
def 10
xyz 10
In Worksheet2, I have an 'output' field under which I enter the result - say as "true" or "false".
Output True
-----
Now in Worksheet3, I have the entries voted by each person as shown below (Note: the entires need not be in same order as in Worksheet1):
Name answer
------ -------
abc false
xyz true
def true
Now here, I need a MACRO for a Button_click (even a formula would do) which checks the correct result in worksheet2 (True/ false) and validate worksheet3 to see how many people have answered correctly and finally in worksheet1 increment the count for respective names who answered correctly.
Explaining in the above example:
The output is "true" and hence macro shall validate worksheet3 and find out that "xyz" and "def" have answered correctly. So update the count value by say 5 for "xyz" and "def" in worksheet1.
Hence Worksheet 1 shall now show:
Names Count
------ ------
abc 5
def 15
xyz 15
I would really appreciate answers to this question in the coming two days as I am constrained by time to get this thing working!
Thanks in advance!