I have a fleet service scheduler on a spreadsheet that resembles a year-planner. To get it to do what I want I'd have to have a vast number of cells each containing IF statements which is stupid to say the least and unwieldy at best.
Scheduled vehicle services are marked in date headed columns with the letter "S" entered into the cell, once completed this is manually changed to a "C" leaving the remaining "S" cells alone.
Vehicle 12/07 13/07 14/07
ABC 123 C C S
DEF 456 C S S
XYZ 999 S S S
Using a straightforward LOOKUP I can always return the Cell address (or an OFFSET based on it) of the last incidence of "C" in a row, but I cannot seem to find a way of returning the Cell address of the next (ie first) incidence of "S" in the row.
eg within the range above I should return D2 for Row B2
2, C3 for B3
3 and B4 for B4
4. If I changed B4 to "C" the result should then return C4.
I'm sure I'm missing something really basic but I'm going round in circles with this one (could be the weather here ATM). Can someone help point me in the right direction please ?
thanks
Jonsi
Scheduled vehicle services are marked in date headed columns with the letter "S" entered into the cell, once completed this is manually changed to a "C" leaving the remaining "S" cells alone.
Vehicle 12/07 13/07 14/07
ABC 123 C C S
DEF 456 C S S
XYZ 999 S S S
Using a straightforward LOOKUP I can always return the Cell address (or an OFFSET based on it) of the last incidence of "C" in a row, but I cannot seem to find a way of returning the Cell address of the next (ie first) incidence of "S" in the row.
eg within the range above I should return D2 for Row B2
I'm sure I'm missing something really basic but I'm going round in circles with this one (could be the weather here ATM). Can someone help point me in the right direction please ?
thanks
Jonsi