formulas

Copper Contributor

My sumif formula needs to check ranges in two tabs and sum the values in the consolidated tab.  this used to be easy in older versions of excel.  Why is it bringing back spill? 

2 Replies

@Melconway2205 The formula in B2 will fill all cells below it, all at once. If it can't, because something else is already there, you'll get the SPILL error. Delete everything below (from B3 and down). Then it will work as you want. Welcome to the new Excel with dynamic arrays. They are great!

Screenshot 2021-03-22 at 06.16.48.png

@Melconway2205 

 

  1. Actually you need an Array (CSE) formula rather that simple one, also you have missed to include data from Company Two.
  2. Check the formula I've used in cell B2:
{=SUMIF('COMPANY ONE'!$A$2:$A$102,'CONSOLIDATED PROFT AND LOSS'!$A$2:A138,'COMPANY ONE'!B2:B102)+SUMIF('COMPANY TWO'!$A$2:$A$37,'CONSOLIDATED PROFT AND LOSS'!$A$2:A138,'COMPANY TWO'!B2:B37)}

 

  1. Another I've solved by using built in command Data Consolidation.

Check this in E1:F138 :

Rajesh-S_0-1616392091664.png

 

N.B.  If this works for you,, then you may mark it as Best Answer as well like.