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>
 

Some videos you may like

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

jollysalman

New Member
Joined
May 18, 2008
Messages
49
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.
 

repairman615

Well-known Member
Joined
Dec 21, 2009
Messages
1,885
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.
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,515
Messages
5,511,740
Members
408,864
Latest member
cmajewsk

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top