Please find the enclosed file in this post.
I want to find Which fruit has highest revenue in the 1st quarter of 2011.
First, I used the array formula to calculate the maximum units of fruit sold in the 1st quarter.
=MAX((C4:C63)+(D4:D63)+(E4:E63))
But I don't know how to combine Vlookup and Product function to match the result from the MAX function above with the price for calculating the revenue.
Second, I used a function to find the fruit name which has the highest revenue in the 1st quarter of 2011 (in this stage, I assumed that I had already done the first stage).
=IF(SUM(C4:E4)=$J$4,VLOOKUP(B4,'List of Fruits'!$B$4:$C$63,2,FALSE),0)
By copying down this function for the whole range, I got Bananas as a result for this question. My purpose was to just got the answer in 1 cell rather than in the whole column, how can I do it?
Many thanks to all you guys, please take a second to help me.
I want to find Which fruit has highest revenue in the 1st quarter of 2011.
First, I used the array formula to calculate the maximum units of fruit sold in the 1st quarter.
=MAX((C4:C63)+(D4:D63)+(E4:E63))
But I don't know how to combine Vlookup and Product function to match the result from the MAX function above with the price for calculating the revenue.
Second, I used a function to find the fruit name which has the highest revenue in the 1st quarter of 2011 (in this stage, I assumed that I had already done the first stage).
=IF(SUM(C4:E4)=$J$4,VLOOKUP(B4,'List of Fruits'!$B$4:$C$63,2,FALSE),0)
By copying down this function for the whole range, I got Bananas as a result for this question. My purpose was to just got the answer in 1 cell rather than in the whole column, how can I do it?
Many thanks to all you guys, please take a second to help me.