SUMIFS or Sumproduct Help

engineer33

Board Regular
Joined
Sep 18, 2011
Messages
55
Hi Guys,

I need a formula that sums the equipment for each zone. Formula that works even if i change the equipment names to other columns i still obtain the same result by using the below table

ZONE 1
PX: 0
Signals:2
Tpws: 2


ZONE 2
PX: 1
Signals:3
Tpws: 3


TABLE 1.
Row/Column</SPAN>A</SPAN>B</SPAN>C</SPAN>D</SPAN>E</SPAN>F</SPAN>
1</SPAN>Zones</SPAN>PX</SPAN>Zones</SPAN>Signals</SPAN>Zones</SPAN>TPWS</SPAN>
2</SPAN>2</SPAN>Sydney street- PX</SPAN>1</SPAN>SUN909</SPAN>1</SPAN>SUN909</SPAN>
3</SPAN>3</SPAN>Adelaid Street- PX</SPAN>1</SPAN>SUN914</SPAN>1</SPAN>SUN914</SPAN>
4</SPAN>3</SPAN>Young St.- PX</SPAN>2</SPAN>SUN910 </SPAN>2</SPAN>SUN910 </SPAN>
5</SPAN>4</SPAN>Tower st- PX</SPAN>2</SPAN>SUN906</SPAN>2</SPAN>SUN906</SPAN>
6</SPAN>4</SPAN>Ardeer Station- PX</SPAN>2</SPAN>MW131</SPAN>2</SPAN>MW131</SPAN>
7</SPAN>5</SPAN>West Street-PX</SPAN>3</SPAN>SUN901G</SPAN>3</SPAN>SUN901</SPAN>
8</SPAN>5</SPAN>Fitzgerald-PX</SPAN>3</SPAN>SUN900G</SPAN>3</SPAN>SUN900</SPAN>
9</SPAN>6</SPAN>Station Rd- PX</SPAN>3</SPAN>MW137G</SPAN>3</SPAN>MW137G</SPAN>
10</SPAN>7</SPAN>Robinsons RD- PX</SPAN>4</SPAN>MW150G</SPAN>4</SPAN>MW150</SPAN>

<TBODY>
</TBODY><COLGROUP><COL><COL span=6></COLGROUP>
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
what column are you trying to sum? what cell is your criteria in?


Sorry table isnt clear every item under PX is a PX and that goes for all so i have 9 equipment of each and each equipment is in a different zone.

I need a formula that displays equipment in zone 1 to zone 9 such as

ZONE 1
PX: 0
Signals:2
Tpws: 2


ZONE 2
PX: 1
Signals:3
Tpws: 3



Thank you
 
Upvote 0
HIJKlMNOP
1zone1zone2zone3zone4zone5zone6zone8zone9zone10
2PX: 0PX: 1PX: 2PX: 2PX: 2PX: 1PX: 0PX: 0PX: 0
3Signals: 2Signals: 3Signals: 3Signals: 1Signals: 0Signals: 0Signals: 0Signals: 0Signals: 0
4Tpw: 2Tpw: 3Tpw: 3Tpw: 1Tpw: 0Tpw: 0Tpw: 0Tpw: 0Tpw: 0

<tbody>
</tbody>
in h2 copied across
Code:
="PX: "&COUNTIFS($A$2:$A$10,COLUMN(A1))

in h3 copied across
Code:
="Signals: "&COUNTIFS($C$2:$C$10,COLUMN(A1))

in H4 copied across
Code:
="Tpw: "&COUNTIFS($E$2:$E$10,COLUMN(A1))

please let me know how it worked for you
 
Upvote 0

Forum statistics

Threads
1,214,648
Messages
6,120,725
Members
448,987
Latest member
marion_davis

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