Aladin,
With
> =LOOKUP(REPT("z",255),A2:INDEX(A2:A65536,MATCH(REPT("z",255),A2:A65536)))
I get the last value again unless I add a *-1* after the MATCH function:
=LOOKUP(REPT("z",255),A2:INDEX(A2:A65536,MATCH(REPT("z",255),A2:A65536)-1))
My last test data was in row 27 and the MATCH function returned 26. When
the INDEX indexed 26 down from A2 it of course found the last entry in A27.
Actually now that I have selected *Show downloaded messages* I see that
Biff's
reply included the -1. Is it required in you formula or am I missing
something?
--
Regards
Sandy
[email protected]
Replace@mailinator with @tiscali.co.uk
"Aladin Akyurek" <[email protected]> wrote in message
news:[email protected]...
> Assuming that the data start at row 2 in column A and the values of
> interest are text...
>
> Last text value:
>
> =LOOKUP(REPT("z",255),A2:A65536)
>
> Next to last value:
>
> =LOOKUP(REPT("z",255),A2:INDEX(A2:A65536,MATCH(REPT("z",255),A2:A65536)))
>
> This formulas would return a formula-blank (i.e., "") if such is the last
> (or the next-to-last value).
>
> Teri wrote:
>> I must set up a spreadsheet and extract the last and next-to-last entries
>> in certain columns. Those values will be linked to another sheet in the
>> workbook entitled "Summary". The columns are set up as shown below. I
>> have a second set of columns which are from 14:00 Friday July 29 through
>> 8:00 Saturday July 30. I know this is a lot of info, but I'm such a
>> novice at this. Any help would be greatly appreciated!
>> City Mile Marker Odometer
>> 19:00 Thursday July 28
>> 20:00 Thursday July 28
>> 21:00 Thursday July 28
>> 22:00 Thursday July 28
>> 23:00 Thursday July 28
>> 24:00 Thursday July 28
>> 01:00 Friday July 29
>> 02:00 Friday July 29
>> 03:00 Friday July 29
>> 04:00 Friday July 29
>> 05:00 Friday July 29
>> 06:00 Friday July 29
>> 07:00 Friday July 29
>> 08:00 Friday July 29
>> 09:00 Friday July 29
>> 10:00 Friday July 29
>> 11:00 Friday July 29
>> 12:00 Friday July 29
>> 13:00 Friday July 29
>>
>
> --
>
> [1] The SumProduct function should implicitly coerce the truth values to
> their Excel numeric equivalents.
> [2] The lookup functions should have an optional argument for the return
> value, defaulting to #N/A in its absence.
Bookmarks