Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Referencing three or more ranges and combining the dates that result

$
0
0

I have this formula that I made that takes a range from a cell (in this case, 10/5 - 10/11), subtracts the dates from that range from a larger list of all remaining days in the year, giving me a list of all dates remaining in the year EXCEPT those between 10/5 and 10/11.

Here is the formula:

=ArrayFormula(FILTER(fullyr!A:A,ISERROR(match(fullyr!A:A,ARRAYFORMULA(TO_DATE(SEQUENCE(RIGHT(C2, SEARCH(" - ",C2))-LEFT(C2, SEARCH(" - ",C2)) +1,1,LEFT(C2, SEARCH(" - ",C2))))),0))))

So now what I'm hoping to be able to do, is have this formula reference multiple cells instead of just one and combine the ranges. So for example, it would reference cells B2, C2 & D2 which would be 9/20 - 10/5, 10/11 - 10/15 & 10/22 - 10/30

Any ideas?


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>