+ Reply to Thread
Results 1 to 6 of 6

help copying a formula.

Hybrid View

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

    help copying a formula.

    I need to copy a formula down and have it increase the column letter. For example

    =A$1 and copy that down so it goes to
    =B$1
    =C$1 and so on and only increase the letter and not the number. I know a person can do this horizontaly but I need this copy procedure to work vertically.

    This looks so easy but I can not find the answer anywhere. Any help would be greatly appreciated.

    Thanks.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello tu0nie,

    A relative reference will only change when you drag it in the direction of the relative reference. A relative row will only change if you drag the formula vertically, and a relative column will only change when you drag the formula horizontally. This holds true whether your workbook is setup for A1 style or R1C1 style referencing.

    Sincerely,
    Leith Ross

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    In which cell do you want the formula?

    If you want A1's value in D3, B1 in D4 etc. try this formula in D3 copied down

    =OFFSET(A$1,,ROW()-ROW(D$3))

  4. #4
    Registered User
    Join Date
    03-23-2007
    Posts
    6
    B1 through ZZ1 has
    "To"

    B2 shows
    "1" which it gets from a formula

    C2 shows
    "2" which it gets from a formula

    and so on increasing by 1

    CELL J11 has
    =IF(OR($B11="",$C11=""),"",IF((ISNA(VLOOKUP($B11,C$11:P$260,6,FALSE))),$H11,(MAX((DMAX($B$10:$P$260,$O$10,B$1:B$2)),$H11))))

    and when I copy this down I want cell J12 to have
    =IF(OR($B11="",$C11=""),"",IF((ISNA(VLOOKUP($B11,C$11:P$260,6,FALSE))),$H11,(MAX((DMAX($B$10:$P$260,$O$10,C$1:C$2)),$H11))))

    J13
    =IF(OR($B11="",$C11=""),"",IF((ISNA(VLOOKUP($B11,C$11:P$260,6,FALSE))),$H11,(MAX((DMAX($B$10:$P$260,$O$10,D$1:D$2)),$H11))))

    and so on.

    I can enter all these in by hand but I need to go up into the 1000's and this would take me a long time so I was hoping there was some trick to copy this. If there is I could use it in the future as well. Hopefully this clears up my problem some.

    Thanks.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    You can still use OFFSET as I suggested above. Try replacing B$1:B$2 in the J11 formula with

    OFFSET(B$1:B$2,,ROW()-ROW(J$11))

  6. #6
    Registered User
    Join Date
    03-23-2007
    Posts
    6
    Thanks a bunch.

    I thought I switched it out but I must of had something wrong. Works perfect now.

    Thanks again for your time.

+ 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