Sumproduct odd /even cols with condition

Paddy1979

Well-known Member
Joined
Sep 23, 2005
Messages
608
Hi folks,

Please can you help me with this formula.

I'm trying to sum every odd column and even column in a range with a condition that the team names match.

I have drew up an example of my issue. I hope its clear.

Many thanks.
Book1
ABCDEFG
1.
2SummaryATotalMTotal
3TEAM1
4Shouldbe12051
5
6
7
8P1AP2MP3AP3MP4AP4M
9TEAM122211088822
10TEAM215911812111212122
11TEAM316011912211312223
Sheet1
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi Patrick

You could do this in this instance with a simple Sumif:

Excel Workbook
ABCDEFG
3AM
412051
5
6
7
8P1AP2MP3AP3MP4AP4M
9TEAM122211088822
10TEAM215911812111212122
11TEAM316011912211312223
Sheet3
 
Upvote 0
Ah sorry Richard i need the formula to account for the team name been changed, i.e team name is a drop down validation?
 
Upvote 0
Try this formula in C3 copied across to D3

=SUMPRODUCT((RIGHT($B8:$G8)=LEFT(C2))*($A9:$A11=$B3)*$B9:$G11)
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,712
Members
449,093
Latest member
Mnur

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