+ Reply to Thread
Results 1 to 5 of 5

Copying formulas to the right?

  1. #1
    Registered User
    Join Date
    03-23-2007
    Posts
    6

    Copying formulas to the right?

    I have a quick question. I have some complex forulas that I need to copy to the right but what I need is not working maybe someone can help me. Ill set up and example.
    Lets say I have 1 in cell A3 and 2 in cell A4 and so on down through 25 in cell A27. Now I have =$A3 in cell B2 and =$A4 in cell C2. I want to copy those formulas to the right until I get =$A27 in cell Z2. When I copy the formula to the right it give me =$A3 in cell D2 instead of =$A5 & =$A4 in E2 instead of =$A6. Hopefully this all makes sense and there is something easy that I am just missing. Thanks for your time.

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    You can do this using the INDIRECT function. In your example, this will work. In cell B2, use:

    =INDIRECT("A"&COLUMN()+1)

    Then you can copy it across.

    HTH

    Jason
    Last edited by jasoncw; 03-23-2007 at 05:28 PM.

  3. #3
    Registered User
    Join Date
    03-23-2007
    Posts
    6
    What is my formula is more complex? Here is my formula. =IF($B77="","",IF((ISNA(VLOOKUP($B77,C$11:P$260,6,FALSE))),$H77,(MAX((DMAX($B$10:$P$260,$O$10,BP$1:BP$2)),$H77)))) Now when I copy this down I want the numbers that dont have $ to increase by one like it does and I want the BP's without the $ to increase 1 column to the right which it does not. This is the same problem with copying to the right. My numbers dont increase then and my columns will move the the next which would be correct. How do I solve this if I want both the numbers to increase and the column to shift to the right as I copy down. I dont have $ infront of them so I thought this should work.

    Thanks for your quick response!

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    In which cell is the first formula, and to which cells do you wish to copy?

  5. #5
    Registered User
    Join Date
    03-23-2007
    Posts
    6
    Lets say that formula is in cell D4 and I want to copy it down and get the BP to go to the next column. so D5 would have =IF($B78="","",IF((ISNA(VLOOKUP($B78,C$11:P$260,6, FALSE))),$H78,(MAX((DMAX($B$10:$P$260,$O$10,BQ$1:BQ$2)),$H78)))) and D6 would be BR$1:BR$2 and so on.

+ 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