Sum with criteria

colinheslop1984

Board Regular
Joined
Oct 14, 2016
Messages
129
Office Version
  1. 2016
I have a table of data which when downloaded from its external source looks a bit like this.

is there a formula that can perform a sumifs when the criteria 1 is in column A running vertical (i.e. the rank numbers) but criteria 2 is also in column a but the word womens, so it needs to add up any data that appears below womens but then stops at mens?

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]rank[/TD]
[TD]style name[/TD]
[TD]qty[/TD]
[TD]value[/TD]
[/TR]
[TR]
[TD]womens[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]poppy[/TD]
[TD]6[/TD]
[TD]377[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]edie[/TD]
[TD]3[/TD]
[TD]180[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]zoe[/TD]
[TD]3[/TD]
[TD]165[/TD]
[/TR]
[TR]
[TD]mens[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]slim straight[/TD]
[TD]3[/TD]
[TD]160[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]pembroke[/TD]
[TD]1[/TD]
[TD]95[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]mayland[/TD]
[TD]1[/TD]
[TD]70[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Can you show what the example output would be for this dataset?

It's not too clear from your question and will help people suggest a solution.
 
Upvote 0

Forum statistics

Threads
1,223,928
Messages
6,175,445
Members
452,642
Latest member
acarrigan

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