Results 1 to 16 of 16

Mapping Data between 2 sheets based on iteration time - VBA

Threaded View

spiwere Mapping Data between 2 sheets... 06-27-2015, 04:24 AM
spiwere Re: Mapping Data between 2... 06-29-2015, 02:49 PM
spiwere Re: Mapping Data between 2... 06-30-2015, 12:33 PM
spiwere Re: Mapping Data between 2... 07-02-2015, 02:29 PM
spiwere Re: Mapping Data between 2... 07-06-2015, 01:57 PM
LJMetzger Re: Mapping Data between 2... 07-08-2015, 09:01 AM
spiwere Re: Mapping Data between 2... 07-08-2015, 09:25 AM
spiwere Re: Mapping Data between 2... 07-11-2015, 02:32 AM
LJMetzger Re: Mapping Data between 2... 07-11-2015, 08:43 AM
spiwere Re: Mapping Data between 2... 07-13-2015, 11:03 AM
LJMetzger Re: Mapping Data between 2... 07-13-2015, 02:57 PM
spiwere Re: Mapping Data between 2... 07-14-2015, 10:50 AM
spiwere Re: Mapping Data between 2... 07-16-2015, 04:59 AM
LJMetzger Re: Mapping Data between 2... 07-17-2015, 03:03 PM
spiwere Re: Mapping Data between 2... 07-18-2015, 04:44 AM
spiwere Re: Mapping Data between 2... 07-21-2015, 12:30 PM
  1. #1
    Forum Contributor spiwere's Avatar
    Join Date
    01-11-2013
    Location
    IN
    MS-Off Ver
    Excel 2007
    Posts
    410

    Mapping Data between 2 sheets based on iteration time - VBA

    Greetings All!

    I’m here to seek some assistance on a task that I need to perform daily, but due to the magnitude of the data it simple takes a lot of time, and therefore was hoping if I could get help from this kind and brilliant forum.

    Task requires: Mapping Data from one sheet to another. Here’s a step-by-step process (sample data files enclosed):

    Step 1: Sort both sheets in ascending order using column A (Lowest to Highest)
    Step 2: In column P of the sheet named Attempts concatenate data present in E, F and G columns to create a unique identifier
    Step 3: In column Z of the sheet named Conversations concatenate data present in E, F and G columns to create a unique identifier
    (The unique identifiers created in both sheets to be used to map the data from the Conversation sheet into the Attempts sheet)
    Step 4: Mapping logic:
    Only records tagged as “Conversation” in Column N of the Attempts sheet to be mapped with the Disp listed in column Q of the conversation sheet. The respective mapping from the “Conversation” sheet is to be populated in Column Q of the Attempts sheet

    In cases, where there are several iterations of the same unique identifier tagged as Conversation in the Attempts sheet, I need to be able to map the respective Disp listed in column Q of the conversation sheet for every iteration w.r.t to the closest time provided in column A. To cite an example:
    The unique identifier “RajivSharmaCS” in the enclosed has 3 iterations in “Attempts” sheet tagged as Conversation
    • Iteration 1 occurred at 6/1/2015 2:01:28 PM
    • Iteration 2 occurred at 6/1/2015 3:01:28 PM
    • Iteration 3 occurred at 6/1/2015 4:01:28 PM
    On the other hand, there are only 2 iterations of the unique identifier “RajivSharmaCS” in the Conversations sheet:
    • Iteration 1 occurred at 6/1/2015 2:05:28 PM
    • Iteration 2 occurred at 6/1/2015 4:03:28 PM
    In the above scenario, I need to be able to map the Disp listed in Column Q with the closest time of the recorded tagged as “Conversation” in the Attempts sheet. As a result, you’ll see in the dummy sheet attached that the mapping I’ve done is as follows:
    • Iteration 1 of Attempts mapped with Iteration 1 of Conversation sheet
    • Iteration 3 of Attempts mapped with Iteration 2 of Conversation sheet
    In addition to the above, there will be some unique identifiers in the Conversation sheet that will NOT map against the Unique Identifiers in the Attempts sheet. For these cases, I would simply like them to stay in the Conversation sheet, but would like the rows of those to be colored and column AA labeled as Log to distinguish them by stating “Unique Identifier - Mis-Match”

    My expected process:

    One folder to contain 2 sheets – Attempts and Conversation. VBA to be present in tab 2 of the attempts sheet. I’ll change the data in the attempts sheet for every set of data that needs to be run.

    Apologies for the extensive text, but I felt it was imperative to jot every thing down for ease of understanding. Sorry, in case it sounds confusing. I’m more than happy to provide further explanation, if required.

    Thank you in advance. Looking forward to see my life getting simplified

    Best regards,

    Spi
    Attached Files Attached Files
    In your greatness, remain humble!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Consolidating data based on a mapping spreadsheet
    By mjiddane in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2015, 06:03 AM
  2. Consolidating data based on a mapping spreadsheet
    By mjiddane in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 01-27-2015, 01:24 PM
  3. Time mapping macro - Needed for different worksheets
    By rajudhl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-17-2014, 01:55 PM
  4. Data mapping between sheets
    By scorpy in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 10-23-2010, 01:23 AM
  5. Iteration Calculations between sheets
    By Abraham.Olson@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2006, 12:10 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