+ Reply to Thread
Results 1 to 26 of 26

finding data in an other worksheet

  1. #1
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2016
    Posts
    131

    finding data in an other worksheet

    Hello,

    I have to do following task:
    I have 2 Spreadsheets open; Cip Numbers and Master. In Clip Numbers I have only the clip numbers of my videos, in Master I have clipnumber plus the full description.
    Currently, my workflow looks like this: Both sheets open, I go to one cell (clip number) copy, then highlight the column A in Master Ctrl F and paste the copied number in the Box of Find.
    When it is found, I copy the data into Clip Numbers sheet.
    This is a rather clumsy way to do that. I don't need the data copied into the clipnumbers sheet, I just need to quick find it in the mastersheet. Because the data there is sometimes in different columns. Before I did not need to switch between sheets, it was just looking in every sheet open, but I don't remember how I did it.

    For any advice, thank you in advance!

    Dorian

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: finding data in an other worksheet

    more than likely, you can use every single one of these coding statements to do exactly what you need to do:

    SHEET
    https://docs.microsoft.com/en-us/off...xcel.worksheet

    FOCUS
    https://docs.microsoft.com/en-us/off...tivate(method)

    FIND
    https://docs.microsoft.com/en-us/off...cel.range.find

    COPY
    https://docs.microsoft.com/en-us/off...cel.range.copy

    PASTE
    https://docs.microsoft.com/en-us/off...e.pastespecial

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: finding data in an other worksheet

    Are you only trying to find out if the clip numbers on the Clip Number sheets exist on the Master sheet?
    If posting code please use code tags, see here.

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: finding data in an other worksheet

    Quote Originally Posted by dwc View Post
    When it is found, I copy the data into Clip Numbers sheet.
    You can use VLookup formula, e.g. in column B of Clip number
    Please Login or Register  to view this content.
    This will give you the data in column B when there's a matching index found in column A.
    多么想要告诉你 我好喜欢你

  5. #5
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2016
    Posts
    131

    Re: finding data in an other worksheet

    Yes, and of course the row with the data in it

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: finding data in an other worksheet

    You could use MATCH for that.

  7. #7
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2016
    Posts
    131

    Re: finding data in an other worksheet

    Quote Originally Posted by millz View Post
    You can use VLookup formula, e.g. in column B of Clip number
    Please Login or Register  to view this content.
    This will give you the data in column B when there's a matching index found in column A.
    I am trying to figure out what is wrong: lets say, I copy the formula in B:43 in Clip Number, it copies the cell B1 of the Clip Number sheet

    Does it matter: the Clip Number has an extension.xlsm and the master an extension .cvs?
    Last edited by dwc; 11-23-2020 at 12:19 AM.

  8. #8
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: finding data in an other worksheet

    That's for inserting into cell B1. If your data starts from B43, then change "A1" to "A43". Or better yet, attach a sample workbook so people can understand your problem better and give a better solution.

  9. #9
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2016
    Posts
    131

    Re: finding data in an other worksheet

    here is a sample of 2 worksheets. As I mention, the matching clipnumber in "Master" could be anywhere from A1-A40000

    the actual files would be: Clipnumber.xlsm and Master.csv
    Attached Files Attached Files
    Last edited by dwc; 11-23-2020 at 01:03 AM.

  10. #10
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2016
    Posts
    131

    Re: finding data in an other worksheet

    I think, I have to add something additional: All I need to see is if in "Master" is the same number as I select in "Clipnumbers" and where, so I can copy paste the data into the worksheet "Clipnumbers"

  11. #11
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: finding data in an other worksheet

    Here I combined both workbooks into 1 workbook with 2 different sheets, so the formula will remain correct as I attach them here.

    in Column B, it can find a matching row's data (of any column of your choice)
    in Column C, it shows the row number where the match is found, as suggested by Norie
    if you see #N/A, it means no matches were found
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2016
    Posts
    131

    Re: finding data in an other worksheet

    Thank you millz. But it would be very difficult to copy the data of workbook 2 into the workbook 1 since 2 has about 40.000 entries. Also the data of master is not always in column B, sometimes C or D. Therefore, all I would need is a quick find of a matching clipnumber, the same way if you use find next and it highlights the matching number

  13. #13
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: finding data in an other worksheet

    Quote Originally Posted by dwc View Post
    Also the data of master is not always in column B, sometimes C or D
    Right, so this info is conflicting with what you mentioned in the first post, as you said what you do manually is only searching in column A.
    So what do you do after you find a matching clip number? Do you input any info in the clip number sheet? or Master sheet?
    If so, show a sample sheet with the results you're expecting when there's matches or no matches. It would be weird for macro to do nothing after finding or not finding any matches.

  14. #14
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2016
    Posts
    131

    Re: finding data in an other worksheet

    this is what I posted initially:
    When it is found, I copy the data into Clip Numbers sheet.
    Which means I copy/paste the data in the same row beside the number.
    To say it simple: I have one workbook"Clipnumbers" with -lets say 100 entries. Those entries are numbers of video clips. There is no data other than the numbers. I need the data (like place name, subject name etc.) That I have in the workbook "Master" But there are 40.000 rows. I need to find those video clip numbers one at the time. Because when I find the matching number with data (among the 40.000) I will copy/paste it into the row of "Clipnumbers" The way I do it now is quite time consuming. Unfortunately Data in "Master" is not always in the same column. There might be an automated way, that when I put in Column B of Workbook "Clipnumbers" the formula you created before, that it looks in the Workbook "Master" from A1- A40.000 for a match and hilight it in Workbook "Master". Is that possible?

  15. #15
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: finding data in an other worksheet

    Quote Originally Posted by dwc View Post
    Is that possible?
    Short answer, yes, and quite easily.

    Again, you have to show a proper sample 'Master' workbook, preferably with rows/examples showing that the matching data are in different columns. And if there are headers, you should show them as well, that will aid macro in knowing which data (place/subject) to grab when it finds a match. Finally, show your 'Clip Number' workbook, with the expected results.

  16. #16
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2016
    Posts
    131

    Re: finding data in an other worksheet

    I am sorry, I did not want to confuse you! Honestly, I did not realize how many options are in Excel. I will be more detailed in the future.
    I hope, my revised version is more clear.
    Attached Files Attached Files

  17. #17
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: finding data in an other worksheet

    This is assuming your Master workbook will only have one column of info to the right of column A, based on the sample you have given.

    Open only the clipnumbers file, which contains macro, and you can run it directly; or click the button I have added if you have no idea how to run macros. Please look up on how to run it if you don't know how. Once you run the macro, it will ask you to browse to your Master workbook.

    Matches found will take the info directly from Master workbook, non-matches will have the cell highlighted in red.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by millz; 11-23-2020 at 09:35 AM.

  18. #18
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: finding data in an other worksheet

    In D2 of clipnumbers then copy down, provided both workbooks are in same folder.

    =IFERROR(VLOOKUP($A2,[Master.xlsx]Sheet1!$A$1:$E$62,5,0),"")
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  19. #19
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2016
    Posts
    131

    Re: finding data in an other worksheet

    WOW! millz,
    This is fantastic! have never thought so far. I think, I will reformat all data to one column.
    Edit: I noticed, that is not needed at all.
    Many thanks for your help! That changes my total workflow.
    Last edited by dwc; 11-23-2020 at 11:44 PM.

  20. #20
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2016
    Posts
    131

    Re: finding data in an other worksheet

    Thank you kvsrinivasamurthy! That formula is an easy one. A just to pull down version. I can make use of both very well.
    I am glad to have both versions.

  21. #21
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: finding data in an other worksheet

    Thanks for feed back.

  22. #22
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: finding data in an other worksheet

    Quote Originally Posted by dwc View Post
    WOW! millz,
    This is fantastic! have never thought so far. I think, I will reformat all data to one column.
    Edit: I noticed, that is not needed at all.
    Many thanks for your help! That changes my total workflow.
    Based on this comment, Im going to assume that your negative rep for Millz was in error?
    I have reversed that rep, please confirm that this was the action you indended?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  23. #23
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2016
    Posts
    131

    Re: finding data in an other worksheet

    I am very sorry, I must have hit the wrong button. Of course I wanted to be a positive rep. Thank you for reversing it.

  24. #24
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2016
    Posts
    131

    Re: finding data in an other worksheet

    I am very sorry, I must have hit the wrong button. Of course I wanted it to be a positive rep. Thank you for reversing it.

  25. #25
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: finding data in an other worksheet

    Quote Originally Posted by dwc View Post
    I am very sorry, I must have hit the wrong button. Of course I wanted it to be a positive rep. Thank you for reversing it.
    Thanks for the feedback. Mistakes happen, no problem

  26. #26
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2016
    Posts
    131

    Re: finding data in an other worksheet

    Thank you for your understanding! The members of your forum had been really very helpful to me with their formulas and ideas!

+ 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. Finding and moving entries from one worksheet to a new worksheet
    By Iain170 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-12-2017, 10:52 AM
  2. Finding it hard to copy data from one worksheet to another
    By chrisellis250 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-14-2016, 01:18 PM
  3. [SOLVED] Looping Through Worksheet Finding Matching Data
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-07-2015, 05:28 PM
  4. [SOLVED] Finding a name in a cell within a worksheet in another worksheet
    By antb2000 in forum Excel General
    Replies: 5
    Last Post: 07-30-2013, 09:43 AM
  5. Replies: 0
    Last Post: 03-08-2011, 05:24 AM
  6. Finding and editing data in a worksheet
    By shivboy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2007, 07:11 AM
  7. [SOLVED] Finding duplicate data in a worksheet
    By JTTJ in forum Excel General
    Replies: 1
    Last Post: 01-12-2006, 12:25 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