Forum Discussion
deniztopcu
Sep 12, 2023Brass Contributor
Is there a solution to using the same function multiple times?
Hello, is there a shorter way to do such repetitive calculations? ı havent office 365.
- Sep 12, 2023
Workbook attached. Old formula in column D, new formula in column E
deniztopcu
Sep 12, 2023Brass Contributor
I was excited when I saw the fiction. But he made an error.
#NO
#NO
HansVogelaar
Sep 12, 2023MVP
Workbook attached. Old formula in column D, new formula in column E
- SergeiBaklanSep 12, 2023MVP
Thanks, found my mistake. Here is just formatting
=SUM( SUMPRODUCT( (B9<J9:AK9*{1;1.2;1.4;1.6;1.8;2})* (($J$8:$AK$8="QoQ")+($J$8:$AK$8="QoQ TTM"))* (J9:AK9<>"") )- SUMPRODUCT( (B9>J9:AK9*{1;1.2;1.4;1.6;1.8;2})* (($J$8:$AK$8="QoQ")+($J$8:$AK$8="QoQ TTM"))* (J9:AK9<>"") )+ SUMPRODUCT( (C9<J9:AK9*{1;1.2;1.4;1.6;1.8;2})* (($J$8:$AK$8="YoY")+($J$8:$AK$8="YoY TTM"))* (J9:AK9<>"") )- SUMPRODUCT( (C9>J9:AK9*{1;1.2;1.4;1.6;1.8;2})* (($J$8:$AK$8="YoY")+($J$8:$AK$8="YoY TTM"))* (J9:AK9<>"") ) )
- deniztopcuSep 12, 2023Brass ContributorThank you too.
- mtarlerSep 12, 2023Silver Contributor
deniztopcu alternatively:
=SUMPRODUCT(SIGN(J9:AK9*{1;1.2;1.4;1.6;1.8;2}- SWITCH(LEFT($J$8:$AK$8,3),"QoQ",B9,"YoY",C9)) *(J9:AK9<>""))
- deniztopcuSep 12, 2023Brass ContributorThanks for your efforts.
It was very stylish.