I want to create a sort of do-loop that would go through the entire steps within the macro once for when countnew <10 and then creates a seperate dataset for when countnew <10 for each state....And then does the same thing for when it's 20, 30, 40, until 70. So at the end I will have 7 differenct datasets for each state.