+ Reply to Thread
Results 1 to 14 of 14

Search for Serial # in another sheet and then copy from row below

  1. #1
    Registered User
    Join Date
    07-19-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Search for Serial # in another sheet and then copy from row below

    In the attachment you will see a tab "Summary Info" and in the A column there are Serial Numbers. I would like to look up the serial number in the "Summary Info" sheet on the "Maint_Info" sheet and look across into the "Pro-Rated Thru Maintenance $" column and pull the cell right below it. So for example, if I lookup serial number "355252" on the "Maint_Info" sheet, I would like it to copy " $21,886.00" into D2 on the "Summary_Info" sheet. Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Search for Serial # in another sheet and then copy from row below

    Hello
    Try this code
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Registered User
    Join Date
    07-19-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Search for Serial # in another sheet and then copy from row below

    Is there a way for the number of columns in between the serial numbers and the information to be a variable? See attached images.
    Attached Images Attached Images

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Search for Serial # in another sheet and then copy from row below

    I don't understand what you mean. Can you explain in details the problem?
    Have you tested the code provided?

  5. #5
    Registered User
    Join Date
    07-19-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Search for Serial # in another sheet and then copy from row below

    The serial number may contain letters and numbers, and can have a longer string and want to make sure that can be covered with the macro? Also, the amount of columns between the serial number and the "Pro-Rated Thru Maintenance $" column may change and was wondering if you can adjust the macro to fit these situations? Sorry for all these adjustments but thanks for all your help in advance.

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Search for Serial # in another sheet and then copy from row below

    Can you upload real sample of your real data so as to be able to understand the problem well .. ?
    Have you checked the code on your real file .. How were the results?

  7. #7
    Registered User
    Join Date
    07-19-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Search for Serial # in another sheet and then copy from row below

    The original code you sent worked fine but here is the actual layout of the spreadsheet so you can understand my issue (attached).
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Search for Serial # in another sheet and then copy from row below

    Is that what you want ..?
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    07-19-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Search for Serial # in another sheet and then copy from row below

    I ran the macro but it didn't copy the information into the U column (Pro-Rated Thru Maintenance $) in the "Summary_Info" sheet?

  10. #10
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Search for Serial # in another sheet and then copy from row below

    Can you post the expected results please?
    If you need to put the results in column U then try to change that line
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    07-19-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Search for Serial # in another sheet and then copy from row below

    I attached a spreadsheet with the results I am looking for in column U on the "summary_info"tab. The results are in red, thanks.
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Search for Serial # in another sheet and then copy from row below

    OK try this version ..
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    07-19-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Search for Serial # in another sheet and then copy from row below

    Khalil

    Thanks for your help with the request, the script worked.

  14. #14
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Search for Serial # in another sheet and then copy from row below

    You're welcome. Glad it worked for you

    Please mark the thread as solved
    Regards

+ 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. [SOLVED] VBA to search internet and copy data into sheet based on search
    By DanzaNZ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2016, 06:17 PM
  2. Keyword search and copy row to new sheet: search term problem
    By completenovice in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2014, 11:32 AM
  3. [SOLVED] How to search workbook for all serial numbers that are less than a value
    By onbeillp111 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-01-2014, 08:51 AM
  4. [SOLVED] Copy data from 1 sheet to another sheet base on serial number input
    By Curtis goh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2013, 11:37 PM
  5. [SOLVED] vba code to search for a serial nr
    By tekken in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-24-2013, 01:57 AM
  6. [SOLVED] Search for heading in data sheet and copy range to corresponding sheet in master workbook
    By sans in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-07-2012, 10:02 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