Shorten Formula

MStacey

New Member
Joined
Oct 12, 2019
Messages
6
Please can you help me shorten this formula

The desired result is the TOTAL SUM of the values from spreadsheet 'Month (1)" columns (C8:C400)+(F8:F400)+(I8:I400)+(L8:L400)+(08:O400)

IF(C8="","",SUMIFS('Month (1)'!C$8:C$400,'Month (1)'!B$8:B$400,C8))
+IF(C8="","",SUMIFS('Month (1)'!F$8:F$400,'Month (1)'!E$8:E$400,C8))
+IF(C8="","",SUMIFS('Month (1)'!I$8:I$400,'Month (1)'!H$8:H$400,C8))
+IF(C8="","",SUMIFS('Month (1)'!L$8:L$400,'Month (1)'!H$8:H$400,C8))
+IF(C8="","",SUMIFS('Month (1)'!O$8:O$400,'Month (1)'!N$8:N$400,C8))
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
You could reduce it slightly like
=IF(C8="","",SUMIFS('Month (1)'!C$8:C$400,'Month (1)'!B$8:B$400,C8)
+SUMIFS('Month (1)'!F$8:F$400,'Month (1)'!E$8:E$400,C8)
+SUMIFS('Month (1)'!I$8:I$400,'Month (1)'!H$8:H$400,C8)
+SUMIFS('Month (1)'!L$8:L$400,'Month (1)'!K$8:K$400,C8)
+SUMIFS('Month (1)'!O$8:O$400,'Month (1)'!N$8:N$400,C8))

I assume the part in red is correct & was a typo in your op
 
Upvote 0
See if the following formula works for you:

=IF(C8="","",SUM(SUMIFS(OFFSET('Month (1)'!C$8:C$400,,{0,3,6,9,12}),OFFSET('Month (1)'!B$8:B$400,,{0,3,6,9,12}),C8)))
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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