Forum Discussion
anirbangoa
Dec 29, 2021Copper Contributor
Formula for conditional sum for distinct values
I have 3 columns in a table - From, To, and Amount. From and To field contains names. The logic is if a name features in the From section, it would mean money is paid by that person and if the name f...
- Dec 29, 2021=SUMIF(B2:B5, A1, C2:C5)
anirbangoa
Dec 29, 2021Copper Contributor
Thanks for your reply.
But John is hard-coded in the formula. Is there anyway where the name could be dynamic?
But John is hard-coded in the formula. Is there anyway where the name could be dynamic?
NikolinoDE
Dec 29, 2021Platinum Contributor
=SUMIF(B2:B5, A1, C2:C5)
- anirbangoaDec 29, 2021Copper ContributorGot it, thanks a lot
- NikolinoDEDec 29, 2021Platinum ContributorI am pleased that this suggested solution has helped you.
We wish you much success and fun with Excel.