View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Compare multiple dates, can enumerate cell based on most recent date

Do you have any rows where every cell is empty?

For example: (I understand that you're counting dates. Dates are really just
numbers formatted to look like a date so the formula will work on the below
example as well as a table full of dates)

...I..........J..........K..........L.....
10........22........14.........57
.........................................
44........19........88.........77

If so, each empty cell will evaluate to being the max value of that
particular row. Empty cells evaluate to 0 and since there is no value higher
than 0, 0 is the max value for that row.

This formula will account for empty cells:

=SUMPRODUCT(--(I3:I7<""),--(I3:I7=SUBTOTAL(4,OFFSET($I3:$L7,ROW(I3:L7)-ROW(I3:L3),,1))))

Biff

"Biff" wrote in message
...
Post the *EXACT* formula you used.

What is your *EXACT* range, I3:L4303 ?

Biff

"Brian" wrote in message
...
Biff,

I tried your formula as well, but didn't get the results I expected.

I adjust it, because I have 4300 values which from row 3 thru row 4303.


"Biff" wrote in message
...
Is that what you formula does?

That's what my formula does. Did you try it?

Biff

"Brian" wrote in message
...
Thanks Pete.

But, I'm not sure that this is doing what I want.
I want to compare the 4 values in each successive rows against the
values in just that row.

Example: I3 thru L3 are compare just against I3 thru L3 and the column
containing the most recent date enumerates, I4 thru L4 are compared
just against I4 thru L4 and the column containing the most recent date
enumerates.

Is that what you formula does?

Thanks,
Brian

"Pete_UK" wrote in message
ups.com...
Try something like this in cell I1:

=COUNTIF(I3:I100,MAX($I$3:$L$3))

then copy to cells J1, K1 and L1. This assumes you will have up to 100
items in each column - adjust to suit.

Hope this helps.

Pete