Hello all
I need some help with excel 2007 please.
How do I assign the result of the countif function to a variable in VBA instead of showing the result in a cell?
something like
loopcounter = "=COUNTIF(C[-6],""?*"")"
cheers
Hello all
I need some help with excel 2007 please.
How do I assign the result of the countif function to a variable in VBA instead of showing the result in a cell?
something like
loopcounter = "=COUNTIF(C[-6],""?*"")"
cheers
Last edited by lima; 09-22-2010 at 04:46 PM.
It's a relative column reference, so it would have to be evaluated in the context of a particular column.
Entia non sunt multiplicanda sine necessitate
Thanks shg
so apart from using something like loopcounter = activecell.value,
is there a way to write code that will count cells in a coloum that have some content and put the result into a variable
If you know which column you want to check, or which part of a column, and you know which cell holds the value you are looking for, you can have something like:
Please Login or Register to view this content.
Or
Please Login or Register to view this content.
Or
Please Login or Register to view this content.
Regards
Thanks TMShucks
I’ve spent hours trying to write something like any of these 3 lines without success
Come on you Reds, what a hat trick
Best Regards
Each to their own. I've been watching a professional tiler tiling my kitchen and thinking, "I wish I could do that".
Thanks for the feedback.
Regards
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks