May 15 2022 07:07 AM
Hi guys I would say I'm pretty good at excel but this one is bugging me maybe I'm using the wrong formula?
=XLOOKUP("Royal Mail",'Cash Out'!A72:A138,'Cash Out'!C72:C138)
basically i need it to add up the output value (c72:c138)
as there are multiple of the same value in (a72:a138)
May 15 2022 07:31 AM - edited May 15 2022 07:33 AM
Solution@kirkatron Use FILTER in stead.
=SUM(FILTER('Cash Out'!C72:C138,'Cash Out'!A72:A138="Royal Mail"))
XLOOKUP only returns the first match it finds. Top-down or bottom-up but never more than one value, so you can't sum multiple occurrences.
May 15 2022 07:37 AM
May 15 2022 08:02 AM
May 15 2022 08:13 AM
Do you mean that the name should contain mail ? If so:
=SUM(FILTER('Cash Out'!C72:C138,ISNUMBER(SEARCH("mail",'Cash Out'!A72:A138)))
If you literally meant that it should contain (mail) :
=SUM(FILTER('Cash Out'!C72:C138,ISNUMBER(SEARCH("(mail)",'Cash Out'!A72:A138)))
May 15 2022 08:20 AM
May 15 2022 07:31 AM - edited May 15 2022 07:33 AM
Solution@kirkatron Use FILTER in stead.
=SUM(FILTER('Cash Out'!C72:C138,'Cash Out'!A72:A138="Royal Mail"))
XLOOKUP only returns the first match it finds. Top-down or bottom-up but never more than one value, so you can't sum multiple occurrences.