View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
M Kan M Kan is offline
external usenet poster
 
Posts: 169
Default How to get the Total count

This should work

sumproduct(--(range_region=b$2),--(range_status=$A3))

Assuming that B$2 = your first city in Table 1, Chennai and $A3 is your
first status in Table 1, Yet to start.
--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"Ravi" wrote:

Hi, I have two tables like the below ( i have hundreds of data below is the
example) and i want to count the current status count in chennai or Delhi
coloumn
(whereever zero) if i change the status in current status coloumn in TABLE 2
then the total count will automatically calculate in TABLE 1 chennai or Delhi
fileld (i tried Countif function but i am not able to get the correct
count)..please help

TABLE : 1
Status Chennai Delhi
Yet to Start 0 0
In Process 0 0
Pending - External 0 0
Delivered 0 0
Total 0 0

TABLE : 2
Sl # Project # Region Start Date End Date QC Current
Status
1 101 Chennai 07/09/2008 07/09/2008 Ravi Yet to Start
2 102 Chennai 07/09/2008 07/09/2008 Ravi Yet to Start
3 103 Chennai 07/10/2008 07/10/2008 Ravi Delivered
4 104 Chennai 07/10/2008 07/10/2008 Ravi Delivered
5 105 Chennai 07/10/2008 07/10/2008 Ravi Pending -
External
6 106 Delhi 07/10/2008 07/10/2008 Ravi Pending -
External
7 107 Delhi 07/09/2008 07/09/2008 Ravi Delivered
8 108 Delhi 07/11/2008 07/11/2008 Ravi Delivered
9 109 Delhi 07/11/2008 07/11/2008 Ravi In Process
10 110 Delhi 07/11/2008 07/11/2008 Ravi In Process

Thanks
regards
Ravi Kumar