filter by begaining of each first month till end

excelNewbie22

Well-known Member
Joined
Aug 4, 2021
Messages
534
Office Version
  1. 365
Platform
  1. Windows
hi!
Excel Formula:
=SORT(FILTER(M2:M60,(NOT(ISNUMBER(XMATCH(M2:M60,C3:C22)))*(M2:M60<>""))))
i have this list of names in column M,
and a shorter list of names in column c,
and i subtract the lists,
the thing is the list in column c is part of a table goes by date (in col A)
i want to add to the filter, also by date,
but a dynamic one,
from the first of each month to it's end, without specific beginning or end (like 1/9/24 and 30/9/24),
is it possible?

p.s maybe add an option to edit the title? i misspell it and can't fix it
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Could you please post a sample of how your data is structured and how should the desired output look like?
 
Upvote 0
ok, changed the cloumns,
i want to modify the formula in f2 for filtering also, by current month,
so, if we are in september, i want all those who didn't paid yet from 1/9/2024 to 30/9/2024, without telling the formula specific date (like 1/9/24 and etc)

add one column (g) (not a must for me but optionally): another filter formula which can filter by specific month only?

sheet1
ABCDEFG
1NAMESdatepaiddidn't paid for current monthpaid in augost
2joe28/08/2024joeabe
3jack01/09/2024roycharlie
4abe09/09/2024jamesjack
5charlie10/09/2024bettirosa
6betti15/09/2024
7roy22/09/2024
8rosa01/10/2024
9james10/10/2024
10
test
Cell Formulas
RangeFormula
F2:F5F2=SORT(FILTER(A2:A60,(NOT(ISNUMBER(XMATCH(A2:A60,D2:D21)))*(A2:A60<>""))))
Dynamic array formulas.
 
Upvote 0
As for the former question please test the following if it serves the purpose:

Excel Formula:
=SORT(FILTER(A2:A60,NOT(ISNUMBER(XMATCH(A2:A60,D2:D21)))*(A2:A60<>"")*(B2:B60>=EOMONTH(TODAY(),-1)+1)*(B2:B60<=EOMONTH(TODAY(),0)))))

As far as the latter is concerned it is doable but a) how is the formula for those who paid constructed, i.e. how to identify them and b) do would you prefer to select a month - e.g. within the formula or within some cells?
 
Upvote 0
thanks sofia, but this isn't it:
i updated the table for more clarity (or for fixing my explaining last time)

test
ABCDEFGH
1full list of namesnames who paid -> by datedate paiddidn't paid this monthshould bebecause
2joejack28/08/2024abejoestill didn't pay this month = septemberr
3jackcharlie01/09/2024jackpaid only in august
4aberoy22/09/2024abestill didn't pay this month = septemberr
5charlierosa29/08/2024bettistill didn't pay this month = septemberr
6bettijames30/08/2024rosapaid only in august
7royjamespaid only in august
8rosa
9james
test
Cell Formulas
RangeFormula
F2F2=SORT(FILTER(A2:A60,NOT(ISNUMBER(XMATCH(A2:A60,C2:C21)))*(A2:A60<>"")*(D2:D60>=EOMONTH(TODAY(),-1)+1)*(D2:D60<=EOMONTH(TODAY(),0))))



for the second problem:
identify them by the date column,
selecting a month - preferble by cell like i2 or i3 will be presenting the month
test
I
2aug-24
38
test
 
Upvote 0
Hello again, thanks for the clarification. Hopefully this will work:

1)

Excel Formula:
=LET(
list,A2:A9,
names,C2:C60,
dates,D2:D60,
a,FILTER(names,(dates>=EOMONTH(TODAY(),-1)+1)*(dates<=EOMONTH(TODAY(),0))),
b,XLOOKUP(list,a,a),
FILTER(list,ISNA(b)))

2)

Excel Formula:
=FILTER(C2:C6,(D2:D6>=EOMONTH(I1,-1)+1)*(D2:D6<=EOMONTH(I1,0)))
 
Upvote 0
Solution

Forum statistics

Threads
1,224,816
Messages
6,181,138
Members
453,021
Latest member
Justyna P

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