+ Reply to Thread
Results 1 to 4 of 4

Countif(Indirect) Can't drag columns

  1. #1
    Registered User
    Join Date
    10-14-2016
    Location
    Chicago, IL
    MS-Off Ver
    2010
    Posts
    2

    Countif(Indirect) Can't drag columns

    I need to count the number of times a range has "EA" and would like to drag this across columns to change D7:D14 to E7:14

    I also need help having the range automatically skip to D12:17 when dragged down the row.

    The formula below works for this range but doesn't have any of the previous capabilities. Can someone take a look?

    =COUNTIF(INDIRECT("STAFFING!D6:D11"),"=EA")

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Countif(Indirect) Can't drag columns

    Why bother with Indirect at all?
    Just use direct normal referneces, and it will incriment from D to E as expected

    =COUNTIF(STAFFING!D6:D11,"EA")

    Then you can use offset to make the rows incriment as dragged down

    =COUNTIF(OFFSET(STAFFING!D$6:D$11,(ROWS(A$1:A1)-1)*6,0),"EA")

  3. #3
    Registered User
    Join Date
    10-14-2016
    Location
    Chicago, IL
    MS-Off Ver
    2010
    Posts
    2

    Re: Countif(Indirect) Can't drag columns

    I initially used INDIRECT because if I inserted another column in the sheet Staffing, the below formula would just skip the newly inserted column.
    INDIRECT corrects that problem but I haven't figured out a way to drag this formula across columns.
    =COUNTIF(STAFFING!D6:D11,"EA")

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Countif(Indirect) Can't drag columns

    Well, such is the problem with indirect.
    It's a pick your poison kind of situation.
    If you use indirect, you can't incriment range references without alot of extra work (yes it can be done, but is it worth the effort?).
    If you don't use indirect you have to deal with references changing as columns/rows are inserted/deleted

    Personally, I would go with NOT using indirect, and Re-Think the process of my sheet's data entry.
    Make it so that inserting/deleting columns is not necessary.

    Instead of inserting a column on the left side of your data, Paste it to the end of your data on the right.

+ 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. Drag Down Indirect Formula- Please help!
    By Paul Cherian in forum Excel General
    Replies: 3
    Last Post: 01-07-2016, 05:41 AM
  2. Indirect - drag cells down
    By pauldaddyadams in forum Excel General
    Replies: 2
    Last Post: 12-02-2015, 07:46 AM
  3. Cant get =countif(indirect(... function to drag across columns
    By BRAD.HALL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-29-2015, 01:06 AM
  4. [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
  5. [SOLVED] Drag Indirect Formula Across Columns
    By Nicked in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-20-2012, 11:38 AM
  6. How to drag down sum indirect function
    By Mayyalondon in forum Excel General
    Replies: 3
    Last Post: 03-11-2012, 10:48 AM
  7. Replies: 2
    Last Post: 10-27-2011, 05:30 AM

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