I can't seem to remember how to do this. Please take a look at the attached workbook. Column D has numbers that designate the week in which each incident occurred. (Dates in Column N). The "SpinOffWeeks' macro would work fine except that not every week is accounted for. Week 16 is followed by Week 19, Week 19 is followed by Week 21, etc.
The macro as I have it now will handle the Week 16 error, but it bugs on the Week 19 error.
How do I handle the fact that the sought-after number for 'btm' isn't always i + 1?
Set top = Incidents.Columns("D:D").Find(What:=i, After:=[D4], LookIn:=xlValues)
Set btm = Incidents.Columns("D:D").Find(What:=i + 1, After:=[D4], LookIn:=xlValues).Offset(-1, 0)
I need something that will find the next number higher than i, whether it's i + 1 or i + 2 or i +7, etc.
Thanks for solving my day ruiner! Here's to a better tomorrow :- )