+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : hlookup copy and paste across an array help

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-20-2011
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2007
    Posts
    121

    hlookup copy and paste across an array help

    Good afternoon. I have a simple hlookup formula that reads data from another sheet when the dates in row A aligns.
    [=HLOOKUP($A$1,Sheet3!$A$2:$L$12,2,0)]

    I can only copy and drag formula across each row at a time. To copy down the columns I have to amend the formula for each row.

    I am looking for a way to copy and paste similar formula across a whole array in one go. Can anyone offer an alternative formula please.

    Thanks


    Martin
    Last edited by Martin Chamberlin; 05-22-2012 at 03:51 PM. Reason: Solved thanks to DILI
    Chambo1160

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: hlookup copy and paste across an array help

    Hi Martin,

    Try using the formula with Row function:-

    =HLOOKUP($A$1,Sheet3!$A$2:$L$12,ROW(A2),0)

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Forum Contributor
    Join Date
    04-20-2011
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2007
    Posts
    121

    Re: hlookup copy and paste across an array help

    That fixes copy against $A$1 which is ok pasting down the column. This works if I change $A$1 to $B$1, then $C$1 etc and the copy and pasting down each individual column


    I need to copy and paste across Columns A, B, C etc to E.
    Do you have a quick way of pasting down across columns A to E?

    Thanks


    Martin

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: hlookup copy and paste across an array help

    Hi Martin,

    Try removing $ sign from left of the letter.. $A$1 would be A$1 and then drag to right....
    For quick way of pasting down.. press Ctrl + D
    For quick way of pasting ABCDE.. press Ctrl + R

    Upload the sample file in case of any issues. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Forum Contributor
    Join Date
    04-20-2011
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2007
    Posts
    121

    Re: hlookup copy and paste across an array help

    Thankyou. I am getting better at Excel and grateful for help like this. Solved. You're a star my friend

    Very Best Regards

    Martin

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: hlookup copy and paste across an array help

    you are welcome .. .

    Cheers

    Regards,
    DILIPandey

    <click on below star if this helps>

+ 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