+ Reply to Thread
Results 1 to 3 of 3

copying multiple rows based on column criteria

  1. #1
    Registered User
    Join Date
    04-08-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    30

    copying multiple rows based on column criteria

    Hello Excel Gurus,

    I could use a little help with something. I have a bunch of rows with account data. Each of these rows have about 30 colums of customer data. One of the rows has total electricity usage for the customer. I need to copy over all of the customers data for ones that have over 50,000 KWH in one of the columes.

    The catch is, some customers have more than one account, and I need those customers that use of over 50,000 KWH regardless of how many accounts they have. So, I would need something that checks to see if each customer (customers with more than one account are listed multiple times) has more than one account, then sums up the values in the KWH column and then copies over their information if the total is greater than 50,000 KWH.

    Any clues?
    Last edited by harrydnyc; 06-07-2011 at 11:09 AM.

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: copying multiple rows based on column criteria

    First use an autofilter to create a unique list of customers, where every customer is listed only once. Then use a SumIF to find the total KWH for each customer. Lastly sort by the KWH to find all users with more than 50,000.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Registered User
    Join Date
    04-08-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: copying multiple rows based on column criteria

    Thanks! Sorry for the late response.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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