Conditionally sum multiple values

Jedi Master

Board Regular
Joined
Jun 10, 2024
Messages
70
Office Version
  1. 365
Platform
  1. Windows
Good Day Everyone. This is probably a simple answer, but my brain is exhausted, so I am turning to you all for some guidance. I have a master worksheet that looks like the below:
1721239716088.png

The formula in cell O30 is:
=IF(A30="","",SUMIF('Change Order Worksheet'!B30:B39,'Change Order Master'!B30,'Change Order Worksheet'!O30:O39)+SUMIF('Change Order Worksheet (2)'!B30:B39,'Change Order Master'!B30,'Change Order Worksheet (2)'!O30:O39)+SUMIF('Change Order Worksheet (3)'!B30:B39,'Change Order Master'!B30,'Change Order Worksheet (3)'!O30:O39)+SUMIF('Change Order Worksheet (4)'!B30:B39,'Change Order Master'!B30,'Change Order Worksheet (4)'!O30:O39)+SUMIF('Change Order Worksheet (5)'!B30:B39,'Change Order Master'!B30,'Change Order Worksheet (5)'!O30:O39)+SUMIF('Change Order Worksheet (6)'!B30:B39,'Change Order Master'!B30,'Change Order Worksheet (6)'!O30:O39)+SUMIF('Change Order Worksheet (7)'!B30:B39,'Change Order Master'!B30,'Change Order Worksheet (7)'!O30:O39)+SUMIF('Change Order Worksheet (8)'!B30:B39,'Change Order Master'!B30,'Change Order Worksheet (8)'!O30:O39)+SUMIF('Change Order Worksheet (9)'!B30:B39,'Change Order Master'!B30,'Change Order Worksheet (9)'!O30:O39)+SUMIF('Change Order Worksheet (10)'!B30:B39,'Change Order Master'!B30,'Change Order Worksheet (10)'!O30:O39))

Each of the 10 change order worksheets has a Yes/No value in cell P13:
1721239903239.png


In the formula above, how do I include only the values from the individual 10 worksheets if the value of P13 is Yes?
 

Attachments

  • 1721239690027.png
    1721239690027.png
    92.7 KB · Views: 2

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
How about
Excel Formula:
=IF(A30="","",if('Change Order Worksheet'!P13="yes",SUMIF('Change Order Worksheet'!B30:B39,'Change Order Master'!B30,'Change Order Worksheet'!O30:O39),0)+if('Change Order Worksheet (2)'!P13="yes",SUMIF('Change Order Worksheet (2)'!B30:B39,'Change Order Master'!B30,'Change Order Worksheet (2)'!O30:O39),0)+...
 
Upvote 1
Solution
How about
Excel Formula:
=IF(A30="","",if('Change Order Worksheet'!P13="yes",SUMIF('Change Order Worksheet'!B30:B39,'Change Order Master'!B30,'Change Order Worksheet'!O30:O39),0)+if('Change Order Worksheet (2)'!P13="yes",SUMIF('Change Order Worksheet (2)'!B30:B39,'Change Order Master'!B30,'Change Order Worksheet (2)'!O30:O39),0)+...
Thank you so much!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Fluff, I dont want to break any rules or do things the wrong way, so that is the context when I ask, can I post another question having to do with this in this thread? I know youve helped me quite a bit with this and you understand it pretty well which is why I am asking to do it this way, as the question I need to post is related to this thread, or should I make a new thread with my related question?
 
Upvote 0
Probably best to start a new thread.
 
Upvote 1

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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