sumif

Stclements1

Board Regular
Joined
Sep 15, 2018
Messages
158
Office Version
  1. 365
Platform
  1. Windows
I have a job sheet that has a list of jobs to be done.
In cell i20 I have the sum of the costs of all those jobs.
In column M is either 1, if the job has been completed or 0 if the job is still ongoing.
I have formatted the sheet so that when there is a 1 in column M then that row is greyed out.
What I want to do is the value in I20 should no longer count the value in any call in column i if the corresponding cell in column M is 1 and the row has been greyed out.

I have tried countif and sum if, but without any joy.
Any help is much appreciated.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I have a job sheet that has a list of jobs to be done.
In cell i20 I have the sum of the costs of all those jobs.
In column M is either 1, if the job has been completed or 0 if the job is still ongoing.
I have formatted the sheet so that when there is a 1 in column M then that row is greyed out.
What I want to do is the value in I20 should no longer count the value in any call in column i if the corresponding cell in column M is 1 and the row has been greyed out.

I have tried countif and sum if, but without any joy.
Any help is much appreciated.
please provide your formulas and sample data (use a mini-sheet XL2BB if you can)
 
Upvote 0
Try this:
Mr excel questions 55.xlsm
HIM
1Job NmbrCostCompleted
2Job1680
3Job2530
4Job3700
5Job4710
6Job5720
7Job6721
8Job7620
9Job8690
10Job9611
11Job10610
12Job11530
13Job12531
14Job13620
15Job14521
16Job15731
17Job16551
18Job17751
19Job18571
20641
Stclements1
Cell Formulas
RangeFormula
I20I20=SUMIF($M$2:$M$19,0,$I$2:$I$19)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H2:M19Expression=$M2=1textNO
 
Upvote 0
Solution
Many
Try this:
Mr excel questions 55.xlsm
HIM
1Job NmbrCostCompleted
2Job1680
3Job2530
4Job3700
5Job471
Try this:
Mr excel questions 55.xlsm
HIM
1Job NmbrCostCompleted
2Job1680
3Job2530
4Job3700
5Job4710
6Job5720
7Job6721
8Job7620
9Job8690
10Job9611
11Job10610
12Job11530
13Job12531
14Job13620
15Job14521
16Job15731
17Job16551
18Job17751
19Job18571
20641
Stclements1
Cell Formulas
RangeFormula
I20I20=SUMIF($M$2:$M$19,0,$I$2:$I$19)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H2:M19Expression=$M2=1textNO
ra-200|t:fc][XR][XD]H2:M19
Expression=$M2=1textNO
Stclements1
Many thanks your sumif formula worked perfectly
 
Upvote 0

Forum statistics

Threads
1,223,713
Messages
6,174,043
Members
452,542
Latest member
Bricklin

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