Need help finding a way to shorten a complex formula

KRE

New Member
Joined
Apr 18, 2023
Messages
21
Office Version
  1. 365
Platform
  1. Windows
Any way to shorten this formula?

=IF(A328="","0",(XLOOKUP(A328,$A$30:$A$186,$N$30:$N$186,"")*C328)+(XLOOKUP(A329,$A$30:$A$186,$N$30:$N$186,"")*C329)+(XLOOKUP(A330,$A$30:$A$186,$N$30:$N$186,"")*C330)+(XLOOKUP(A331,$A$30:$A$186,$N$30:$N$186,"")*C331)+(XLOOKUP(A332,$A$30:$A$186,$N$30:$N$186,"")*C332)+(XLOOKUP(A333,$A$30:$A$186,$N$30:$N$186,"")*C333)+(XLOOKUP(A334,$A$30:$A$186,$N$30:$N$186,"")*C334))


1711658071821.png

1711658093641.png
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Try
Excel Formula:
=IF(A328="",0,SUM(XLOOKUP(A328:A334,$A$30:$A$186,$N$30:$N$186,0)*C328:C334))
 
Upvote 1
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,724
Messages
6,126,493
Members
449,316
Latest member
sravya

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