+ Reply to Thread
Results 1 to 6 of 6

How to find and extract values in a range

  1. #1
    Forum Contributor
    Join Date
    10-31-2012
    Location
    Norway
    MS-Off Ver
    Excel in Office 365
    Posts
    147

    How to find and extract values in a range

    Hi, I have a huge worksheet with over 5000 rows of customers, and I need to do all sorts of analyzing. I am now stuck with one thing and that is to analyze the data of the current customers, excluding the customers that are not active. The way to find out that a customer is active is to look at column H. If the last date shown for each customer is after today's date, it's active. If not, I need to exclude them in the analysis. Example: customers 23 and 32 are inactive. For instance, how do I count the active customers and sum up the premium in column C for only the active customers? I have attached the file.

    I appreciate the help !
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: How to find and extract values in a range

    try this...
    =COUNTIF(H3:H41,">"&TODAY())
    =SUMIF(H3:H41,">"&TODAY(),C3:C41)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    10-31-2012
    Location
    Norway
    MS-Off Ver
    Excel in Office 365
    Posts
    147

    Re: How to find and extract values in a range

    Thanks, but I also want to include all the data for each relevant customer including the data that's before today's date. Example: customer 5 has 9 entries and 450 in premium. But I want to exclude all the data for customers 23 and 32.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: How to find and extract values in a range

    sorry, mis-read the post
    Last edited by FDibbins; 12-11-2012 at 04:49 PM.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: How to find and extract values in a range

    duplicate post (by me) deleted

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: How to find and extract values in a range

    try this, copied down...
    =IF(A3=A2,"",COUNTIFS($A$3:$A$41,A3,$H$3:$H$41,">"&TODAY()))
    =IF(A3=A2,"",SUMIFS($C$3:$C$41,$A$3:$A$41,A3,$H$3:$H$41,">"&TODAY()))

  7. #7
    Forum Contributor
    Join Date
    10-31-2012
    Location
    Norway
    MS-Off Ver
    Excel in Office 365
    Posts
    147

    Re: How to find and extract values in a range

    Thanks for your help! Although it didn't exactly did what I needed, it helped me to work around the problem and come up with a solution.

    I couldn't have done it without your help !

+ 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