+ Reply to Thread
Results 1 to 8 of 8

Lookup value then autofill entire row

  1. #1
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands, Maastricht
    MS-Off Ver
    2013
    Posts
    3

    Lookup value then autofill entire row

    Hi,

    I have an excel file that contains multiple sheets. I have a sheet called All_Hardware and it contains all desktops and laptops in our domain and I have a sheet called Hardware that has a list of users in our domain. I would like to lookup the users from sheet Hardware (Colum A) in the sheet All_Hardware (Also colum A) and if it exists it should copy all information from that row to the row in sheet Hardware.

    If someone could help me it would save allot of time .

    Thank you in advanced.

    PS. If an example is need just let me know. I will create an example file.

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Lookup value then autofill entire row

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands, Maastricht
    MS-Off Ver
    2013
    Posts
    3

    Re: Lookup value then autofill entire row

    NeedForExcel thank you for you responds. I've created an example file. As you can see in the file I have a Hardware sheet and a All_Hardware sheet. If I fill in a user name in colum A Hardware sheet it should search in colum A All_Hardware sheet if it exists. If so it should copy the information in from that row (B,C,D,E,F,G,H,I) to the Hardware sheet, like the example on row 10.

    Example.xlsx

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Lookup value then autofill entire row

    Here!

    Put this in Cell B2 of Hardware Sheet

    =IFERROR(VLOOKUP($A2,All_Hardware!$A$1:$I$1129,MATCH(B$1,All_Hardware!$A$1:$I$1,0),0),"")

    Drag down and across as required.

    Also I suggest formatting you Source Data Table as an Excel Table (Ctrl+T). This will take care of any added rows..

    Please see the file attached.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Lookup value then autofill entire row

    Maybe:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands, Maastricht
    MS-Off Ver
    2013
    Posts
    3

    Re: Lookup value then autofill entire row

    Thank you NeedForExcel and JOHN H. DAVIS. Both work perfectly . Now I just need to check which one I will be using.

    Thank you again! Problem solved!

  7. #7
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Lookup value then autofill entire row

    Glad we could help..

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    You can also thank those who have helped you by clicking on the Add Reputation button if they helped.

    Thanks.

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Lookup value then autofill entire row

    You're welcome. Glad to help out and thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 07-28-2014, 05:18 PM
  2. macro to autofill entire row when a column in the sheet is changed
    By kbaruin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2012, 03:44 AM
  3. Disable lookup autofill
    By ajaykgarg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-02-2010, 10:49 AM
  4. Autofill/lookup in macro
    By Jymoz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2009, 03:43 AM
  5. autofill+addrows+lookup
    By mhax in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-15-2007, 08:50 AM
  6. How can I isolate a lookup vectors but not values from autofill?
    By rjpeltz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-15-2006, 02:45 PM
  7. [SOLVED] vba for lookup and autofill
    By delmac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-23-2005, 07:05 AM

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