Thinking that indirect should work

B

Brad

What I want to do in the formula below is to have the $F$4 be variable going
from F4 to F369 (and yes $B$4 will have to changes as well)

=SUMPRODUCT($F$4:$F$370,--(MONTH($B$4:$B$370)=$O14))

Tried a couple of times and couldn't make it work- what do you recommend?
Thanks in advance
 
B

Brad

I don't know what I was doing wrong before but

=SUMPRODUCT((INDIRECT("F"&R5)):$F$370,--(MOD((INDIRECT("B"&R5)):$B$370,7)=$O6))/SUMPRODUCT(--($F$4:$F$370>0),--(MOD($B$4:$B$370,7)=$O6))

Works
 

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

Top