SUMIF with double conditional

Growlithe

New Member
Joined
Sep 11, 2017
Messages
1
Hey everybody,

I've been racking my brain around this for a few hours now and just cant seem to come up with the answer, was hoping someone here may have a better idea than me.

Essentially, I have a database where I need to SUM a range IF the criteria in two cells of two columns are met, however these are variable.

Example below:


ABCDEFG

<tbody>
</tbody>
First nameLast Name IrrelevantIndividual ValueIrrelevantIrrelevantIrrelevant details
ABCDWZYZ9181275date heredate hereDetails 12345678910
ABCDWZYZ20907434date heredate hereDetails 12345678910
ABCDWZYZ198214440date heredate hereDetails 12345678910
ERTYKJHG245810017date heredate hereDetails 12345678910
ERTYKJHG16916622date heredate hereDetails 12345678910
ERTYKJHG47913841date heredate hereDetails 12345678910
VBNKFGHJ35513947date heredate hereDetails 12345678910
VBNKFGHJ12456083date heredate hereDetails 12345678910
VBNKFGHJ187714466date heredate hereDetails 12345678910
VBNKFGHJ21501476date heredate hereDetails 12345678910
VBNKFGHJ14981024date heredate hereDetails 12345678910
VBNKFGHJ293115999date heredate hereDetails 12345678910
VBNKFGHJ26131091date heredate hereDetails 12345678910
VBNKFGHJ24610351date heredate hereDetails 12345678910
VBNKFGHJ18573900date heredate hereDetails 12345678910
ERTYUTHJM9005565date heredate hereDetails 12345678910
ERTYUTHJM175412680date heredate hereDetails 12345678910
ERTYUTHJM3028749date heredate hereDetails 12345678910
ERTYUTHJM22621590date heredate hereDetails 12345678910
ERTYUTHJM223713887date heredate hereDetails 12345678910
ERTYUTHJM153314075date heredate hereDetails 12345678910
ERTYUTHJM23781904date heredate hereDetails 12345678910

<tbody>
</tbody>


So, essentially, I need to SUM G each time the corresponding A and or B changes value.
So here Id SUM G2:4 and then 6:8 etc...
Just to make things that bit more difficult the first and last names here will pop up again in random combinations with each and others further down the list.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
G doesn't actually contain "summable" data, so I assumed that was dummy/sample data?

Try this, it will create a running total by name...
H2=IF(A2="","",SUMIFS($G$2:G2,$A$2:A2,A2,$B$2:B2,B2))
copied down
 
Upvote 0

Forum statistics

Threads
1,215,527
Messages
6,125,337
Members
449,218
Latest member
Excel Master

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