Sum one column based on numerous text values in another

RodneyC

Active Member
Joined
Nov 4, 2021
Messages
278
Office Version
  1. 2016
Platform
  1. Windows
In cell D4 of a tab named ALL I need a formula that will look in a tab named WO and sum all the values on M3:M86114 if and only if the values in J3:J86114 include the text Green Peas. For clarity, the values may be Green Peas Boiled or Green Peas Fried or Green Peas Steamed. I need to include everything Green Peas.

Here's where I've started

=SUMIFS(WO!M3:M86114,WO!J3:J86114 but I have no idea where to go from here.

ALSO since the data will change each month, therefore the number of lines will change, I can use M:M and J:J and not reference line numbers?

Thank you in advance
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
You can use:

Excel Formula:
=SUMIFS(WO!M:M,WO!J:J,"*green peas*")
 
Upvote 0
Solution
How about
Excel Formula:
=SUMIFS(WO!M:M,WO!J:J,"Green Peas*")
 
Upvote 0
DANG! You guys are good and quick. I took what Rory did since it was first in line and it worked. Thank you all
 
Upvote 0
Glad we could help & thanks for the feedback.

FYI Rory's will find anything that contains Green peas, whilst mine will only find cells that start with Green peas.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top