Forum Discussion
vedantaher
Sep 04, 2023Copper Contributor
Group by in excel
I have multiple values for each date of Jan. month and i need total of values for each date how can i go about this is there any other option than writing power query?
Riny_van_Eekelen
Sep 04, 2023Platinum Contributor
vedantaher Use a pivot table!
- vedantaherSep 04, 2023Copper Contributor
I did thing is i want to multiply type1 and type2 and then do the sum for that date but pivot is giving me sum of Type1 and sum of type 2 which is not desirable
Date Type1 Type2 result 01-08-2023 z y 01-08-2023 a g 02-08-2023 b h- HansVogelaarSep 04, 2023MVP
Perhaps you can use SUMPRODUCT
=SUMPRODUCT(--(DateColumn=Date), Type1Column, Type2Column)
- Riny_van_EekelenSep 04, 2023Platinum Contributor
vedantaher Sorry, I don't understand.
- vedantaherSep 04, 2023Copper Contributor
my input
Date type1 type2 01-08-2023 2 3 01-08-2023 1 2pivot output and my result accordingly
Date type1 type2 Result 01-08-2023 3 5 15what i want
Date Result 01-08-2023 8