I decided to create an alternative post on this Formula board to help eliminate confusion which may come from the VBA-related post it was sourced from.
This is the post where I extracted this from: http://www.excelforum.com/excel-prog...eted-date.html and put a note in there to reference to this board, to eliminate double-posting.
========================================================
I've run into a problem with the formula which I adapted from tigeravatar's post#6 suggestion in that referenced post.
The formula in A3 of Assignment Schedule is intended to show the next assignment I need to work. The assignment with the nearest (to Today) 'Trial Date", with no date in the "Supplement Date" column, and either marked as a C or R in the "Test for Comm or Rez" column, depending on the reference selected in C3 of the Assignment Schedule worksheet.
Here is a view of what a good result of the formula looks like and what you will see when you first open the test workbook:
good result1.jpg
I am using the same formula for the B3 cell but Indexing to the CauseNum column on Data dump.
If I can fix the formula for the Cause Name, I can apply the same fix for the B3 version.
I've attached a test workbook with the formula which should fail if you will do this:
On Data dump, enter today's date in F14, clearing CFT as the next case to work.
Trustees Maritime Assn should show as the next case to work since its Supplement Date is empty, yet you should see the #NA error in A3.
Now, change the date in Data dump B15 to 1/9/2017 and you should see Trustees Maritime as the next case to work in A3.
Toggle back 'n forth between the 1/9/17 and 1/16/17 dates in Data dump B15 to see it switch from error to good result.
What is wrong with the formula? Or is something wrong with the column references?
Again, this has been working perfectly for two weeks worth of use until I came to a case with a two-digit day for the Trial Date instead of a one-digit day. I can't imagine that is the issue, but that is a strange behavior.
Let me know what you think.
Frustrated,
Delain
Bookmarks