+ Reply to Thread
Results 1 to 2 of 2

copyng colum to rows on a specific criteria

  1. #1
    Forum Contributor
    Join Date
    09-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    239

    copyng colum to rows on a specific criteria

    Hi
    I sincerly thank the forum for the help rendered to me so far.

    We are using the attached excel file for sending maile merged lettes to client.
    Since date are entered in text we are getting complaints for error on due amount on specific date
    I request the formum to help me out with arrangement of colums to rows based on flat code
    some flat code will have 5 colums some will have 10 colums depending upon the no of instalment agreed.

    Example has been worked for the ist tow rows

    I request the forum to help me out witt rows wise arragnment

    after this arragement i think of using right 10 forumla for getting date and use privtable for getting flatwise sche amount.

    I shall be much obliged if the forum could suggest a macro for getting flat wise schd amount on a specific date.
    This wiill be helpful for sedning out error free letters.

    Earlier the forum suggestd for code for row to coulm
    the coding are given below
    Sub ertert()
    Dim x, i&, j&, k&, s$
    x = Range("A1:C" & Cells(Rows.Count, 1).End(xlUp).Row).Value
    ReDim y(1 To UBound(x), 1 To 5)

    For i = 2 To UBound(x)
    If x(i, 1) = s Then
    j = j + 2: If j > UBound(y, 2) Then ReDim Preserve y(1 To UBound(y), 1 To j)
    y(k, j - 1) = x(i, 2)
    y(k, j) = x(i, 3)
    Else
    k = k + 1: j = 3
    y(k, 1) = x(i, 1)
    y(k, 2) = x(i, 2)
    y(k, 3) = x(i, 3)
    s = x(i, 1)
    End If
    Next i

    Range("D2").Resize(k, UBound(y, 2)).Value = y()
    End Sub
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: copyng colum to rows on a specific criteria

    Hi srinivasan1965,

    please use code tags around the code in your post (or simply remove this code)
    and try this
    Please Login or Register  to view this content.

+ 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] copy row with text in specific colum inbeween othre rows with text in other columns
    By Louisa Venter in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-14-2015, 12:07 AM
  2. [SOLVED] Insert Rows on Criteria and Copy content to Specific Cells in New Rows(Tables)
    By TheScott in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2015, 03:38 PM
  3. [SOLVED] Add rows after a specific criteria meet
    By Konexcelmath in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-12-2014, 05:51 PM
  4. Copyng today's data into a collated worksheet
    By YoungMacro in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-24-2013, 04:08 AM
  5. Copy Rows To New Sheet Based On Colum Criteria
    By stusic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-30-2008, 04:43 PM
  6. Delete rows if specific criteria not met.
    By SITCFanTN in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-04-2006, 07:25 PM
  7. [SOLVED] Sum rows if two columns = specific criteria.
    By Jeff in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2006, 08:35 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