Is there a solution to using the same function multiple times?

deniztopcu

New Member
Joined
May 9, 2022
Messages
33
Office Version
  1. 2021
  2. 2019
Platform
  1. Windows
Hello, is there a shorter way to do such repetitive calculations?


ı havent office 365.


Ekran görüntüsü 2023-09-12 165816.png
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Without macros I would add hidden columns with partial calculations
Also, you can change COLUMN()*2-<first hidden column+1> to use the same algorithm for all, but further maintenance will be a lot harder
 
Upvote 0
Perhaps try this
xy.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAK
8QoQYoYQoQ TTMYoY TTMQoQYoYQoQ TTMYoY TTMQoQYoYQoQ TTMYoY TTMQoQYoYQoQ TTMYoY TTMQoQYoYQoQ TTMYoY TTMQoQYoYQoQ TTMYoY TTMQoQYoYQoQ TTMYoY TTM
9A131%108%- 6252%-59%-30%-82%-12%71%10%107%-17%72%9%135%53%90%12%102%-16%71%9%131%148%107%33%-76%-15%112%31%-35%
10B271%542%- 152-33%-10%-2%3%54%128%21%123%81%154%24%150%92%192%30%168%78%156%24%147%-17%331%138%127%-17%416%139%128%
Sayfa1
Cell Formulas
RangeFormula
D9:D10D9=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<>""))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
ı havent office 365.
But you have 2021, so give this replacement formula a try.

deniztopcu.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAK
8QoQYoYQoQ TTMYoY TTMQoQYoYQoQ TTMYoY TTMQoQYoYQoQ TTMYoY TTMQoQYoYQoQ TTMYoY TTMQoQYoYQoQ TTMYoY TTMQoQYoYQoQ TTMYoY TTMQoQYoYQoQ TTMYoY TTM
9A131%108%-6252%-59%-30%-82%-12%71%10%107%-17%72%9%135%53%90%12%102%-16%71%9%131%148%107%33%-76%-15%112%31%-35%
10B271%542%-152-33%-10%-2%3%54%128%21%123%81%154%24%150%92%192%30%168%78%156%24%147%-17%331%138%127%-17%416%139%128%
Sayfa1
Cell Formulas
RangeFormula
D9:D10D9=LET(s,SEQUENCE(6,,,0.2),Hdr,$J$8:$AK$8,QoQ,(Hdr="QoQ")+(Hdr="QoQ TTM"),YoY,(Hdr="YoY")+(Hdr="YoY TTM"),rw,J9:AK9,nb,rw<>"", SUMPRODUCT((B9<rw*s)*QoQ*nb)-SUMPRODUCT((B9>rw*s)*QoQ*nb)+SUMPRODUCT((C9<rw*s)*YoY*nb)-SUMPRODUCT((C9>rw*s)*YoY*nb))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top