Array formula help

JackDanIce

Well-known Member
Joined
Feb 3, 2010
Messages
9,922
Office Version
  1. 365
Platform
  1. Windows
Hi,

Have a 5 column data table, columns 1-3 string values, columns 4-5 numerical values and each row is a unique record.

e.g.
a, b, c, 100, 4
d, e, f, 200, 20

On another sheet, I use two SUMIFS formula's to return values from column 4 and column 5 into (e.g.) columns A and B

(1)
Rich (BB code):
=SUMIFS(Data!$P$5:$P$146,Data!$M$5:$M$146,N1,Data!$N$5:$N$146,O1,Data!$O$5:$O$146,P1)

(2)
Rich (BB code):
=SUMIFS(Data!$Q$5:$Q$146,Data!$M$5:$M$146,N1,Data!$N$5:$N$146,O1,Data!$O$5:$O$146,P1)

I'd like a formula like:=[SUM(1)-SUM(2)]/SUM(1), without helper columns or showing formula (2) results anywhere (no hidden column)

I tried an array formula but result is not correct:
Rich (BB code):
={(SUMIFS(Data!$P$5:$P$146,Data!$M$5:$M$146,S1:S4,Data!$N$5:$N$146,T1:T4,Data!$O$5:$O$146,U1:U4)-SUMIFS(Data!$Q$5:$Q$146,Data!$M$5:$M$146,S1:S4,Data!$N$5:$N$146,T1:T4,Data!$O$5:$O$146,U1:U4))/SUMIFS(Data!$P$5:$P$146,Data!$M$5:$M$146,S1:S4,Data!$N$5:$N$146,T1:T4,Data!$O$5:$O$146,U1:U4)}

Can someone suggest suitable formula?

TIA,
Jack
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,213,534
Messages
6,114,188
Members
448,554
Latest member
Gleisner2

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