Actually, the other suggestion is better


Don Guillett
Microsoft MVP Excel
SalesAid Software
dguille...@gmail.com
-----Original Message----- From: venkat1....@gmail.com
Sent: Thursday, March 15, 2012 9:26 AM
To: excel-macros@googlegroups.com
Subject: Re: $$Excel-Macros$$ Need Vba code to count no.of values in a column

Dear Noorain,
good method..

----------
Sent from my Nokia phone

------Original message------
From: NOORAIN ANSARI <noorain.ans...@gmail.com>
To: <excel-macros@googlegroups.com>
Date: Thursday, March 15, 2012 6:48:28 PM GMT+0530
Subject: Re: $$Excel-Macros$$ Need Vba code to count no.of values in a column

Dear Naresh,

You can also try without using worksheet-function.................

Sub Count_value()
Dim i, rw As Integer
rw = Range("A65536").End(xlUp).Row
counter = 0
For i = 1 To rw
If Range("A" & i).Value <> "" Then
counter = counter + 1
End If
Next i
MsgBox counter
End Sub

--
Thanks & regards,
Noorain Ansari
*http://noorainansari.com/*
*http://excelmacroworld.blogspot.com/*<http://excelmacroworld.blogspot.com/>


On Thu, Mar 15, 2012 at 4:25 PM, Naresh V <naresh.veerabo...@gmail.com>wrote:

Group,

Can you please provide the vba code for count no.of values in a column.

Ex:
*A clumn B column*
1
23
44
55
12
71

I want code to count A column

Regards,
Naresh V




--
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please
Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
will not get quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security
measure.

4) Acknowledge the responses you receive, good or bad.

5) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited.

NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.


------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com


--
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited.

NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

--
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited.

NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com
--
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited.
NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to