Gentlemen,
There is something I want to count in my data. Please look at the file I attached to see my challenge.
Thank you in advance
Gentlemen,
There is something I want to count in my data. Please look at the file I attached to see my challenge.
Thank you in advance
Hi guntar,
Are you looking to use VBA to do this? if so you can loop the cells and count howmany have X in them like so
![]()
Sub GetWstCount() Dim c As Range Dim counter As Integer For Each c In Range("G7:G16") If c.Value = "X" Then counter = counter + 1 End If Next c MsgBox "There were " & counter & "!" End Sub
There are only 10 types of people in the world:
Those who understand binary, and those who don't!
No, only with functions available in Excel
_________________________________________
![]()
![]()
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
=countif(k7:k16,"x")
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Thank you martindwilson, it works if I would have only one column, but I have more than one “WEST” column. I need something what looks in a range E7:L7 first and then goes down 7:16 rows searching for matching criteria.
Thank you
how many? are they always nswenswenswe and so?
why not just total all the count ifs?
use a few helper cells you could always put them on another sheet if you dont want to see them
Last edited by martindwilson; 04-26-2009 at 05:05 PM.
I want to count how many names have been in WEST, there will be more West columns added later, and I want that information to be updated automatically, the end result will feed the Chart.
Thank you
see previous post it has an idea you can extend the ranges if needed
edit did you say names? if name 1 is in west 10 times did you want 1 or 10 returned?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks