+ Reply to Thread
Results 1 to 15 of 15

formula to copy information

  1. #1
    Registered User
    Join Date
    03-09-2016
    Location
    states
    MS-Off Ver
    2003
    Posts
    52

    formula to copy information

    I need the location tab to be populated with the information from the data tab

    e.g P1- pv02, 12

    needs to be populated into the location tab work ref and team ID
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: formula to copy information

    in LOCATION!B2
    =VLOOKUP(A2,DATA!A2:C100,2,0)

    in LOCATON!C2
    =VLOOKUP(A2,DATA!A2:C100,3,0)

    copy down the columns
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    03-09-2016
    Location
    states
    MS-Off Ver
    2003
    Posts
    52

    Re: formula to copy information

    How would it work for the following

    Data table
    location ID Work Ref
    P1 FD
    P1 FC
    P1 FS

    Location Table

    Location ID Work Ref (pick up both FD FC, F5)
    P1

  4. #4
    Registered User
    Join Date
    03-09-2016
    Location
    states
    MS-Off Ver
    2003
    Posts
    52

    Re: formula to copy information

    See example
    Attached Files Attached Files

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: formula to copy information

    Same idea as post #2

    B2 =VLOOKUP(A2,Data!A:E,4,0)
    C2 =VLOOKUP(A2,Data!A:E,5,0)

  6. #6
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: formula to copy information

    Thats not the example data you originally supplied.

    What do you expect the output to look like now? You havent specified it iin the spreadsheet.

  7. #7
    Registered User
    Join Date
    03-09-2016
    Location
    states
    MS-Off Ver
    2003
    Posts
    52

    Re: formula to copy information

    Output will be:
    Prime Ref Work Ref Team Ref
    P1 PV02, G4 W231, W232

  8. #8
    Registered User
    Join Date
    03-09-2016
    Location
    states
    MS-Off Ver
    2003
    Posts
    52

    Re: formula to copy information

    So in the location tab, the P1- should pick up both PV02 and G4 so on....

  9. #9
    Registered User
    Join Date
    03-09-2016
    Location
    states
    MS-Off Ver
    2003
    Posts
    52

    Re: formula to copy information

    @ 63falcondude

    The formula only picks up the one value as opposed to two e.g. P1 should pick up W231 and W232

  10. #10
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: formula to copy information

    If you want to do this through formulas, you will have to allocate extra cells for the 2nd, 3rd, etc matches.

    Your current layout with the expectation of multiple results in the same cell separated by commas isn't going to happen.

  11. #11
    Registered User
    Join Date
    03-09-2016
    Location
    states
    MS-Off Ver
    2003
    Posts
    52

    Re: formula to copy information

    I have not too fussed if the commas are not in between to separate. Is there still no way of doing it then?

    Can you provide me with an example of how this will be done with the extra cells

  12. #12
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: formula to copy information

    Sure. Also, please update your profile to show the current version of Excel that you are using.
    Right now, it shows 2003 but you uploaded a .xlsx which shows that you have at least 2007.

    Try this in Location B2:
    =IFERROR(INDEX(Data!$D:$D,SMALL(IF(Data!$A$2:$A$6=$A2,ROW(Data!$A$2:$A$6)),COLUMNS($A:A))),"") Ctrl Shift Error
    Drag the formula to the right as far as needed.

    Then put this in let's say I2:
    =IFERROR(INDEX(Data!$E:$E,SMALL(IF(Data!$A$2:$A$6=$A2,ROW(Data!$A$2:$A$6)),COLUMNS($A:A))),"") Ctrl Shift Error
    Drag the formula to the right as far as needed.

    Drag both formulas down as far as needed.

  13. #13
    Registered User
    Join Date
    03-09-2016
    Location
    states
    MS-Off Ver
    2003
    Posts
    52

    Re: formula to copy information

    Only still picks up the one value

  14. #14
    Registered User
    Join Date
    03-09-2016
    Location
    states
    MS-Off Ver
    2003
    Posts
    52

    Re: formula to copy information

    I am using Office 2016

  15. #15
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: formula to copy information

    Opening up the sample workbook that you shared in post #4 and following the instructions in post #12 lists all matches.

    See attachment.
    Attached Files Attached Files
    Last edited by 63falcondude; 06-13-2018 at 11:43 AM.

+ 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. Formula to copy information into another worksheet based on a particular condition
    By Excelfail in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2018, 03:11 PM
  2. [SOLVED] Formula to copy information from one worksheet to an overview sheet
    By JeninQC in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-12-2017, 10:01 AM
  3. [SOLVED] Formula to copy information to the correct date?
    By JackMWhit in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-20-2017, 07:35 AM
  4. Replies: 5
    Last Post: 06-26-2016, 12:52 AM
  5. Need Formula to Copy Information from one worksheet to another.
    By Jaidekat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-09-2014, 08:41 PM
  6. Formula to copy information from one cell into another sheet
    By 110mama in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-17-2013, 01:00 AM
  7. Replies: 7
    Last Post: 10-02-2009, 03:07 PM

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