+ Reply to Thread
Results 1 to 10 of 10

How Do I put raw data into template and regurgitate the final merged cell product?

  1. #1
    Registered User
    Join Date
    05-06-2014
    Location
    Cali or philly
    MS-Off Ver
    Excel 2003
    Posts
    60

    Unhappy How Do I put raw data into template and regurgitate the final merged cell product?

    I have included an attachment that Im trying to set up


    I need help programming this template

    In the example tab I have included sample data

    In the Example tab

    Column A is the step number
    Column C is the raw data

    And Columns D and E or Columns "COLUMN1 and COLUMN2"
    are stuff spit out by template


    In the Compilation Tab

    Starting with F5 and down is the Rawdata Table

    B2 and C2 are are spit out by the Sequence Tab which does not need to be touched





    I am trying to learn how to still program this


    PROBLEM AT HAND:
    I have provided 2 completed examples in the example tab
    with S4050 and S5000


    So for S5010 I want the Cells D18 to D21 merged, and the Rawdata (C18 to C21) to be put into the Compilation cell starting with F5
    and the regurgitated B2 and C2 to be put in to merged cell to the right of the S5010




    Is there any way to do this I have literally 1000 Pages to do and automating it would be great time saver


    Thanks!
    Attached Files Attached Files
    Last edited by Snaybot; 05-30-2014 at 05:53 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: How Do I put raw data into template and regurgitate the final merged cell product?

    Took me a while, but is this what you want?
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-06-2014
    Location
    Cali or philly
    MS-Off Ver
    Excel 2003
    Posts
    60

    Unhappy Re: How Do I put raw data into template and regurgitate the final merged cell product?

    Wow this is amazing but the Third Rawdata Cell does not show up in the Column2

    For some reason all the Third Cells are not showing up in Column1 but not in Column2

  4. #4
    Registered User
    Join Date
    05-06-2014
    Location
    Cali or philly
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: How Do I put raw data into template and regurgitate the final merged cell product?

    never mind im an Idiot dont listen to me

    I fixed it lol

  5. #5
    Registered User
    Join Date
    05-06-2014
    Location
    Cali or philly
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: How Do I put raw data into template and regurgitate the final merged cell product?

    But wait the in the Example TAB I dont want any row with the Grey Bar or anthing starting with a T in ColumnA to be set to be converted using the template

  6. #6
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: How Do I put raw data into template and regurgitate the final merged cell product?

    Oh, I didn't know you didn't want the "T" values to be converted. Here, this is set to only convert if it starts with "S"
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-06-2014
    Location
    Cali or philly
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: How Do I put raw data into template and regurgitate the final merged cell product?

    Honestly you are a wizard!

    I cant ask for much more

    I would love to learn how you wrote this!

    If you have free time, or want to train another VBA wizard id love to see an explanation of this logic

  8. #8
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: How Do I put raw data into template and regurgitate the final merged cell product?

    You're welcome. It's funny, just tonight I was telling my friend about how I never posted on forums, until one time I had a question that it seemed like no one had asked. Then after posting here I was amazed at the excel wizards who responded with much better code that looked alien and worked better than mine did. I said that as I started helping other people, I think I've slowly started becoming that guy myself. Then I saw your comment.

    Thank you for the plus rep and here is a commented version to explain what I'm doing. I'm sure there are better ways of checking what code does, but I always just put "Msgbox x" in the code when I want to know what x is. Be careful doing that in loops though, because you might get hundreds of message boxes.

    Edit: I just noticed the #3 issue. Not sure how that happened, but easy fix.
    Attached Files Attached Files
    Last edited by k64; 05-31-2014 at 01:39 AM.

  9. #9
    Registered User
    Join Date
    05-06-2014
    Location
    Cali or philly
    MS-Off Ver
    Excel 2003
    Posts
    60

    Wink Re: How Do I put raw data into template and regurgitate the final merged cell product?

    Hey Mr.Wizard,

    I got everything except this
    'Set x to run from 1 to 1 past the last used row
    Please Login or Register  to view this content.
    How exactly is it doing this?

  10. #10
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: How Do I put raw data into template and regurgitate the final merged cell product?

    End(xlup) goes up until it finds a non empty cell. By starting at A50000, I'm sure it will find the last used cell in column A. I then take the row number of that cell.

    Sent from my SPH-D710 using Tapatalk
    1. Include a sample workbook with an example of the result you want
    2. Use [CODE] and [FORMULA] wrappers for your VBA code or excel formulas
    3. If your question has been answered, mark the thread as SOLVED and click on the "Add Rep" star to thank whoever helped you.

+ 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. Template for query that can span multiple pages or sheets of a template if needed
    By anthallen_dps in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-17-2013, 11:52 AM
  2. Replies: 0
    Last Post: 06-24-2013, 11:27 AM
  3. Replies: 3
    Last Post: 05-15-2013, 11:34 PM
  4. Replies: 8
    Last Post: 02-26-2013, 01:00 AM
  5. Replies: 0
    Last Post: 02-28-2012, 11:40 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