Wouldn't a Pivot table do?
Select the data area
Insert, Pivot table
Complete as below:
View attachment 8948
Hi Hui,
Thanks for the solution.
But i dont want to use Pivot Table. I have to use the calculated data in Dashboard tool. Dashboard tool cannot accept Pivot Table.
I achieved this using VLOOKUP. But the probelm is, If we use VLOOKUP more than 1000 times, we cant load the excel into my tool.
So, i am trying to achieve this using INDEX/MATCH functions.
please see the below function that i have written. FYI, for instance i hardcoded the States in a Region. I am not getting the States using excel functions. But to get the Sales values i have written the below formula.
=IF(ISNA(INDEX($H$5:$H$9430,MATCH(1,($L$6 = $C$5:$C$9430)*($M$5=$E$5:$E$9430),0))),"",INDEX($H$5:$H$9430,MATCH(1,($L$6 = $C$5:$C$9430)*($M$5=$E$5:$E$9430),0)))
Here the problem is , i am getting sales data of the first match of the array. But i want to sum all the Sales of a CustomerSegment in a State in a Region.
How can i modify the above function to include sum of all the matches.
Please tell me if i am not explaining properly to make u understand.
Thanks,
Ram