get row by month them if one of two has data

Vince549

New Member
Joined
Jan 6, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I have a large data set a sample of which is below. I need to first put each month from column A on a different tab. Then only show the rows where there is data in column C or E. The person requesting does not want a pivot table and with almost a million rows of data I can't do it manually. Any ideas or direction would be greatly appreciated. Thank you for any help.

1641478894469.png
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
I can't say how this will perform with a million lines of data. And if you are looking for something that will make the different sheets for the new months, that will take a VBA. But if you can make the new month sheets when you need them, this could be helpful. It's more convoluted that it might need to be - but I'm assuming the date in column a might not always be the first of the month.
MrExcelPlayground6.xlsx
ABCDEFGHIJKLMNOPQRST
1Month/YearInvoiceIDNotPaidPaidPaymentDueVoidedNew Sheeet for November 2020New Sheet for December 2020
2Mar-212060033
3Nov-2020601100Nov-20Dec-20
4Nov-2020602100Nov-202061050000Dec-2020628140000
5Nov-2020603110Nov-2020621000280Dec-2020631000140
6Nov-2020604120
7Nov-2020605130
8Nov-2020606140
9Nov-2020607150
10Nov-2020608160
11Nov-2020609170
12Nov-202061050
13Nov-2020611190
14Nov-2020612200
15Nov-2020613210
16Nov-2020614220
17Nov-2020615230
18Nov-2020616240
19Nov-2020617250
20Nov-2020618260
21Nov-2020619270
22Nov-2020620280
23Nov-2020621280
24Nov-2020622280
25Nov-2020623280
26Nov-2020624280
27Nov-2020625280
28Nov-2020626280
29Dec-2020627280
30Dec-2020628140
31Dec-2020629140
32Dec-2020630140
33Dec-2020631140
34Dec-2020632140
35Dec-2020633140
36Dec-2020634140
37Dec-2020635140
38Dec-2020636140
39Jan-2120637140
40Jan-2120638140
41Jan-2120639140
42Jan-2120640140
43Jan-2120641150
44Jan-2120642140
45Jan-2120643140
Sheet6
Cell Formulas
RangeFormula
H4:M5H4=FILTER(A2:F45,(MONTH(A2:A45)=MONTH(H3))*(YEAR(A2:A45)=YEAR(H3))*((C2:C45<>"")+(F2:F45<>"")),"")
O4:T5O4=FILTER(A2:F45,(MONTH(A2:A45)=MONTH(O3))*(YEAR(A2:A45)=YEAR(O3))*((C2:C45<>"")+(F2:F45<>"")),"")
Dynamic array formulas.
 
Upvote 0
Solution
I can't say how this will perform with a million lines of data. And if you are looking for something that will make the different sheets for the new months, that will take a VBA. But if you can make the new month sheets when you need them, this could be helpful. It's more convoluted that it might need to be - but I'm assuming the date in column a might not always be the first of the month.
MrExcelPlayground6.xlsx
ABCDEFGHIJKLMNOPQRST
1Month/YearInvoiceIDNotPaidPaidPaymentDueVoidedNew Sheeet for November 2020New Sheet for December 2020
2Mar-212060033
3Nov-2020601100Nov-20Dec-20
4Nov-2020602100Nov-202061050000Dec-2020628140000
5Nov-2020603110Nov-2020621000280Dec-2020631000140
6Nov-2020604120
7Nov-2020605130
8Nov-2020606140
9Nov-2020607150
10Nov-2020608160
11Nov-2020609170
12Nov-202061050
13Nov-2020611190
14Nov-2020612200
15Nov-2020613210
16Nov-2020614220
17Nov-2020615230
18Nov-2020616240
19Nov-2020617250
20Nov-2020618260
21Nov-2020619270
22Nov-2020620280
23Nov-2020621280
24Nov-2020622280
25Nov-2020623280
26Nov-2020624280
27Nov-2020625280
28Nov-2020626280
29Dec-2020627280
30Dec-2020628140
31Dec-2020629140
32Dec-2020630140
33Dec-2020631140
34Dec-2020632140
35Dec-2020633140
36Dec-2020634140
37Dec-2020635140
38Dec-2020636140
39Jan-2120637140
40Jan-2120638140
41Jan-2120639140
42Jan-2120640140
43Jan-2120641150
44Jan-2120642140
45Jan-2120643140
Sheet6
Cell Formulas
RangeFormula
H4:M5H4=FILTER(A2:F45,(MONTH(A2:A45)=MONTH(H3))*(YEAR(A2:A45)=YEAR(H3))*((C2:C45<>"")+(F2:F45<>"")),"")
O4:T5O4=FILTER(A2:F45,(MONTH(A2:A45)=MONTH(O3))*(YEAR(A2:A45)=YEAR(O3))*((C2:C45<>"")+(F2:F45<>"")),"")
Dynamic array formulas.
Thank you I tried this formula, and it seems to work. I am going to try it on the entire table first, then try it on the larger file. If you don't mind, I'll let you know how it turns out.
 
Upvote 0
Thank you I tried this formula, and it seems to work. I am going to try it on the entire table first, then try it on the larger file. If you don't mind, I'll let you know how it turns out.
I used the formula you gave me and I am only picking up the first column, nothing from the second column.
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,520
Members
449,088
Latest member
RandomExceller01

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