Hello all, I would like to create a macro considering the following:
Now If I define in sheet3 the month and year for my report ( A1=June and A2=2011), the macro should display in sheet 1 the average score for each fruit in the different criteria (columnB = ctaste, columnC = colour) based on: "poor"=1, "average"=2 and "good"=3.
So in this example (june 2011) the result would be:
Thank you in advance
Code:
Sheet 1 (dynamic named range for different fruits)
ColumnA | ColumnB | ColumnC
Banana
Apple
...
Sheet 2 (montly evaluation by different persons and on different criteria)
ColumnA(fruit) | ColumnB(month) | ColumnC(year) | ColumnD(taste) | ColumnE(colour)
banana | june | 2011 | good | poor
banana | june | 2011 | poor | good
Apple | june | 2011 | avarage | poor
banana | july | 2011 | good | average
Now If I define in sheet3 the month and year for my report ( A1=June and A2=2011), the macro should display in sheet 1 the average score for each fruit in the different criteria (columnB = ctaste, columnC = colour) based on: "poor"=1, "average"=2 and "good"=3.
So in this example (june 2011) the result would be:
Code:
Sheet 1 (dynamic named range for different fruits that is expandeble as new fruits are added from time to time)
ColumnA | ColumnB | ColumnC
Banana 2 2
Apple 2 1
cheries 'empty 'empty
...
Thank you in advance