+ Reply to Thread
Results 1 to 23 of 23

Find Value in Column, Copy and Paste Excel 2016

  1. #1
    Forum Contributor
    Join Date
    02-28-2020
    Location
    Inverness, Scotland
    MS-Off Ver
    365
    Posts
    308

    Find Value in Column, Copy and Paste Excel 2016

    In the attached workbook sheet one has a list of jobs and employees, sheet two has the employees names and the aim is to
    automatically have the jobs assigned to that employee displayed in a cell, in the example all Dave's jobs are in J6 (Done manually).
    The names in sheet one might not be in the same place all the time as data gets pasted in so and range could be longer but sheet two would be static.

    Thanks in advance.
    Attached Files Attached Files
    Last edited by And180y; 05-14-2020 at 06:49 AM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,164

    Re: Find Value in Column, Copy and Paste

    Why not just use a formula
    In J3 copied down

    =TEXTJOIN(",",,FILTER(Sheet1!D:D,Sheet1!G:G=A3))

    or, if you dont have dynamic arrays

    =TEXTJOIN(",",,IF(Sheet1!$G$1:$G$100=A3,Sheet1!$D$1:$D$100,""))

  3. #3
    Forum Contributor
    Join Date
    02-28-2020
    Location
    Inverness, Scotland
    MS-Off Ver
    365
    Posts
    308

    Re: Find Value in Column, Copy and Paste

    Thanks Fluff13 works a treat, then I put some formulas back in and now it seems to think the array is empty. (The job numbers get created elsewhere)

  4. #4
    Forum Contributor
    Join Date
    02-28-2020
    Location
    Inverness, Scotland
    MS-Off Ver
    365
    Posts
    308

    Re: Find Value in Column, Copy and Paste

    I wonder if the mods could move this to the Formulas and Functions section please. :-)

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,164

    Re: Find Value in Column, Copy and Paste

    Can you supply a workbook that includes your formulae?

  6. #6
    Forum Contributor
    Join Date
    02-28-2020
    Location
    Inverness, Scotland
    MS-Off Ver
    365
    Posts
    308

    Re: Find Value in Column, Copy and Paste

    Here's the formula that pulls the information in. =OFFSET($A$2,COLUMNS($A5:A5)-1+(ROWS($2:5)-1)*5,0)

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,164

    Re: Find Value in Column, Copy and Paste

    Can you resupply the workbook?

  8. #8
    Forum Contributor
    Join Date
    02-28-2020
    Location
    Inverness, Scotland
    MS-Off Ver
    365
    Posts
    308

    Re: Find Value in Column, Copy and Paste

    Thanks, have attached a cut down version.

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,164

    Re: Find Value in Column, Copy and Paste

    Don't think so, at least I can't see one.

  10. #10
    Forum Contributor
    Join Date
    02-28-2020
    Location
    Inverness, Scotland
    MS-Off Ver
    365
    Posts
    308

    Re: Find Value in Column, Copy and Paste

    Sometimes, I look stupid. Other times I really am. Sorry forgot to click upload. Done now. :-)
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,164

    Re: Find Value in Column, Copy and Paste

    Sorry forgot to click upload
    we've all done that.
    How about
    =TEXTJOIN(",",,FILTER(Sheet1!D:D,Sheet1!G:G=A2,"no data"))
    You can change no data to just "" or any other message you want, for when there is no matching name.

  12. #12
    Forum Contributor
    Join Date
    02-28-2020
    Location
    Inverness, Scotland
    MS-Off Ver
    365
    Posts
    308

    Re: Find Value in Column, Copy and Paste

    Genius!!

  13. #13
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,164

    Re: Find Value in Column, Copy and Paste

    You're welcome & thanks for the feedback.

  14. #14
    Forum Contributor
    Join Date
    02-28-2020
    Location
    Inverness, Scotland
    MS-Off Ver
    365
    Posts
    308

    Re: Find Value in Column, Copy and Paste

    We are both on same version of Excel so it works perfect but on a Excel 2016 doesn't. Apart from changing the version do you know of a way to make it work? :-)

  15. #15
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,164

    Re: Find Value in Column, Copy and Paste

    That would really need VBA.
    Trying to do it for 2016 with formulae would be pretty horrific.

  16. #16
    Forum Contributor
    Join Date
    02-28-2020
    Location
    Inverness, Scotland
    MS-Off Ver
    365
    Posts
    308

    Re: Find Value in Column, Copy and Paste

    That was my fear, that it was back to VBA. Any takers?

  17. #17
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,164

    Re: Find Value in Column, Copy and Paste Excel 2016

    How about
    Please Login or Register  to view this content.

  18. #18
    Forum Contributor
    Join Date
    02-28-2020
    Location
    Inverness, Scotland
    MS-Off Ver
    365
    Posts
    308

    Re: Find Value in Column, Copy and Paste Excel 2016

    Thanks Fluff13, perfect solution. Thanks so much.

  19. #19
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,164

    Re: Find Value in Column, Copy and Paste Excel 2016

    You're welcome & thanks for the feedback.

  20. #20
    Forum Contributor
    Join Date
    02-28-2020
    Location
    Inverness, Scotland
    MS-Off Ver
    365
    Posts
    308

    Re: Find Value in Column, Copy and Paste Excel 2016

    Fluff13, I broke your code. I decided just to have it all on one sheet so thought it would be enough to remove the sheet references and it would work. = Fail.
    In line 4 below the second .range highlights as an invalid or unqualified reference.

    Please Login or Register  to view this content.

  21. #21
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,164

    Re: Find Value in Column, Copy and Paste Excel 2016

    How about
    Please Login or Register  to view this content.

  22. #22
    Forum Contributor
    Join Date
    02-28-2020
    Location
    Inverness, Scotland
    MS-Off Ver
    365
    Posts
    308

    Re: Find Value in Column, Copy and Paste Excel 2016

    Thanks Fluff13, it works perfectly only thing is that it's slower than before. Thanks again. :-)

  23. #23
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,164

    Re: Find Value in Column, Copy and Paste Excel 2016

    If the data is the same size as before, there is no reason why it would get slower, unless you have something else going on.

+ 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: 11
    Last Post: 11-13-2018, 01:26 PM
  2. [SOLVED] Find last column, copy it, paste one column to left
    By MaddyG in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-31-2017, 11:08 AM
  3. Replies: 5
    Last Post: 08-01-2014, 04:30 PM
  4. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 PM
  5. [SOLVED] VBA Find A Value in Column A, Copy That Row and One Below and Paste into New Columns
    By mlb723 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2012, 05:43 PM
  6. [SOLVED] find last value in column and copy then paste to another sheet
    By AZZ70 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-23-2012, 10:12 AM
  7. find copy and paste contents to another column
    By danbob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-23-2009, 10:44 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