M
MR
Hi,
Having a bit of difficulty constructing a formula to work out the
following:
We have a table of dates and a 'category' roughly as follows:
Start Date # End Date # Category
Date 1 # Date 2 # A
Date 3 # Date 4 # A
Date 5 # Date 6 # B
Date 7 # Date 8 # B
And so on. These dates will be in time order, so that Date 1 is the
earliest, then Date 2, then Date 3, etc.
Then we have a column of dates which can vary, so:
Sample Date
Date A
Date B
Date C
We would expect these also to be in time order, but may not always be.
What we are looking for is a formula to take the SAMPLE DATE, locate
which of the START DATE and END DATE ranges this falls in between, and
then return the vlaue from the CATEGORY column.
If the SAMPLE DATE does not fall between any of the given date ranges
it would have to return a blank value such as 'None' or whatever.
I have had a google and the closest thing I could find was:
http://tinyurl.co.uk/ebg3
But I tried altering this and could not get it to work.
Thanks for any help!
MR
Having a bit of difficulty constructing a formula to work out the
following:
We have a table of dates and a 'category' roughly as follows:
Start Date # End Date # Category
Date 1 # Date 2 # A
Date 3 # Date 4 # A
Date 5 # Date 6 # B
Date 7 # Date 8 # B
And so on. These dates will be in time order, so that Date 1 is the
earliest, then Date 2, then Date 3, etc.
Then we have a column of dates which can vary, so:
Sample Date
Date A
Date B
Date C
We would expect these also to be in time order, but may not always be.
What we are looking for is a formula to take the SAMPLE DATE, locate
which of the START DATE and END DATE ranges this falls in between, and
then return the vlaue from the CATEGORY column.
If the SAMPLE DATE does not fall between any of the given date ranges
it would have to return a blank value such as 'None' or whatever.
I have had a google and the closest thing I could find was:
http://tinyurl.co.uk/ebg3
But I tried altering this and could not get it to work.
Thanks for any help!
MR