Would like to sum multiple columns for all the rows which includes certain characters, for example in the attached spreadsheet I want to total column Jan and Feb for all fruit which which ends with "berry",
Would like to sum multiple columns for all the rows which includes certain characters, for example in the attached spreadsheet I want to total column Jan and Feb for all fruit which which ends with "berry",
Hi
=SUMIFS(B3:B7,A3:A7,"*berry")
change for B3:B7 for other months
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star icon below the post.
Thanks Richard, but I would need the total for both months together.
=SUMPRODUCT(--ISNUMBER(SEARCH("*berry",A3:A7))*B3:C7)
Ben Van Johnson
Thanks Ben, it works, but what if I have 3 months, Jan, Feb & Mar and I only want to calculate the *berry for the months of Jan and Mar, excluding Feb?
assuming Mar is in column D
=SUM(SUMPRODUCT(--ISNUMBER(SEARCH("*berry",A3:A7))*((B2:D2="Jan") +(B2:D2="Mar")) *B3:D7))
....why not put your data into a format that can be used by a Pivot Table driven by a Slicer or two. You'll then have a far more flexible analysis tool and won't need any formulae
Formula
HTML Code:
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks