Multi-cell array

N

nobody

Ok, what am I doing wrong. I am trying to use an array function to find out
what the average % D is of C for a name in cell e1 between 7/7 and 7/9

A B C D E
date name totala totalb JOE
7/7 JOE 100 20 7/7 (START DATE)
7/7 SAM 100 15 7/9 (END DATE)
7/7 BARB 100 35
7/8 JOE 90 9
7/8 SAM 100 17
7/9 JOE 100 23

{=MAX(IF((E1=B2:B7)*(E2>=A2:A7)*(E3<=A2:A7),(SUM(D2:D7)/SUM(C2:C7)))))}

I am not getting any errors, just no data.

Any ideas?

Thanks
 
O

Otto Moehrbach

Nobody
The formula you have, as written, is not a formula. It is text because
the first character is {. I didn't get into your formula, but if it is an
array formula, write it without the {} and do Ctrl-Shift-Enter instead of
just Enter. Excel will add the {}. HTH Otto
 
N

nobody

I understood that the{ } were added by XL - I was just expressing that it
was an array formula, with the appropriate ctrl-shift-enter - I guess I
didn't amke that clear -

Anyway, I got it to work with the following array formula ({ } omitted for
clarity)

=SUMPRODUCT(IF((E3=B2:B7)*(E3<=A2:A7)*(E3>=A2:A7),(D2:D7)/SUMPRODUCT(IF((E3=
B2:B7)*(E3<=A2:A7)*(E3>=A2:A7),(C2:C7)))

Seems like I had the <> turned around - always the simple mistakes that bite
you the worst. Thank you for your suggestion though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Average Question 2
Simple Calculation Bug 1
Sum of Variable Cells in a fixed Row 3
Odd behaviour: A bug? 6
1 VLOOKUP question 3
INCORRECT RESULT FROM NESTED INDEX ? 2
Average problem 1
Totals in pivottable 0

Top