Sum Data with Column & Row Conditions

mbshafe

Board Regular
Joined
Apr 14, 2011
Messages
54
I have an array of data that looks something like this:

Type Bought Cost

Apples Today $2
Bananas Today $5
Grapes Last Week $3
Apples Yesterday $2.50
Oranges Today $1.50
Apples Last Week $4
Bananas Yesterday $3.50
Apples Today $3.25

I want to have an array that looks something like this:

Type Today Yesterday Last Week
Apples $5.25 $2.50 $4
Bananas $5 $3.50 0
Grapes 0 0 $3
Oranges $1.50 0 0

Could someone please suggest a formula for, say, "apples bought today"? TIA, Mike
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try

{=SUM(IF(A1:A12="Apples",IF(B1:B12="Today",C1:C12,0),0))}

You will to pres ctrl, shift & return once typed to get the formula (an array formula) to work.
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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