So I've got this far:
{=IFERROR(INDEX($B$9:$B$496,SMALL(IF($C$9:$C$496>G$507, +IF($C$9:$C$496<g$508,row($b$9:$b$496)-row($b$9)+1)),rows($b$9:$b9))),"")}
We are dealing with a list of Standing Order payments from customers. Each has a different day of the month. I need a way of finding which customers fall into a relevant week.
If you imagine that column B holds names
Column holds C holds the day number
For each week of the year I have the lowest day number in G507 and the highest day number in G508.
So for example if G507 = 7 and G508 = 15 it will return a list of all clients whose standing order day falls within the days numbered 8 - 14.
The above works EXCEPT when it comes to cross overs. So where the week starts on day 30 and ends on day 6...
Any suggestions?</g$508,row($b$9:$b$496)-row($b$9)+1)),rows($b$9:$b9))),"")}
{=IFERROR(INDEX($B$9:$B$496,SMALL(IF($C$9:$C$496>G$507, +IF($C$9:$C$496<g$508,row($b$9:$b$496)-row($b$9)+1)),rows($b$9:$b9))),"")}
We are dealing with a list of Standing Order payments from customers. Each has a different day of the month. I need a way of finding which customers fall into a relevant week.
If you imagine that column B holds names
Column holds C holds the day number
For each week of the year I have the lowest day number in G507 and the highest day number in G508.
So for example if G507 = 7 and G508 = 15 it will return a list of all clients whose standing order day falls within the days numbered 8 - 14.
The above works EXCEPT when it comes to cross overs. So where the week starts on day 30 and ends on day 6...
Any suggestions?</g$508,row($b$9:$b$496)-row($b$9)+1)),rows($b$9:$b9))),"")}