Sum of Rows based on Criteria of another cell

sahaider

New Member
Joined
May 30, 2014
Messages
35
10
1
15
0
20
1
10
0
25
1
10
0

<tbody>
</tbody>
Hello ,

I have two column of data. In first column I have data i each row. In 2nd column i have data (=1)in selected rows. I want to sum entries in first column based on entries in rows of the 2nd columns where data =1. I data =blank then exclude that row from summation.

Pleas advise.

Regards
Syed
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
How about


Excel 2013/2016
ABCD
1101
2150
320155
4100
5251
6100
Data
Cell Formulas
RangeFormula
D3=SUMIF(B1:B6,1,A1:A6)
 
Upvote 0
How about

Excel 2013/2016
ABCD
1101
2150
320155
4100
5251
6100

<colgroup><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Data

Worksheet Formulas
CellFormula
D3=SUMIF(B1:B6,1,A1:A6)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

hello Fluff,

Thanks.
Regards
Syed
 
Upvote 0

Forum statistics

Threads
1,215,039
Messages
6,122,802
Members
449,095
Latest member
m_smith_solihull

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