+ Reply to Thread
Results 1 to 3 of 3

MACRO/VBA - Extract unique values to different worksheet that meets a criteria

  1. #1
    Registered User
    Join Date
    10-21-2014
    Location
    Makati
    MS-Off Ver
    MS365
    Posts
    74

    MACRO/VBA - Extract unique values to different worksheet that meets a criteria

    Hi everyone. (NOTE: Due to company privacy policy, I can't upload sample file)

    I have to Worksheets.

    Worksheet 1 = Summary
    Worksheet 2 = Data

    What I want is to update Summary, for example starting at cell L47 down until L56 (all blank cells). I want to put values in there from DATA worksheet that passes certain criteria, that is, DATA (Column A) = SUMMARY (A1).

    Also, DATA (column F) contains different codes. So basically, Summary (L47) will be updated with unique values from DATA (column F) that passes the criteria. As long as there is a unique value from DATA (column F) that passes the criteria, the code will list it down to SUMMARY (L47), and if L47 to L56 are all full but there are still unique value to paste, then the code will add rows.
    Last edited by acerlaptop; 02-17-2020 at 03:58 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: MACRO/VBA - Extract unique values to different worksheet that meets a criteria

    We don't want to see real file.

    Will you please attach a SMALL sample Excel workbook(s) (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. (If trere are typical cases like: all unique values/duplicates could occur, day/night, nobody present/several persons at once, before/on/past due, etc. - please show them all or at least indicate in text) The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution(s) is/are also shown (mock up the results manually).

    3. Make sure that all confidential/restricted information (either personal or business) like real e-mails, social security numbers, bank accounts, etc. is removed first!!

    To attach an Excel file you have to do the following: Just before posting, scroll down and press Go Advanced button and then scroll down and press Manage Attachments link. Now follow the instructions at the top of that pop-up screen.


    If (I doubt) your network settings do allow you to write posts on a forum, but not to send attachements, you may use one of a tools dedicated for forums, which do not allow attachements like the one described here: https://www.youtube.com/watch?v=c430RhzzhYQ or other similar
    Last edited by Kaper; 02-17-2020 at 05:25 AM.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    10-21-2014
    Location
    Makati
    MS-Off Ver
    MS365
    Posts
    74

    Re: MACRO/VBA - Extract unique values to different worksheet that meets a criteria

    Quote Originally Posted by Kaper View Post
    We don't want to see real file.

    Will you please attach a SMALL sample Excel workbook(s) (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. (If trere are typical cases like: all unique values/duplicates could occur, day/night, nobody present/several persons at once, before/on/past due, etc. - please show them all or at least indicate in text) The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution(s) is/are also shown (mock up the results manually).

    3. Make sure that all confidential/restricted information (either personal or business) like real e-mails, social security numbers, bank accounts, etc. is removed first!!

    To attach an Excel file you have to do the following: Just before posting, scroll down and press Go Advanced button and then scroll down and press Manage Attachments link. Now follow the instructions at the top of that pop-up screen.


    If (I doubt) your network settings do allow you to write posts on a forum, but not to send attachements, you may use one of a tools dedicated for forums, which do not allow attachements like the one described here: https://www.youtube.com/watch?v=c430RhzzhYQ or other similar
    I'm sorry but due to Privacy setting of our company, attaching files is blocked by our IT.

+ 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. Auto fill of data in one cell based on another cell in same sheet
    By goribmama in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-08-2015, 01:28 PM
  2. Replies: 3
    Last Post: 06-05-2015, 01:55 PM
  3. Replies: 0
    Last Post: 03-20-2014, 10:57 AM
  4. auto fill data in one cell based on formatting of another cell
    By ashouse in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-21-2013, 04:48 PM
  5. Replies: 5
    Last Post: 03-07-2013, 07:29 AM
  6. Replies: 1
    Last Post: 05-06-2010, 03:09 AM
  7. [SOLVED] Auto-fill cell based on adjacent cell information..
    By sans in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-17-2005, 07:05 PM

Tags for this Thread

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