+ Reply to Thread
Results 1 to 3 of 3

countif, indirect, autofill, help

  1. #1
    Registered User
    Join Date
    11-17-2014
    Location
    san diego
    MS-Off Ver
    2010
    Posts
    1

    countif, indirect, autofill, help

    [DELETED LINE AFTER MOD TOLD ME IT SERVED "NO PURPOSE"]

    I have a large number of spreadsheets and one summary sheet at the beginning.
    I need to reference another sheet, use countif to calculate a specific number.
    I want/need autofill to increase, incrementally the criteria in the formula.

    For instance: =COUNTIF('92040'!$I:$I, "6")
    [SAME RUDE MOD WANTED TO KNOW WHAT THE "6" WAS.]

    The formula is counting how many homes were sold in a specific zip code during which month. The zipcode is the '92040'. the "6" is the month of June.
    The zipcode won't change, but the "6" needs to become a "7" and so on....

    Otherwise I have to adjust every formula by hand.

    I need the "6" to go up to "7" and more with autofill, so I can just drag it across the column and have it fill in.

    I CANNOT FIGURE OUT A WAY TO DO THIS! And I don't want to correct each formula by hand.

    [DELETED LINE AFTER MOD TOLD ME IT SERVED "NO PURPOSE"]
    Last edited by idontwanttobeamember; 11-17-2014 at 06:59 PM. Reason: rude mod

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: countif, indirect, autofill, help

    One way...

    =COUNTIF('92040'!$I:$I, COLUMNS($A1:F1))

    COLUMNS($A1:F1) evaluates to 6. As you drag copy the formula across the row it will increment like:

    COLUMNS($A1:F1) = 6
    COLUMNS($A1:G1) = 7
    COLUMNS($A1:H1) = 8
    COLUMNS($A1:I1) = 9
    etc
    etc
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: countif, indirect, autofill, help

    Place the months number as headers in your summary sheet e.g. A1=6, B1=7, C1=8 etc

    Place this formula in A2 and then drag across and down : =COUNTIF('92040'!$I:$I, A$1)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-29-2013, 08:10 PM
  2. Can't get Indirect range to autofill
    By kwarden01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-07-2013, 11:11 AM
  3. Autofill INDIRECT with Worksheet cell reference
    By scottkelley80 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-04-2013, 08:49 PM
  4. Indirect? Autofill? Can't make anything work.
    By Grunty in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-15-2012, 10:40 PM
  5. INDIRECT Function and Autofill
    By Neil Grantham in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-20-2005, 08:07 PM

Tags for this Thread

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