+ Reply to Thread
Results 1 to 8 of 8

Copying entire row if other column has a value of >1

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    5

    Unhappy Copying entire row if other column has a value of >1

    Hello,

    I have a spreadsheet with Debtor information, with names in column D and the months of payment in columns I-AR. the rows represent different people. I want to create a sheet for each months with the names of the debtors that have to pay in that month. Each debtor has the amount it has to pay in the column of the month that this is due. therefore I think this is possible using a VBA macro that copies the rows for each column when the value of that row in that colum is bigger than 1. By doing this for each colum I will get several sheets each representing one month and containing the names of the debtors that are due that month.
    I tried a lot of Macro's already but none of them helped me out yet.

    In short:

    The names are in colum D
    The months are represented in colums I - AR

    I am looking for a macro that copies all rows that have values >1 in for example colum I, and then duplicate this macro for all other colums.

    I hope you can help me out!

    Cheers!

    Derk

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Copying entire row if other column has a value of >1

    attach please a sample file with data and desired result
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    05-13-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Copying entire row if other column has a value of >1

    example.xlsx

    Sorry, hereby example.
    With in sheet 2 the desired result

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Copying entire row if other column has a value of >1

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-13-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Copying entire row if other column has a value of >1

    It creates an extra sheet, but the extra sheet is empty

  6. #6
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Copying entire row if other column has a value of >1

    attach please the real file

  7. #7
    Registered User
    Join Date
    05-13-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Copying entire row if other column has a value of >1

    The original file contains confidential numbers so I cannot put it online.

    I have in colum A: nothing
    Colum B: account numbers
    colum C: Dates
    Colum D: Name of debtor
    Colum E: amount
    Colum F: 1 or 2 (no idea)
    Colum G and H some more info about the debtor
    And colums I - AR contain different months of the year.

    1st rows are categorial so the values start at row 2, they continue till row 105.

    I hope I have scetched the file good enough, else, ask me anything

  8. #8
    Registered User
    Join Date
    05-13-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Copying entire row if other column has a value of >1

    And the name of the sheet is 'deb'

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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