SUMIF function

shaggy31

Board Regular
Joined
May 6, 2009
Messages
64
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have an inventory list in Excel in which I keep an income/outcome of goods, it looks like this:

1682603769495.png


Now, I would like to add a new sheet in which I would have a recapitulation of income and outcome of goods per item per month. Something like this (may the numbers in the photo are wrong but you get an idea what I mean):

1682603860203.png


I suppose i need to use a IF command also but I don't know how to set it when dates are in question.

Best regards,
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Perhaps try a pivot Table and group dates by month?
 
Upvote 0
Hi!

Pivot table could work. I don't have much experience with it but I have just tried it after your suggestion. The problem is that the data is sorted per day as in the table and I would like to summarize the quantity of the same article from the same month in one value.
 
Upvote 0
mr excel questions 29.xlsm
ABCDEFGHIJKL
1Inventory CodeArticle NameQtyInvoice No.DateFormula Cross Tab:
2Code_1Article_1-6xxx2023-01-05JanuaryFebruaryMarch
3Code_2Article_2-2xxx2023-01-05Code_1-6-70
4Code_3Article_3-6xxx2023-01-05Code_2-200
5Code_4Article_4-6xxx2023-01-05Code_3-60-7
6Code_5Article_5-6xxx2023-01-05Code_4-60-7
7Code_6Article_6-6xxx2023-01-05Code_5-6570143
8Code_5Article_5570yyy2023-02-10Code_6-600
9Code_1Article_1-7www2023-02-15Code_7000
10Code_3Article_3-7zzz2023-03-02Code_8000
11Code_4Article_4-7zzz2023-03-02Code_9000
12Code_5Article_5-7zzz2023-03-02Code_10000
13Code_12Article_12-7@@@2023-03-18Code_11000
14Code_5Article_5150§§§2023-03-25Code_1200-7
15
16PIVOT TABLE:
17
18Sum of Qty
19Row LabelsJanFebMar
20Code_1-6-7
21Code_12-7
22Code_2-2
23Code_3-6-7
24Code_4-6-7
25Code_5-6570143
26Code_6-6
27
28
Sheet1
Cell Formulas
RangeFormula
J2J2=DATE(2023,1,1)
K2:L2K2=EDATE(J2,1)
J3:L14J3=SUM((--(J$2=(($E$2:$E$14)-(DAY($E$2:$E$14))+1)))*(--($I3=$A$2:$A$14))*($C$2:$C$14))
 
Upvote 0
Hi!

Pivot table could work. I don't have much experience with it but I have just tried it after your suggestion. The problem is that the data is sorted per day as in the table and I would like to summarize the quantity of the same article from the same month in one value.


@shaggy31 Some versions of excel pivot tables have the ability to choose the month from the date in the pivot table dialog window. It is a good idea to put your excel version in your profile so it shows up on your profile button.

The two suggestions i give above only us the month of the date. Even in the formula crosstab I am using full dates as the column headers.
And to select for the dates from the data the calculation converts the actual date to the first of each month to compare to the column header.
 
Upvote 0
Upvote 0
Solution
mr excel questions 29.xlsm
ABCDEFGHIJKL
1Inventory CodeArticle NameQtyInvoice No.DateFormula Cross Tab:
2Code_1Article_1-6xxx2023-01-05JanuaryFebruaryMarch
3Code_2Article_2-2xxx2023-01-05Code_1-6-70
4Code_3Article_3-6xxx2023-01-05Code_2-200
5Code_4Article_4-6xxx2023-01-05Code_3-60-7
6Code_5Article_5-6xxx2023-01-05Code_4-60-7
7Code_6Article_6-6xxx2023-01-05Code_5-6570143
8Code_5Article_5570yyy2023-02-10Code_6-600
9Code_1Article_1-7www2023-02-15Code_7000
10Code_3Article_3-7zzz2023-03-02Code_8000
11Code_4Article_4-7zzz2023-03-02Code_9000
12Code_5Article_5-7zzz2023-03-02Code_10000
13Code_12Article_12-7@@@2023-03-18Code_11000
14Code_5Article_5150§§§2023-03-25Code_1200-7
15
16PIVOT TABLE:
17
18Sum of Qty
19Row LabelsJanFebMar
20Code_1-6-7
21Code_12-7
22Code_2-2
23Code_3-6-7
24Code_4-6-7
25Code_5-6570143
26Code_6-6
27
28
Sheet1
Cell Formulas
RangeFormula
J2J2=DATE(2023,1,1)
K2:L2K2=EDATE(J2,1)
J3:L14J3=SUM((--(J$2=(($E$2:$E$14)-(DAY($E$2:$E$14))+1)))*(--($I3=$A$2:$A$14))*($C$2:$C$14))
Thanks! This is a little to complicated for me... :)
I solved it with Pivot table and grouping by month.
 
Upvote 0
Thanks! This is a little to complicated for me... :)
I solved it with Pivot table and grouping by month.

I only did the formula crosstab to give you verification that the grouping by months in pivot tables work. I did not expect you to choose that solution (it also has extraneous records which you probably would not want).

I'm happy you found a solution.

Best Wishes!
 
Upvote 0

Forum statistics

Threads
1,214,805
Messages
6,121,664
Members
449,045
Latest member
Marcus05

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