Hi All,
I have this formula that works grand, but my boss has asked me to add a column to my forecast Table for probability percentage, and I need to multiply an array of numbers by a percentage by before I to a sumifs.
I have two formulas in one and I using a bit of VBA code to switch between the two formulas, before I do the Sumifs I’m using the Offset to get my array of numbers, I need to multiply each number in the array by the probability column and then do the Sumifs, for info I’m also doing this in power query which is feeding in to a pivot table on a different sheet, I'm doing this for a quick summary report at the top of my sheet/report. I haven’t been able to get it to multiply the array I keep getting an #Value! Error, any help would be much appreciated
=SWITCH(Settings!$AE$1,
TRUE,
LET(
totalHours, SUMIFS(OFFSET(Forecast[Total Hours], 0, SEQUENCE(1, ((U2-M2)/7)+2)),
Forecast[Employee Name], OFFSET(B3, 1, 6)#,
Forecast[Status], "<>On Hold",
Forecast[Status], "<>Lost"),
lookupValue, Q4#,
IF(totalHours = lookupValue,
"All Good",
IF(totalHours = 0,
"H",
totalHours - lookupValue
)
)
),
FALSE,
SUMIFS(OFFSET(Forecast[Total Hours], 0, SEQUENCE(1, ((U2-M2)/7)+2)),
Forecast[Employee Name], OFFSET(B3, 1, 6)#,
Forecast[Status], "<>On Hold",
Forecast[Status], "<>Lost"))
I have this formula that works grand, but my boss has asked me to add a column to my forecast Table for probability percentage, and I need to multiply an array of numbers by a percentage by before I to a sumifs.
I have two formulas in one and I using a bit of VBA code to switch between the two formulas, before I do the Sumifs I’m using the Offset to get my array of numbers, I need to multiply each number in the array by the probability column and then do the Sumifs, for info I’m also doing this in power query which is feeding in to a pivot table on a different sheet, I'm doing this for a quick summary report at the top of my sheet/report. I haven’t been able to get it to multiply the array I keep getting an #Value! Error, any help would be much appreciated
=SWITCH(Settings!$AE$1,
TRUE,
LET(
totalHours, SUMIFS(OFFSET(Forecast[Total Hours], 0, SEQUENCE(1, ((U2-M2)/7)+2)),
Forecast[Employee Name], OFFSET(B3, 1, 6)#,
Forecast[Status], "<>On Hold",
Forecast[Status], "<>Lost"),
lookupValue, Q4#,
IF(totalHours = lookupValue,
"All Good",
IF(totalHours = 0,
"H",
totalHours - lookupValue
)
)
),
FALSE,
SUMIFS(OFFSET(Forecast[Total Hours], 0, SEQUENCE(1, ((U2-M2)/7)+2)),
Forecast[Employee Name], OFFSET(B3, 1, 6)#,
Forecast[Status], "<>On Hold",
Forecast[Status], "<>Lost"))