Is that 7 days BEFORE or AFTER the other date?
Can you clarify what columns each of these things is in, so we can tailor our response to your data structure?
Actually, it might be best to see a sample of your data so we can see how it is all laid out.
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here:
XL2BB Add-in
Note that there is also a "
Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.