+ Reply to Thread
Results 1 to 5 of 5

Match value(s) in column with headers of another sheet and paste a cell value from column

  1. #1
    Registered User
    Join Date
    02-01-2013
    Location
    Washington
    MS-Off Ver
    Excel 2010
    Posts
    44

    Match value(s) in column with headers of another sheet and paste a cell value from column

    Hello again!!

    I have an ongoing worksheet that I have been fumbling through...

    I am not the best at VBA, so don't laugh too bad at my efforts.

    This issue has stumped me, tried googling and searching, but to no luck; Only finding information on column vs column compare and copy whole columns, etc...

    This is my problem:

    I have a workbook that has had a ton of manipulations to get me to this point...
    I have it to where it subtotals my 'planned qty' by each day on the "SubTotals" tab...
    Done with my macro named "ConsolidateData()". (I figure that I would just call a new macro after this one to add the missing info.)

    I have a "Log" tab (which gets its data elsewhere).. The "Log" tab has the days of the year as the headers, and under each day for whatever product was produced there are values (and blank spots if no production). The number of Products changes as time goes by because we add more (new) products to our production line.

    What I am trying to do is this....
    I am trying to get a macro that will look at the date in the first column (column A) of the "SubTotals" tab, search in the "Log" tab, find that column and then paste the 'total' (sum) of that column (in which the value is already there, but the line number could be different if more products are added later) into the "SubTotals" Tab in the third column (column C) for the appropriate matching date...

    is that possible??

    I have tried to do some crazy transpose copy/paste things just to get sizing errors and more flustered.

    I am at a loss, and am calling for assistance from the Jedi Masters of this forum...

    I hope that my explanation is clear enough and I didn't just make it more confusing!!

    Thank you...

    PLAN-test4.xlsm

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Match value(s) in column with headers of another sheet and paste a cell value from col

    Try the attached.
    Attached Files Attached Files
    Last edited by AB33; 10-17-2013 at 09:56 AM.

  3. #3
    Registered User
    Join Date
    02-01-2013
    Location
    Washington
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Match value(s) in column with headers of another sheet and paste a cell value from col

    I tried it out.. and it works perfectly... Thank you...!!!

    as always AB33, you have come to my rescue with some awesome work!!

    I noticed the modules 11 and 12, are they part of the magic?? I, as always, look at what was done and try to learn for the future... I still have a long way to go!! but it is fun trying to make things work, especially if there is someone to occasionally lend a helping hand...


  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Match value(s) in column with headers of another sheet and paste a cell value from col

    Zoediak,
    I was working on other threads and mixed up the codes. They are not complete codes, but if you could pick-few lines, so be it.

  5. #5
    Registered User
    Join Date
    02-01-2013
    Location
    Washington
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Match value(s) in column with headers of another sheet and paste a cell value from col

    Got it... thanks...

    I did look at it and notice they were calling different sheet names, so I figured that you were probably working on other projects..

    and thanks again!! + rep your way!!

+ 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] HELP! Trying to move data in rows to match column headers
    By ablits1 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 08-31-2015, 07:00 PM
  2. [SOLVED] Match, Copy and Paste Column Headers - varying number of columns
    By itcher in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-19-2013, 10:49 AM
  3. [SOLVED] VBA code to copy column data only if headers match
    By rocksan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2012, 11:23 PM
  4. Match Headers from raw worksheet and copy all data from that column
    By tms12 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-28-2012, 08:00 AM
  5. Loop through column headers to search from column name and get cell range
    By Pie in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-28-2005, 08:20 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