spacebassett
New Member
- Joined
- Jun 30, 2021
- Messages
- 4
- Office Version
- 365
- Platform
- Windows
Hi there,
I can see something similar has been answered before here - How to count unique days in 2 different columns that are within an specific month?.
I've already built multiple spreadsheets however with the following formula though, so hesitant to change it completely unless there's no other option.
=SUMPRODUCT(--(MONTH(ROW(INDIRECT($F15 & ":" & IF($G15="",TODAY(),$G15))))=MONTH(Q$1))
My query is that this has been working fine, except for when it goes over multiple years - is there an easy way of including the year in this calc? For example, this formula will give me the same reponse for days in Jun-20 as it does for Jun-21, because it doesn't seem to be taking the year into account when looking at the two dates.
Hope I'm making sense! Appreciate I may need to ditch this entirely and get my head around the above thread, but thought it was worth asking, in case I could just change the "MONTH" reference to "MONTH-YEAR" or something easy like that
Thanks in advance for access to your brains! I get a headache just reading the solution threads...
Christine
I can see something similar has been answered before here - How to count unique days in 2 different columns that are within an specific month?.
I've already built multiple spreadsheets however with the following formula though, so hesitant to change it completely unless there's no other option.
=SUMPRODUCT(--(MONTH(ROW(INDIRECT($F15 & ":" & IF($G15="",TODAY(),$G15))))=MONTH(Q$1))
My query is that this has been working fine, except for when it goes over multiple years - is there an easy way of including the year in this calc? For example, this formula will give me the same reponse for days in Jun-20 as it does for Jun-21, because it doesn't seem to be taking the year into account when looking at the two dates.
Hope I'm making sense! Appreciate I may need to ditch this entirely and get my head around the above thread, but thought it was worth asking, in case I could just change the "MONTH" reference to "MONTH-YEAR" or something easy like that
Thanks in advance for access to your brains! I get a headache just reading the solution threads...
Christine