+ Reply to Thread
Results 1 to 5 of 5

how to increment worksheet reference when copying formula

  1. #1
    Registered User
    Join Date
    02-26-2014
    Location
    Albuquerque, NM
    MS-Off Ver
    Excel 2007
    Posts
    1

    how to increment worksheet reference when copying formula

    Hi, I'm having to copy formula on a tabulation sheet that compiles information from other worksheets, and I need to change the formulas in each row to refer to the successive worksheets. Right now I don't know any other way than changing the formula in each cell, and this is taking way too long.

    Example:

    One cell's formula: =COUNTIF('5'!$F$21:$T$50,TABULATION!C$5) In the next row down, I need it be: =COUNTIF('6'!$F$21:$T$50,TABULATION!C$5), then =COUNTIF('7'!$F$21:$T$50,TABULATION!C$5), and so on.

    There was another post like this two years ago, but I didn't understant the answer:
    http://www.excelforum.com/excel-gene...reference.html

    Can anyone help?

    Thanks

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: how to increment worksheet reference when copying formula

    =COUNTIF(INDIRECT(ROWS($A$1:A1)+4&"!$F$21:$T$50"),TABULATION!C$5)
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    02-20-2014
    Location
    Hampshire
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: how to increment worksheet reference when copying formula

    Hi Guys,

    I have exactly the same problem except my increment is along columns. Helpfully my Tabs are named "1", "2" etc up to "420" and I REALLY don't want to have to manualy amend each formula.

    The formula I have is to work out a percentage using all the entries in a particular column (Basically "Actual over Maximum" where the high score for the maximum is 2)

    =SUM('1'!N:N)/(COUNTA('1'!N:N)*2)
    I have tried a variety of concatenation tricks but every time the sheet ref ends up with quatarion marks around it in the formula which causes a "Value#" error.

    The first column in the array (?) is column B and in row 1 I have a calculation that returns the correct number of the tab (i.e. for Column B, B1 formula result is 1). I had hoped to refer to this in some way as the sheet name.

    Help!

    I'll have a play with the response above but as mine is column progression rather than rows I suspect it won't work. See line above!

    Kindest

    Skibum
    Last edited by Skibum346; 02-26-2014 at 01:36 PM.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: how to increment worksheet reference when copying formula

    SkiBum
    Replace ROWS with COLUMNS

  5. #5
    Registered User
    Join Date
    02-20-2014
    Location
    Hampshire
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: how to increment worksheet reference when copying formula

    Woohooo!!!!!

    Sorted!!

    Thank you SO much ChemistB... Owe you one... **Slides a virtual beer down the virtual bar**


    Quote Originally Posted by ChemistB View Post
    SkiBum
    Replace ROWS with COLUMNS

+ 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. Replies: 2
    Last Post: 12-26-2012, 02:13 PM
  2. regular cell reference increment from irregular worksheet
    By moronmark in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-06-2011, 06:47 PM
  3. Copying formula - dynamic worksheet reference
    By FM1 in forum Excel General
    Replies: 2
    Last Post: 01-22-2010, 08:49 AM
  4. auto increment worksheet while copying
    By ocdg678 in forum Excel General
    Replies: 2
    Last Post: 09-13-2008, 12:17 AM
  5. How do I get a worksheet reference to increment when copied
    By RAF in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-02-2006, 04:15 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