+ Reply to Thread
Results 1 to 7 of 7

Copying formulas from horizontal to vertical

  1. #1
    Registered User
    Join Date
    05-20-2009
    Location
    uk
    MS-Off Ver
    Excel 2002
    Posts
    23

    Copying formulas from horizontal to vertical

    Hello,

    I want to quickly copy data between two worksheets within the same work book - one contains the source data and another acting as the summary sheet. In the source data I record cost entries by type and by month with Cost Type as column headers and a row for each month. E.g

    A B C D
    1 Travel Telephone Petrol
    2 Jan 10 5 4
    3 Feb 5 23 7
    4 Mar 4 7 21

    In the summary sheet I want to replicate this but am recording months it horizontally - so it should look like this:

    A B C D
    1 Jan Feb Mar
    2 Travel =Book1!B2 =Book1!B3 =Book1!B4
    3 Telephone =Book1!C2 =Book1!C3 =Book1!C4
    4 Petrol =Book1!D2 =Book1!D3 =Book1!D4

    I can link the dat for one cell easily enough (i.e. "=Book1!B2") but when I try and drag across to the other cells I get the next increment of letter rather that number e.g cell E2 for Travel in April becomes =Book1!C4 not =Book1!B5.

    I often struggle with this and wondered which formula and syntax I need to use please - I looked at transpose() but do not think it is the right one. I need to do this for loads of data help much appreciated!

    Thanks
    Last edited by pmd; 09-06-2011 at 11:37 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Copying formulas from horizontal to vertical

    Try something like:

    =INDEX(Book!$B:$D,COLUMNS($A$1:B$1),ROWS($A$1:$A1)) copied down and across
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-20-2009
    Location
    uk
    MS-Off Ver
    Excel 2002
    Posts
    23

    Re: Copying formulas from horizontal to vertical

    Ok - thanks. So if my source data for Travel actually starts in cell "Book1!G35" for Jan and goes to "Book1!G46" for December whilst my summary data goes from E32 (Jan) to P32 (Dec) how do I need to adjust the formula please?

    Thanks!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Copying formulas from horizontal to vertical

    Possibly?

    =INDEX(Book1!$G$35:$I$46,COLUMNS($A$1:A$1),ROWS($A$1:$A1))

    assuming you have data to bring over in adjacent columns in Book1....

  5. #5
    Registered User
    Join Date
    05-20-2009
    Location
    uk
    MS-Off Ver
    Excel 2002
    Posts
    23

    Re: Copying formulas from horizontal to vertical

    Perfect - thanks very much!!

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Copying formulas from horizontal to vertical

    You are welcome,

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    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

  7. #7
    Registered User
    Join Date
    05-20-2009
    Location
    uk
    MS-Off Ver
    Excel 2002
    Posts
    23

    Re: Copying formulas from horizontal to vertical

    All done - thanks for the reminder!

+ 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