M
Matt Knight
Evening everyone, I was urgently trying to get create a formula that
did what I wanted it to do and by trial and error managed to get it.
Only problem is that I think it's far too cumbersome for its own good
and will ultimately slow the performance of my workbook down.
The formula is as follows:
=IF(AND(SUMIF('REVISED ACTIVITY'!$A$11:$A$247,$A12,'REVISED ACTIVITY'!G
$11:G$247),SUMIF('REVISED ACTIVITY'!$B$11:$B$247,$B12,'REVISED
ACTIVITY'!G$11:G$247)),SUMIF('REVISED ACTIVITY'!$A$11:$A
$247,$A12,'REVISED ACTIVITY'!G$11:G$247)*VLOOKUP($A12,'THEATRE USAGE'!
$B$90:$DP$114,HLOOKUP(G$1&$B$9,'THEATRE USAGE'!$D$87:$DO
$88,2,FALSE),FALSE),0)
The VLOOKUP I'm okay with, I think. I could probably INDEX(MATCH())
but the main thing I'm olooking at is the IF,AND,SUMIF parts - I'm
certain here's a more intelligent way of getting the same answer but
can't seem to find it (I did try a sum product with conditions on
Columns A and B but came up short)
Any advice, as always, much appreciated
Matt
did what I wanted it to do and by trial and error managed to get it.
Only problem is that I think it's far too cumbersome for its own good
and will ultimately slow the performance of my workbook down.
The formula is as follows:
=IF(AND(SUMIF('REVISED ACTIVITY'!$A$11:$A$247,$A12,'REVISED ACTIVITY'!G
$11:G$247),SUMIF('REVISED ACTIVITY'!$B$11:$B$247,$B12,'REVISED
ACTIVITY'!G$11:G$247)),SUMIF('REVISED ACTIVITY'!$A$11:$A
$247,$A12,'REVISED ACTIVITY'!G$11:G$247)*VLOOKUP($A12,'THEATRE USAGE'!
$B$90:$DP$114,HLOOKUP(G$1&$B$9,'THEATRE USAGE'!$D$87:$DO
$88,2,FALSE),FALSE),0)
The VLOOKUP I'm okay with, I think. I could probably INDEX(MATCH())
but the main thing I'm olooking at is the IF,AND,SUMIF parts - I'm
certain here's a more intelligent way of getting the same answer but
can't seem to find it (I did try a sum product with conditions on
Columns A and B but came up short)
Any advice, as always, much appreciated
Matt