SUMIF "next" MIN... How do you do without macros?

slim6y

Board Regular
Joined
Oct 2, 2012
Messages
78
I'll C&P a small amount of the data below, but this is what I am trying to do.

In column A there is a number between 1.002 and 1.900 which are grouped together. Then in column B there is a 1 or a zero (completely binary).

I want to Sum all the groups' B columns.

So for example, I have 16 lots of 1.010 where a total of 3 is in column B.

Then I want to move straight to 1.020 and get it to sum column B there too. And so on.

I figured I would use something like SUMIF(FILTER(.... But I am unsure how to get it to look for the minimum column A that has not already counted for. I would also like to Print in the column next to my "sumif" the number that is in column A.

Here is a small selection of the data (I have 2547 repetitions).
1.0020
1.0050
1.0051
1.0050
1.010
1.011
1.010
1.010
1.010
1.010
1.010
1.010
1.010
1.010
1.010
1.010
1.011
1.011
1.010
1.010
1.020
1.020
1.020
1.020

<colgroup><col><col></colgroup><tbody>
</tbody>

So the Outcome I would like in separate columns:
1.002 0
1.005 1
1.010 3
etc
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
It's OK, I worked it out :)
Seeing as column A is completely predictable (ie +0.01) I just added 0.01 to Column C. Then Countif and Sumif. Easy enough :)
 
Upvote 0

Forum statistics

Threads
1,214,988
Messages
6,122,620
Members
449,092
Latest member
amyap

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