Need help finding a way to shorten a complex formula

KRE

New Member
Joined
Apr 18, 2023
Messages
26
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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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