+ Reply to Thread
Results 1 to 5 of 5

Copying COUNTIF function down column increases each row by 1 (as a series)

  1. #1
    Registered User
    Join Date
    08-04-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    17

    Question Copying COUNTIF function down column increases each row by 1 (as a series)

    I have values in cells A1-A11.

    In cells C1-C11, some of the values match what's in A1-A11 and some of the values do not match.

    In cell E1, I entered =COUNTIF(A1:A11,C1), then I copied the formula down through cell E11.

    The problem is that as I copy the formula down column E, it increases each row by 1 (similar to the way a series of numbers would fill in). So for example, in cell E2, the formula reads as "=COUNTIF(A2:A12,C2)" instead of "=COUNTIF(A1:A11,C2)".

    I don't want it to fill down as a series. How do I fix this?

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Copying COUNTIF function down column increases each row by 1 (as a series)

    Use:

    Please Login or Register  to view this content.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Copying COUNTIF function down column increases each row by 1 (as a series)

    Try this one, see the red text.

    Please Login or Register  to view this content.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Copying COUNTIF function down column increases each row by 1 (as a series)

    Hey Moonbather,

    Some absolute referencing, instead of relative (what you have now) should sort this for you. Use $, like so: $A$1:$A$11 in your formula, to reference only those cells while dragging your formula.

    Hope this helps.
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

  5. #5
    Registered User
    Join Date
    08-04-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Copying COUNTIF function down column increases each row by 1 (as a series)

    Thanks everyone.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1