Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Excel CountifS


  • Please log in to reply

#1
manin

manin

    Member

  • Member
  • PipPip
  • 89 posts
Hello, I have an excel file with 2000 rows.
In each row I want to calculate how many numbers are till, 10, between 10 and 20 etc up to 49.
I use countifs, in the first 2 rows.
I want to manage with the first row, calculate the other 2000 rows.
How is this done?
I tried to drag from the first to the down rows, but it did not work :confused: :confused: :confused:

Attached Thumbnails

  • excel.jpg

  • 0

Advertisements


#2
manin

manin

    Member

  • Topic Starter
  • Member
  • PipPip
  • 89 posts
I am trying to build a macro to do my job...

For start I wrote a code for numbers <10. I want to count how many numbers <10 are in each row,
and put it, in H column...
I am doing something wrong...Can anybody help?
Thanks
Sub Zone()
       Dim rw As Integer
       rw = 2
       For rw = 2 To 10
        Worksheets("Sheet1").Range("H & rw") = "=Countif(B & rw:G rw,<10)"
        rw = rw + 1
        Next rw
End Sub

  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP