I have a table with info on what state a given item is in at a specific point in time.
-----------------------------------------------------
Item | State | Start Date of State
------------------------------------------------------
Item1 | Not started | 2013-jan-1
Item1 | Being prepared | 2013-feb-5
Item1 | Online | 2013-mar-10
Item2 | Not started | 2013-jan-15
Item2 | Being prepared | 2013-mar-8
--------------------------------------------------------
“Item1” was in the “Being prepared” state in the interval 2013-jan-1 to 2013-feb-4 etc.
I would like a function that returns the State given Item name and a date as parameter.
I usually handle stuff like this by use of vlookup() og match(index()), but I can’t get a hang of it since the data given as parameter will normally not have an exact match in the data set.
Is it possible to come up with a function without having to use VBA?
... and if not, can someone help never-used-VBA-before with some simple VBA code for it?
Any help is much appreciated
tanjan
(My first post so I hope I have done it correctly)
-----------------------------------------------------
Item | State | Start Date of State
------------------------------------------------------
Item1 | Not started | 2013-jan-1
Item1 | Being prepared | 2013-feb-5
Item1 | Online | 2013-mar-10
Item2 | Not started | 2013-jan-15
Item2 | Being prepared | 2013-mar-8
--------------------------------------------------------
“Item1” was in the “Being prepared” state in the interval 2013-jan-1 to 2013-feb-4 etc.
I would like a function that returns the State given Item name and a date as parameter.
I usually handle stuff like this by use of vlookup() og match(index()), but I can’t get a hang of it since the data given as parameter will normally not have an exact match in the data set.
Is it possible to come up with a function without having to use VBA?
... and if not, can someone help never-used-VBA-before with some simple VBA code for it?
Any help is much appreciated
tanjan
(My first post so I hope I have done it correctly)