Count the party name

jollysalman

New Member
Joined
May 18, 2008
Messages
49
<table style="border-collapse: collapse; width: 251px; height: 323px;" border="0" cellpadding="0" cellspacing="0"><col style="width: 89pt;" width="118"> <col style="width: 89pt;" width="119"> <tbody><tr style="height: 15pt;" height="20"> <td style="height: 15pt; width: 89pt;" width="118" height="20">CELL</td> <td style="width: 89pt;" width="119">PARTY NAME</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">A1</td> <td class="xl65">ABC</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">A2</td> <td class="xl65">ABC</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">A3</td> <td class="xl65">ABC</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">A4</td> <td>CBS</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">A5</td> <td>CCS</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">A6</td> <td class="xl65">CSB</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">A7</td> <td class="xl65">CSB</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">A8</td> <td>SBC</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">A9</td> <td class="xl65">SCB</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">A10</td> <td class="xl65">SCB</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">A11</td> <td>SEV</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">
</td> <td>=COUNTA(B1:B11)</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">Answer</td> <td align="right">11</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">Iwant the Answer</td> <td align="right">7</td> </tr> </tbody></table>
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
thanks for ur reply but it is not that formula what i want. because if time the party name change and that case that formula is wrong.
 
Upvote 0
Maybe I understand:

Code:
=SUM(IF(D1="",0,COUNTIF(A1:A11,C1)),IF(D2="",0,COUNTIF(A1:A11,C2)),IF(D3="",0,COUNTIF(A1:A11,C3)),IF(D4="",0,COUNTIF(A1:A11,C4)),IF(D5="",0,COUNTIF(A1:A11,C5)))

Column C in the cells c1:c5 is this party name list.

Column D in the cells d1:d5 are blank or empty.
This column is used for toggle on and off of listed party names to count from column C.

Typing anything in column D (next to the listed party names in column C)
will count that party name to the left.

This formula will handle up to five different names.
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

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