Help in Counting rows

excelhelpplz

New Member
Joined
Apr 16, 2014
Messages
8
Hello All,

I am using Excel 97, Windows XP. I need help in counting. Sample of my data is given below:
Column 1Column 2Column 3Column 4Column 5
Company NameDateDirector NameDirector DesignationNo. of Directors
20 Microns Ltd. 3/31/2002Chandresh ParikhChairperson & Managing Director?
Bhupendra B ParikhVice Chairperson
Bhanu B PatelChairperson Emeritus
Dhimant B ParikhExecutive Director
Rajesh ParikhExecutive Director
Sudhir R ParikhExecutive Director
Darshana Mankad (Mrs.)Director
Sanatkumar P DaveDirector
Vishnu VarshneyDirector (GVFL)
Dhruva S ChaudhriDirector (GVFL)
Lalita D Sharma (Mrs.)Director (IDBI)
Vitthaldas D TalatiDirector & Co. Secretary
A G C Networks Ltd. 3/31/2002K A ChaukarChairperson?
Niru MehtaVice Chairperson
Horatio WongDirector
S ChandrasekharDirector
S RamakrishanDirector
N SrinathDirector
Pradeep MallickDirector
C B BhaveDirector
A M L Steel Ltd. 3/31/2002R R AgarwalChairperson?
Poonam Chand JangirDirector
Ajay AgarwalDirector
A V T Natural Products Ltd. 3/31/2002Ajit ThomasChairperson?
M S A KumarExecutive Director
M A AlagappanDirector
Shyam B GhiaDirector
Habib HussainDirector
In total i have 14 sheets. Each of the sheet have data in 16,000 rows (in the format mentioned above). I have to count number of directors for each of the company and write number in column 5 in the same row in which company name is given in column 1.

Please, help me. I tried it manually but it is taking so much of time. Then i found this website. I hope i will get good help from you as you all are expert in excel.

Thanks a lot...
 
Last edited:

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Okay.. use below formula in column 5:-


=IFERROR(COUNTIF(OFFSET($D2,0,0,IF(A2<>"",MIN(IF($A3:$A$29<>"",ROW($A3:$A$29),""))-1,"")-ROW(D1),1),"*Director*"),"")

Confirm the formula using key combination:- ctrl shift enter


Regards,
DILIPandey
 
Upvote 0
Hello Dilip,

Thanks a lot for your help.
Your function is working but it count 1 less every time. For example it counts 6 in place of 7, it counts 8 in place of 9. Please, look in to it once.

I have changed A29 to A11065 as i have data up to 11065 rows. I do not know i am correct or not.

I am also sharing the file with you. Check out the link given below:

https://drive.google.com/file/d/0B9pp_RscZT39UzNyX2d1TEJvY2M/edit?usp=sharing

Thanks you very much Dilip...
 
Last edited:
Upvote 0
Is your data starting from row 1 ?

I used your sample, ignored column 1, 2 etc and pasted rest data.
I had entered the formula in cell e2.

I would say try again, use above references. Thanks.


Regards,
DILIPandey
 
Upvote 0
I got it. Actually, in 'column 4' all are directors irrespective of their post name (such as chairman etc are also directors). Therefore, I have made little change and remove "director" word from function. Please, have a look and let me know that is it fine or not:

=IFERROR(COUNTIF(OFFSET($D176,0,0,IF(A176<>"",MIN(IF($A177:$A$11063<>"",ROW($A177:$A$11063),""))-1,"")-ROW(D175),1),"**"),"")

I am sorry for not asking question clearly.


Thanks a lot for your help. You are truly genius..!
 
Upvote 0
Okay. but now how you will figure out if a person is director or not ?
I am asking this because you wanted to count only director.

Otherwise it will be just a simple formula of counting any 'job title' based on a dynamic range :)


Regards,
DILIPandey
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,199
Members
449,072
Latest member
DW Draft

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