Results 1 to 14 of 14

BA code to copy multiple data in one worksheet leaving blank cells in to other worksheet

Threaded View

  1. #7
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: BA code to copy multiple data in one worksheet leaving blank cells in to other workshe

    Hi Ripan,

    _ OK, Here we go:

    _ This was Not to difficult technically this one, just a bit of careful work to select the correct data to select and copy etc..

    _ A few notes / assumptions I have made:

    _ For no particular reason i determine the number of Tables to be considered from the Number of tables in the Output sheet. So AT LEAST as many tables as that must be in the Data Sheet, ( and in the same order. )

    _ I have assumed the different Data Tables are all the same row size, ( but this can easily be changed to select the actual row size if it is different )

    _ Assume Date column J ( Column 10 ) gives indication of last used row when formula returns “”

    _ I assume you have the tables you want already there, all formatted, bit just with no data in Output sheet and only data is required .

    _ Blank rows are determined by when Cash Flow Date has no date in ( Can also easily be modified to AND / OR check other columns )

    _ You may need to do some adjusting of your sheet Formatting to get Date Formats etc Finally correct. It is difficult for me to predict what you may get as my Excel ( German ) has different default settings.

    _ So I have a Code for you . It appears to work correctly.

    _ To Summarise: For a small part of Table 2

    _ Input given from you

    Using Excel 2007
    Row\Col
    AC
    AD
    AE
    AF
    AG
    12
    Financial
    Year
    Month
    Cash Flow
    Date
    Cash Flow
    Amt.
    Cumulative Principal
    13
    FY 2013-14
    Aug -13
    26.Aug.13
    -262,300,000
    285,000,000
    14
    FY 2013-14
    Aug -13
    285,000,000
    15
    FY 2013-14
    Aug -13
    285,000,000
    16
    FY 2013-14
    Aug -13
    285,000,000
    17
    FY 2013-14
    Aug -13
    285,000,000
    18
    FY 2013-14
    Aug -13
    31.Aug.13
    890,137
    285,000,000
    19
    FY 2013-14
    Sep -13
    285,000,000
    20
    FY 2013-14
    Sep -13
    285,000,000
    Data Sheet

    _ ........
    _ Working on the above, my code , given here:
    http://www.excelforum.com/developmen...ml#post4201063

    _ .... will return this ( Again just showing a small part of table 2 )

    Using Excel 2007
    Row\Col
    K
    L
    M
    N
    12
    Financial
    Year
    Month
    Cash Flow
    Date
    Cash Flow
    Amt.
    13
    FY 2013-14
    13.Aug.15
    26.08.2013
    -262,300,000
    14
    FY 2013-14
    13.Aug.15
    31.08.2013
    890,137
    15
    FY 2013-14
    13.Sep.15
    10.09.2013
    -200,000,000
    16
    FY 2013-14
    13.Sep.15
    13.09.2013
    -215,000,000
    17
    FY 2013-14
    13.Sep.15
    18.09.2013
    -300,000,000
    Output Sheet

    _ I recommend you try to apply the code to reduced test data first. Once successful, I would increase the Number of tables and row size in steps , just in case any unforeseen problems occur when dealing with lots of Data.

    _ Please let me know how you get on.

    Alan
    Last edited by Doc.AElstein; 09-27-2015 at 02:12 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to copy data from multiple worksheet cells in to a single Master worksheet
    By thunt13 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-08-2015, 03:24 PM
  2. Auto fill worksheet cells based on certain criteria w/out leaving blank rows.
    By Txprospector in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-10-2014, 07:35 AM
  3. [SOLVED] VBA code to copy certain cells from one worksheet into a single row in another worksheet
    By thedefense in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2013, 06:11 PM
  4. [SOLVED] copy data from cells in a column on one worksheet to a single cell in another worksheet
    By jpsnickers in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-03-2013, 07:02 PM
  5. [SOLVED] Copy multiple worksheets data & paste into blank columns in summary worksheet
    By guest99999 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-21-2013, 09:56 AM
  6. [SOLVED] Macro to copy cells from one worksheet to another copies worksheet data as image instead??
    By michaeljoeyeager in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2012, 11:26 AM
  7. Copy certain cells from one worksheet to another worksheet with blank rows
    By pmarsella in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-06-2009, 07:57 AM

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