count and sum up based on specific conditions

sblad3

New Member
Joined
Jan 28, 2013
Messages
2
Hi All, Seek your help on below

Based on the bandwidth 2 or 4, I need to count specific character on Q2 row, e.g.
Count of "E" in Q2 row,
bandwidth=2, total "E"= 2
bandwidth=4, total "E"= 2

Count of "D" in Q2 row,
bandwidth=2, total "D"= 2
bandwidth=4, total "D"= 0


Bandwidth24444224
Q1BAABABAA
Q2DECBEECDEF
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Try this

23 06 15.xlsm
ABCDEFGHI
1Bandwidth24444224
2Q1BAABABAA
3Q2DECBEECDEF
4
5RowQ2Q2Q2Q2Q1
6CharactersEEDDA
7Bandwidth24244
8Total22204
Count
Cell Formulas
RangeFormula
B8:F8B8=SUMPRODUCT(($A2:$A3=B5)*($B1:$I1=B7)*(ISNUMBER(FIND(B6,$B2:$I3))))
 
Upvote 0

Forum statistics

Threads
1,215,183
Messages
6,123,529
Members
449,105
Latest member
syed902

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