SUMIFS Criteria

pauleapo

Board Regular
Joined
Nov 23, 2005
Messages
76
Office Version
  1. 365
Platform
  1. Windows
Hello everyone,

I have the following formula which calculates volumes of materials based on a product, the final part of the formula which needs to equal the word 'timber' also needs to calculate if the value is 'wood'. So it needs to have either 'Timber' OR 'Wood'

Code:
=SUMIFS($E$12:$E$404,$B$12:$B$404,$AJ13,$M$12:$M$404,$U$12,$O$12:$O$404,$S$12,$J$12:$J$404,"Timber")

I really hope this makes sense and someone can assist me with this, MrExcel forums have not failed me in the past :)

Thanks in advance for any replies

Paul
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Do you want the sum of timber and wood, or timber or wood? as in can timber and wood be in $J$12:$J$404 at the same time? do you want to differentiate between timber and wood? can you change the "Timber" in the formula to a cell reference so you can change it when needed ?
 
Upvote 0
Barry,

Thanks for the quick reply, Timber and Wood are to be classed as the same product so the sum would need to add any cell in the range that has either timber OR wood. Yes timber and wood can be in the range $J$12:$J$404
 
Upvote 0
=SUM(SUMIFS($E$12:$E$404, $B$12:$B$404, $AJ13, $M$12:$M$404, $U$12,$O$12:$O$404, $S$12, $J$12:$J$404, {"Timber","Wood"}))
 
Upvote 0

Forum statistics

Threads
1,215,459
Messages
6,124,944
Members
449,198
Latest member
MhammadishaqKhan

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