+ Reply to Thread
Results 1 to 5 of 5

increment of formulas

  1. #1
    Forum Contributor
    Join Date
    11-15-2011
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    101

    increment of formulas

    I cant get this one right,

    In colom A, row 1 I have this formula:
    =COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]1'!$M$4:$M$8,"Y")
    colom A, row 2:
    =COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]2'!$M$4:$M$8,"Y")
    colom A row 3:
    =COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]3'!$M$4:$M$8,"Y")
    Now my question:
    1)How can I drag colom B-G so the formula automaticly change the cell ref to the next one, eg
    =COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]1'!$M$4:$M$8,"Y")
    becomes
    =COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]1'!$N$4:$N$8,"Y") and so on?
    OR can I drag th rows and the sheet ref changes automatically from 1 to 2 to 3 to4, etc?

    I hope this make sense, I have about 12 sheets with 100 values each to change by hand if there is no other way!
    Last edited by Schalk; 11-16-2011 at 02:18 AM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: increment of formulas

    1) Dragging the formula
    You can try =COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]1'!M$4:M$8,"Y")

    When you drag it to the right the col ref will change automatically ( see absolute and relative references)

  3. #3
    Forum Contributor
    Join Date
    11-15-2011
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    101

    Re: increment of formulas

    kewl it works! NOW.. how do I get the col and row to sta the same but the sheet to change when I drag down?

  4. #4
    Forum Contributor
    Join Date
    11-15-2011
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    101

    Re: increment of formulas

    This is not a duplicate question, just a new problem with the same formula:

    How do I get the SHEET NR to change when dragging down, eg:
    In colom A, row 1 I have this formula:
    =COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]1'!$M$4:$M$8,"Y")
    colom A, row 2:
    =COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]2'!$M$4:$M$8,"Y")

    When dragging down, everything must stay the same, only the 1, 2, 3 etc must change?

  5. #5
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: increment of formulas

    Try something like

    Please Login or Register  to view this content.
    Change the A1 to the address of the cell in which the formula is placed.
    Martin

+ 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