+ Reply to Thread
Results 1 to 43 of 43

bring unique values between 2 sheets

  1. #1
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    bring unique values between 2 sheets

    Hello,
    with a macro it is possible to report the non-repeated values of column B6: B6000 of the sheet "in" in column I of the "grafici" sheet?
    Thank you
    max
    Attached Files Attached Files

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: bring unique values between 2 sheets

    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    Hi sinteek,
    your macro works,
    Is a change only possible values per month?
    Example

    01/01/19
    02/01/19
    02/01/19
    08/01/19
    08/01/19
    20/01/19
    20/01/19

    only month Jan-19

    01/02/19
    02/02/19
    02/02/19
    08/02/19
    08/02/19
    20/02/19
    20/02/19

    only month feb-19

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: bring unique values between 2 sheets

    Just realised, your request was for non repeat values...So are you wanting the values that occur only once...

  5. #5
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: bring unique values between 2 sheets

    Is this what you envisage.
    torachan.
    Attached Files Attached Files

  6. #6
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    I'm sorry I was wrong in formulating the question.
    It must be present every month.

  7. #7
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: bring unique values between 2 sheets

    K, just add sort code if needed...
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    Hi not work:
    Please Login or Register  to view this content.
    they must be present every month.
    Attached Images Attached Images

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: bring unique values between 2 sheets

    Why loop?
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    Jondon error here:

    With .Range("B6", Range("B" & Rows.Count).End(xlUp))

    error 1004
    error defined by the application or object

  11. #11
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: bring unique values between 2 sheets

    Please Login or Register  to view this content.
    Missing red.point

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: bring unique values between 2 sheets

    Missed a period
    Please Login or Register  to view this content.
    Attached Files Attached Files

  13. #13
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    Jindon is not correct
    they must be present every month.
    Attached Images Attached Images

  14. #14
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: bring unique values between 2 sheets

    Then
    Please Login or Register  to view this content.

  15. #15
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    Jindon is not correct
    they must be present only the months
    with the new macro it is only January
    Attached Files Attached Files

  16. #16
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: bring unique values between 2 sheets

    Like this...
    Please Login or Register  to view this content.

  17. #17
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: bring unique values between 2 sheets

    Your result shows the dates that don't exists in "In" sheet.

    What are you really trying to do?

  18. #18
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    Sintek is almost correct.
    the first 2 dates are inverted
    Attached Images Attached Images
    Last edited by max_max; 09-07-2019 at 09:47 AM.

  19. #19
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: bring unique values between 2 sheets

    What file are you testing the code on...Perhaps supply this...

    EDIT...Works with this one...
    Attached Files Attached Files
    Last edited by sintek; 09-07-2019 at 09:50 AM.

  20. #20
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    Sintek the file
    Attached Files Attached Files

  21. #21
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: bring unique values between 2 sheets

    Put this
    Please Login or Register  to view this content.
    Before

    Please Login or Register  to view this content.

  22. #22
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    hello sintek now works.
    I put your macro in other sheets and now it works for columns I / J / k / L / M sheet "grafici"
    The formula (unique months) in the column N
    for it to work you have to click in the columns of the columns I / J / k / L / M
    Attached Files Attached Files

  23. #23
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: bring unique values between 2 sheets

    Please Login or Register  to view this content.

  24. #24
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    Sintek the new macro work well
    The formula in column N of the "GRAFICI" sheet does not work

  25. #25
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: bring unique values between 2 sheets

    The formula in column N of the "GRAFICI" sheet does not work
    Not my formula...Is yours...Why not Fix

    Leave this part out...
    Please Login or Register  to view this content.
    Last edited by sintek; 09-07-2019 at 11:17 AM.

  26. #26
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    Yes my formula.
    The formula
    Please Login or Register  to view this content.
    All months in the range $I$2:$M$20 unique,
    Attached Files Attached Files
    Last edited by max_max; 09-07-2019 at 11:23 AM.

  27. #27
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: bring unique values between 2 sheets

    The formula is not working because the value in I2:M25 are not numbers. They are text.

    You are trying to force an answer to something you did not start with.

    You have yet to finish this thread.
    HTH
    Regards, Jeff

  28. #28
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    how to correct?

  29. #29
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: bring unique values between 2 sheets

    I don't like formulas...Does this work...The language is a barrier...
    Please Login or Register  to view this content.

  30. #30
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    Sintek the new macro is almost o.k.
    It is not in ascending order.
    Attached Images Attached Images
    Last edited by max_max; 09-07-2019 at 01:48 PM.

  31. #31
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: bring unique values between 2 sheets

    Come on max...by now you should know sort code for column...see previous post in this thread and amend for correct column...

  32. #32
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    I don't understand where Feb-19 is in the range I2-M25 must be Feb-20
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by max_max; 09-07-2019 at 02:07 PM.

  33. #33
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: bring unique values between 2 sheets

    add red part
    Please Login or Register  to view this content.

  34. #34
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    O.k. sintek now works.

    Please Login or Register  to view this content.
    with macro recorder

    Please Login or Register  to view this content.
    Last edited by max_max; 09-08-2019 at 09:04 AM.

  35. #35
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    An error
    if in a sheet is present only row B6 error here:

    Please Login or Register  to view this content.
    error 13 type mismatch


    click on sheet "grafici" button "aggiorna" to update
    Attached Files Attached Files
    Last edited by max_max; 09-08-2019 at 09:59 AM.

  36. #36
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: bring unique values between 2 sheets

    Please Login or Register  to view this content.

  37. #37
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    Hi sintek,
    the new macro works in part.
    In the new attachment there is a new shhet "INFO" and the new macro shows the data of this sheet in the "grafici" sheet
    Attached Files Attached Files

  38. #38
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    Is correct this way:?

    Please Login or Register  to view this content.

  39. #39
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: bring unique values between 2 sheets

    the new macro works in part.
    NO...THE NEW MACRO WORKS FOR YOUR SCENARIO but now you change the scenario...

    Come on now Max...Every post is a new scenario...

    This is basics...Google is your friend...
    Please Login or Register  to view this content.
    EDIT...I see you are trying to learn...Yes that is correct...Well done...

  40. #40
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets


    I hope it's all right now.
    Let's see tomorrow at the office.
    Thank you
    max

  41. #41
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: bring unique values between 2 sheets

    I hope it's all right now
    Good luck
    Last edited by sintek; 09-08-2019 at 12:24 PM.

  42. #42
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: bring unique values between 2 sheets

    Hi sintek the macro work.
    I have now posted the workbook for a data validation formula

  43. #43
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: bring unique values between 2 sheets

    Hi sintek the macro work
    Glad I could assist...Please mark this thread as solved...Tx for rep +

+ 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] Formula to bring YTD values from sheets
    By rizmomin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-04-2019, 06:04 AM
  2. Data validation to bring through unique values
    By Roma1r in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-01-2018, 08:54 AM
  3. return unique values from column B in various sheets
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 10-02-2015, 05:53 PM
  4. Replies: 4
    Last Post: 12-01-2014, 07:58 PM
  5. Search unique values in multiple sheets
    By Luc Bosman in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-21-2014, 03:17 PM
  6. [SOLVED] identify unique ID between 2 sheets, auto replace cell values between sheets in diff colum
    By DT123456 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2012, 08:25 AM
  7. Unique values on multiple sheets
    By kadams99 in forum Excel General
    Replies: 5
    Last Post: 11-18-2011, 08:31 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