Hi,
I just started using array formulas and I'm having a problem with a slightly complicated one.
The simplified version of the formula is:
[pre]
[/pre]
Single row formula
=IF('Disbursing Projects'!$B2=VLOOKUP($A12;FinanceTypes;2;FALSE);'Disbursing Projects'!$I2
*COUNTIFS('Disbursing Projects'!$J2:$AG2;"<="&RIGHT(B$10;LEN(B$10)-FIND("-";B$10));
'Disbursing Projects'!$J2:$AG2;">"&LEFT(B$10;FIND("-";B$10)-1)))[/code][/pre]
Thanks!!!
I just started using array formulas and I'm having a problem with a slightly complicated one.
The simplified version of the formula is:
[pre]
Code:
{=SUM(IF(S1!$B2:$B1000="20");S1'!$I2:$I1000*COUNTIF(S1!$J2:$AG1000;"<10"))}
What the formula is basically supposed to do is to look at a column, find the the "20"s and for each of the rows, take the value from column I of that row and multiply it by the number of times a certain criteria is met in columns J to AG of that row.
I tried building the array up from a single row formula (works btw) and the simplified version is:
[pre][code]=IF(S1!$B2="20");S1!$I2*COUNTIF(S1!$J2:$AG2;"<10"))
I think it's the countif range that's the issue.
If you're interested in reading the actual formula and helping me out there:
Array formula
{=SUM(IF('Disbursing Projects'!$B2:$B1000=VLOOKUP($A12;FinanceTypes;2;FALSE);
'Disbursing Projects'!$I2:$I1000*COUNTIFS('Disbursing Projects'!$J2:$AG1000;"
<="&RIGHT(B$10;LEN(B$10)-FIND("-";B$10));'Disbursing Projects'!$J2:$AG1000;">"&LEFT(B$10;FIND("-";B$10)-1))))}
Single row formula
=IF('Disbursing Projects'!$B2=VLOOKUP($A12;FinanceTypes;2;FALSE);'Disbursing Projects'!$I2
*COUNTIFS('Disbursing Projects'!$J2:$AG2;"<="&RIGHT(B$10;LEN(B$10)-FIND("-";B$10));
'Disbursing Projects'!$J2:$AG2;">"&LEFT(B$10;FIND("-";B$10)-1)))[/code][/pre]
Thanks!!!