seeking assistance for Ms Excel functions to work out breakdown per month, the number of products in a monthly total

qeteshdlwy

New Member
Joined
Aug 27, 2014
Messages
2
HI there

I am trying to figure out how I can use the Ms Excel functions to work out a breakdown of the items in the table.

ABC
1Dateproduct typequantity
21/11/2013chair1
31/11/2013chair1
412/11/2013chair1
517/11/2013stool2
629/11/2013stool6
730/11/2013chair1
89/12/2013stool1
917/12/2013stool1
1023/12/2013stool3
1123/12/2013stool1
1230/12/2013chair2
1330/12/2013chair1
143/1/2014chair1
156/1/2014chair1
166/1/2014stool1
1719/1/2014stool3
1826/1/2014stool1
1931/1/2014chair1
201/2/2014chair1
214/2/2014chair1
224/2/2014chair1
238/2/2014chair2
2417/2/2014stool1
2520/2/2014stool1
2623/2/2014chair1
2724/2/2014chair4

<tbody>
</tbody>

Basically I want to obtain the breakdown per month, the number of chairs and stools in a monthly total.

· IF “chair” and “stool” fall with February 2014, to calculate the relating value in C.
· IF “chair” and “stool” fall with November 2013, to calculate the relating value in C.

It has been a challenge for me and I have tried:
=SUMIF(B2:B27,"chair", C2:C27)
And only been able to calculate the number of chairs only, but couldn’t find a way to add the condition to include both “chair” and “stool”.

I have also tried:
=SUMPRODUCT((YEAR(A2:A27)=2014)+0,(MONTH(A2:A27)=2)+0,(C2:C27="chair")+0)
Which only did a count of occurrences of “chair” in B, in the specified month and year.

<tbody>
</tbody>

I hope someone can guide me in working this out.
Your kind assistance and very much appreciated.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Welcome to MrExcel.

Try:

=SUMPRODUCT(--(YEAR(A2:A27)=2014),--(MONTH(A2:A27)=2),((B2:B27="chair")+(B2:B27="stool")),C2:C27)

The + behaves like OR.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,853
Members
449,051
Latest member
excelquestion515

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