Okay, there might be a more eloquent way to do this but here's what I came up with.
Assuming you are starting your range in K1, the formula would be
Let's start from the end and work forwards....
The MID($E$17,2,5)+ROW()-1 takes the numerical part of what's in E17 and adds the current row # minus 1. So if E17 has C6 in it, and (when you drag the formula down) you're in K2, it'll return 6+2-1 or 7.
The LEFT($E$17,1) & puts the C in front of the numerical value we just discussed. The INDIRECT function says we don't want to treat the result as a value, we want to treat it as a reference (e.g. cell C7) so pull your results from that reference.
Now we want to stop pulling values when we reach the cell in E18, so that's the IF statement and the first part of the statement VALUE(MID($E18,2,5)>=VALUE(MID($E17,2,5)+ROW()-1.
Questions? It could probably be done with VBA or macros more eloquently but that's the formula solution.
ChemistB
Bookmarks