+ Reply to Thread
Results 1 to 9 of 9

HELP! Simple thing proving tricky! Horizontal/Vertical formula auto copy

  1. #1
    Registered User
    Join Date
    07-22-2012
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    HELP! Simple thing proving tricky! Horizontal/Vertical formula auto copy

    Something I thought would be simple is proving to be a nightmare because I can't auto copy the formulas correctly.

    I want to import totals from other sheets in the document. Problem is that the sheet I'm working on is in horizontal format and the sheets where the data is are in vertical format. When I auto copy my formula it increases the formula horizontally rather than vertically. Any suggestions???

    ie using formula =SUM(Income!A20)

    I want the cell underneath to be =SUM(Income!B20) however when I auto drag the formula it goes =SUM(Income!A21)

    I've tried using =sum(Income!A$20) but doesn't work.

    I can't manually input all the formulas going forward as it is far too time consuming!!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: HELP! Simple thing proving tricky! Horizontal/Vertical formula auto copy

    what is your real formula..you wouldn't use =SUM(Income!A20)
    its easy enough using index to do this sort eg if you want a20,b20,c20........
    when dragging down
    =INDEX(income!A:AA,20,ROWS($A$1:A1))
    or
    =INDEX(income!$20:$20,ROWS($A$1:A1))
    Last edited by martindwilson; 07-22-2012 at 09:42 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-22-2012
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: HELP! Simple thing proving tricky! Horizontal/Vertical formula auto copy

    In order to select the correct field I typed =sum( then clicked on relevant cell - then closed brackets.

    What should I have done?

    I thought I was quite good at Excel but I'm starting to realise I haven't even scratched the surface!

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: HELP! Simple thing proving tricky! Horizontal/Vertical formula auto copy

    just
    =income!A20
    will do to reference a single cell

  5. #5
    Registered User
    Join Date
    07-22-2012
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: HELP! Simple thing proving tricky! Horizontal/Vertical formula auto copy

    Thanks for your help! Unfortunately I'm just as confused as I was.

    Entering =income!A20 imports exactly the same info as =sum(income!A20)

    So when I try to copy the formula drag down - wanting the cell underneath to say =income!B20 (...C20/D20/E20 etc) - it still thinks I want it to say =income!A21 (...A22/A23/A24 etc).

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: HELP! Simple thing proving tricky! Horizontal/Vertical formula auto copy

    i told you the answer in post#2!

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: HELP! Simple thing proving tricky! Horizontal/Vertical formula auto copy

    Try this

    =INDEX(Income!$20:$20,ROW(1:1)) dragged down
    Last edited by Cutter; 07-22-2012 at 09:46 AM.

  8. #8
    Registered User
    Join Date
    07-22-2012
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: HELP! Simple thing proving tricky! Horizontal/Vertical formula auto copy

    THANK YOU, THANK YOU, THANK YOU!!1

    I thought it didn't work but it was just me being a numpty.

    Really appreciate the help!

  9. #9
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: HELP! Simple thing proving tricky! Horizontal/Vertical formula auto copy

    If you're talking to me, you're welcome. Oh, and welcome to the forum!

    Please remember to mark your thread as Solved.


    New quick method:
    Select Thread Tools (above your first post) -> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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