+ Reply to Thread
Results 1 to 4 of 4

Autofill columns with rows?

  1. #1
    Registered User
    Join Date
    09-19-2013
    Location
    Corfu
    MS-Off Ver
    Excel 2007
    Posts
    5

    Autofill columns with rows?

    I've got this function =COUNTIF(CALC!B$3:B$1500;C2) and when to copy down (autofill) I want to change to =COUNTIF(CALC!C$3:C$1500;C2) and then to =COUNTIF(CALC!D$3:D$1500;C2) etc. Is it possible?

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

    Re: Autofill columns with rows?

    Try

    =COUNTIF(OFFSET(CALC!B$3:B$1500;0;ROWS(A$1:A1)-1);C$2)

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Autofill columns with rows?

    Sure can!

    Put this in place of your first formula and then copy downwards.

    =COUNTIF(INDIRECT("CALC!"&CHAR(ROW(A2)+64)&"$3:"&CHAR(ROW(A2)+64)&"B$1500"),C$2)

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Autofill columns with rows?

    Drat!

    Bested by OFFSET's truncation again. That's twice in one week.

+ 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] Help! Autofill from columns in another sheet; into rows.
    By shadypops in forum Excel General
    Replies: 4
    Last Post: 12-13-2012, 09:40 AM
  2. Autofill dynamic columns and rows
    By JimmyA in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2009, 03:33 PM
  3. Autofill columns and rows simultaneously
    By MCCCLXXXV in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-14-2008, 05:45 PM
  4. [SOLVED] Autofill Macro for 2 rows and 100 columns
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2005, 10:05 AM
  5. Autofill Macro for 2 rows and 100 columns
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2005, 08:05 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