Hi!
Frequently, you post options to others replies and claim that they are more
efficient.
I'm just wondering how you test these for efficiency? Particularly, the
speed of calculation. Do you use some type of benchmarking software or do
you have VBA routines that do this?
I'm always interested in improving my approaches to problems so any insight
you can offer would be greatly appreciated.
Biff
"Aladin Akyurek" wrote in message
...
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(REP T("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.
|