+ Reply to Thread
Results 1 to 9 of 9

Input data to a specific record in a S/sheet

  1. #1
    Forum Contributor
    Join Date
    03-30-2009
    Location
    dublin
    MS-Off Ver
    Excel 2007
    Posts
    104

    Input data to a specific record in a S/sheet

    Morning Everyone,

    i was hoping that someone could help with a problem i have.

    i have a spreadsheet containing a record on each row 8 columns across.

    the first column conatins a unique reference for the record.

    i think i need a macro to achieve this next part.

    on a separate sheet i want to be able to input a Unique Ref. No. and also input a date for instance, and then activate a macro that will locate the record in the first sheet and copy the date into the date column for the record

    Many Thanks in Advance
    Last edited by bajdr47; 06-07-2011 at 01:00 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Input data to a specific record in a S/sheet

    VLOOKUP might work, but attach an example workbook
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Input data to a specific record in a S/sheet

    Hi

    You need to use Advanced Filter.
    Full instructions can be found here.
    http://www.contextures.com/xladvfilt...html#ExtractWs
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  4. #4
    Forum Contributor
    Join Date
    03-30-2009
    Location
    dublin
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: Input data to a specific record in a S/sheet

    This is a sample sheet.

    I want to be able to select a "urn" and type in the date and pass/fail

    use a command button for example to run a macro to input the date and pass fail to the appropiate record in the data sheet


    the finished data sheet will conatin 5000 approx
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Input data to a specific record in a S/sheet

    hi

    No need for any Command Button or any macro.
    Just type the URN value in C4 and the results will appear in F4 and I4


    In F4
    =IF(C4="","",INDEX(data!$D:$D,MATCH(Input!C4,data!A:A,0)))

    in I4
    =IF(C4="","",INDEX(data!$G:$G,MATCH(Input!C4,data!A:A,0)))
    Last edited by Roger Govier; 06-07-2011 at 07:48 AM. Reason: error trap

  6. #6
    Forum Contributor
    Join Date
    03-30-2009
    Location
    dublin
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: Input data to a specific record in a S/sheet

    Sorry about explanation,

    i want to type in the URN to C4, and type in the date and pass/fail in f4 and i4,
    then have the data in f4 and i4 copied to the DATA sheet, to the correct row.

  7. #7
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Input data to a specific record in a S/sheet

    Hi

    Attached workbook does what you want.

    Code in module 1 - CopyData is triggered by clicking the Input button on Input sheet.

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    03-30-2009
    Location
    dublin
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: Input data to a specific record in a S/sheet

    Roger,

    From one Celt to another.......your efforts and patience are very much appreciated....works perfectly...i must now try and see if i can figure out how..

  9. #9
    Forum Contributor
    Join Date
    03-30-2009
    Location
    dublin
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: Input data to a specific record in a S/sheet

    Ladies and Gents,

    i apologies for this.

    the macro supplied works perfectly.

    i didn't input the exact criteria..as a result it didn't work for me ...My fault

    the sample sheet shows the URN as seguential numbers...in reality they are non sequential and includes Letters.

    also the column containing theURNS is in the 3rd Column not the 1st.

    Can someone assist me with a modified Macro Please....again apologies.

    BR

+ 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