+ Reply to Thread
Results 1 to 3 of 3

Add Unique Values from each column on one Sheet to Another Database sheet

  1. #1
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    Add Unique Values from each column on one Sheet to Another Database sheet

    Hello,

    I need a macro that will logically add the new data from Sheet("Summary") to my Sheet(database_ST").

    Summary Sheet:
    Summary.PNG

    Each Column in Sheet("Summary") will have its own uniquie identifier, which matches with Row 1 on other Sheet("database_ST"), however the data may change - meaning that more Columns can get added (i.e. Stock_XXX a new one can appear) or some removed, and the order in which they apear can change, or the random spacing between the columns at some points may appear in different spots... also more rows of Data might be added if the User changes the Lookback period and as we move into new days.

    I need a macro that will dynamically go through each colomn in Summary, if the Unique Identifier (row 6) is not in Database_ST, then add it and all of its data, and if the unique identifier is already in the database, add all new dates and it's data.

    Database Sheet:
    db.PNG
    Restriction: If Summary Sheet Cell A2 = "don't add today" then macro won't add today's data. it leaves it as is these will likely be formulas linking to an API streaming today's data.

    Is this possible? any help would be really appreciated.

    Thank you for your time.
    Attached Files Attached Files
    Last edited by lougs7; 01-21-2021 at 12:38 AM.

  2. #2
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: Add Unique Values from each column on one Sheet to Another Database sheet

    no clue howto do this, let me know if its even possible

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Add Unique Values from each column on one Sheet to Another Database sheet

    Not sure I get this right.
    Maybe try

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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] VBA to copy unique values from column A in sheet 1 to column A in sheet 2
    By leigh3980 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-05-2019, 03:11 AM
  2. [SOLVED] 2 macro for unique items from a database to unique data sheet consolidation
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-17-2017, 11:25 AM
  3. compare sheet 1 with sheet 2 and copy unique values in sheet 1
    By irfanparbatani in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2014, 07:38 PM
  4. [SOLVED] Macro to copy and paste only unique values from one column to another column in same sheet
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-19-2014, 05:44 AM
  5. [SOLVED] Copying Unique Values to a new sheet but with criteria from another column
    By dbracken1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2013, 02:26 AM
  6. Split Data Unique Value From 2 Sheet of A column and Move to 2 Sheet with Splited Values
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2013, 04:21 AM
  7. Replies: 2
    Last Post: 02-13-2013, 03:14 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