I would like to create a formula which returns a value in the same row as the last letter in a column (column A). An example of the data is shown below. In this case the last "G" is found in cell A6. I would like to return the corresponding "End" value (column E), in this case "0.1".
Good RefDist Dist Start End
3.323 0 0 0.02
G 3.343 0.02 0.02 0.04
G 3.363 0.04 0.04 0.06
G 3.383 0.06 0.06 0.08
G 3.403 0.08 0.08 0.1
3.423 0.1 0.1 0.12
3.443 0.12 0.12 0.127
The data will be in a series of other worksheets (each with a different number of rows of data and a different number of rows with "G"' but the same number of columns as shown in the example). There will be one reporting worksheet so I will require a reference to the other worksheets - I am thinking perhaps an indirect function could do this. The reporting worksheet will have a list of the different data worksheets.
I thought the formula in the reporting worksheet would start something like:
=INDIRECT($C1&"!E"& and so on ...
where $C1 refers to the name of a data worksheet
and E refers to the column in the data worksheet with the "End" data in it
I was thinking the formula may end with means to refer to the last row with a "G" in it (maybe a ROW function combined with a LOOKUP function).
Any help would be appreciated thanks
Bookmarks