Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
It's a simple question with an easy solution I think :D

But it looks like i'm to stupid to get it:

I have a row in Excel with some entries
  A      B      C       D       ...
3 entry1 entry2 entry3  entry4  ...
4 entry4 entry5 entry6  entry7  ...
5 entry8 entry9 entry10 entry11 ...
.                         .
.                         .
.                         .

Well I need to count all entrys in line 3 and the result.
After I do the same with line 4 and so on
Posted
Updated 15-Jul-15 2:53am
v3

1 solution

Do yu mean you would like to show the amount of filled cells within the row?

If that is the case, try something like
VB
rownum = Range("A3").Row
test = Application.Evaluate("COUNTA(" & rownum & ":" & rownum & ")")
MsgBox test
 
Share this answer
 
Comments
Chi Ller 15-Jul-15 8:54am    
sorry the first version of the question was not clearly :D I hope it's better now
But it works :D
Thanks a lot
Wendelius 15-Jul-15 9:12am    
You're welcome :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900