I have the following formula which works correctly. Cells it refers to are actually generated by a spill formula, so I'd like to have this one work with "spill" as well. I'm doing it so I don't need to add a new date row to the table, but rather have the results automatically spilled down the worksheet.
Where $AA5 is the "spill" version showing the required months (ddd-yy format), and $AK5 determines if the $s shown in $AE5 are in the tbTransactions table & if not then add them in within the formula.
$AK5 and $AE5 are also spill formulas which spill down for as many rows as there are in the $AA5 spill result.
I converted it, as I have done to others, by adding what I thought are the necessary "#"s on the end of the relevant cell references into the following:
This process has worked for other columns that now spill correctly, but for this one it results in "#N/A" instead of the relevant dollar total. Even if I omit the first if test parameters [$AA5# = "", "",], it still fails.
What do I need to do to it to get it to spill with the correct values? Or is it just not possible?
PS I have another spill formula that fails (in this case, with wrong result ) but if I can sort he one posted here I might then be able to resolve this other one.
Excel Formula:
=IFS( $AA5 = "", "",
OFFSET( $AA5, 0, 1, 1, 1 ) = "", "no data yet",
TRUE, ROUND( 0 - SUM( FILTER(tbTransactions[Amount], ( YEAR( $AA5 ) = YEAR( tbTransactions[Date] ) ) *
(MONTH( $AA5 ) = MONTH( tbTransactions[Date] ) ) *
(tbTransactions[Subcategory] = $H$2 & " Electricity"), 0 ) )
+ IF( $AK5 = "Yes", 0, $AE5 )+ N( "add calc'd home est if not included already" ),
2 )
)
$AK5 and $AE5 are also spill formulas which spill down for as many rows as there are in the $AA5 spill result.
I converted it, as I have done to others, by adding what I thought are the necessary "#"s on the end of the relevant cell references into the following:
Excel Formula:
=IFS( $AA5# = "", "",
OFFSET( $AA5#, 0, 1, 1, 1 ) = "", "no data yet",
TRUE, ROUND( 0 - SUM( FILTER(tbTransactions[Amount], ( YEAR( $AA5# ) = YEAR( tbTransactions[Date] ) ) *
(MONTH( $AA5# ) = MONTH( tbTransactions[Date] ) ) *
(tbTransactions[Subcategory] = $H$2 & " Electricity"), 0 ) )
+ IF( $AK5# = "Yes", 0, $AE5# )+ N( "add calc'd home est if not included already" ),
2 )
)
This process has worked for other columns that now spill correctly, but for this one it results in "#N/A" instead of the relevant dollar total. Even if I omit the first if test parameters [$AA5# = "", "",], it still fails.
What do I need to do to it to get it to spill with the correct values? Or is it just not possible?
PS I have another spill formula that fails (in this case, with wrong result ) but if I can sort he one posted here I might then be able to resolve this other one.