ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Formula help! (https://www.excelbanter.com/excel-programming/300879-formula-help.html)

nic17[_4_]

Formula help!
 
Hi,

I am just trying to write a formula that counts the number of non-blan
cells in a column.

E.g. In column G, i know there are 166 populated cells, but this coul
change. So how can a formula calculate this authomatically?

Any ideas

--
Message posted from http://www.ExcelForum.com


kvenku[_17_]

Formula help!
 
hi
you can try this out.

dim i
for i = 1 to columns.count
if len(cells(7,i).value) 0 then
count=count+1
end if
next

where count is the count of the populated cells

I beleive this is what you want

Thanks
venkatesh


--
Message posted from http://www.ExcelForum.com


Tom Ogilvy

Formula help!
 
=countA(G:G)

--
Regards,
Tom Ogilvy

"nic17 " wrote in message
...
Hi,

I am just trying to write a formula that counts the number of non-blank
cells in a column.

E.g. In column G, i know there are 166 populated cells, but this could
change. So how can a formula calculate this authomatically?

Any ideas?


---
Message posted from http://www.ExcelForum.com/




nic17[_5_]

Formula help!
 
Great, Thanks a lo

--
Message posted from http://www.ExcelForum.com


Pete McCOsh

Formula help!
 
Nic,

try:

=COUNTA($G:$G)

Cheers, Pete.

-----Original Message-----
Hi,

I am just trying to write a formula that counts the

number of non-blank
cells in a column.

E.g. In column G, i know there are 166 populated cells,

but this could
change. So how can a formula calculate this

authomatically?

Any ideas?


---
Message posted from http://www.ExcelForum.com/

.



All times are GMT +1. The time now is 01:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com