I am trying to search for the closest date value within a table with a couple of other conditionals. The logic is as follows:
Below is what I was attempting and what I'm getting. It seems as though the pattern of the result is correct but something in the formula is not quite right. The result that I want is in column F. Any assistance would be much appreciated! I'm not even sure using the match function is the best option here.
One additional note. I tried converting column D to a short date and that gives the wrong dates.
- If Type = I
- Then Search the rest of the Number column for exact matching numbers
- Only look at Type = O
- Select the date that is closest (selected date should also be greater than what's in column C) as the end result
Below is what I was attempting and what I'm getting. It seems as though the pattern of the result is correct but something in the formula is not quite right. The result that I want is in column F. Any assistance would be much appreciated! I'm not even sure using the match function is the best option here.
One additional note. I tried converting column D to a short date and that gives the wrong dates.