Results 1 to 5 of 5
  1. #1
    4 Star Lounger pccoyle's Avatar
    Join Date
    Apr 2001
    Location
    Auckland, Auckland, New Zealand
    Posts
    535
    Thanks
    3
    Thanked 2 Times in 2 Posts

    Unique Data (2003)

    The attached sample sheet lists all the contacts for each customer account - column D indicates if a phone call schedule has been enabled for a specific contact within an account (Y).
    Accounts can have multiple contacts, only one should have the call schedule enabled.
    How can I extract accounts where all the contacts for that account have N in column D? eg see acount 105 in the sample, while the other accounts would not be listed. <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>
    Paul Coyle
    Approach love and cooking with reckless abandon

  2. #2
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Unique Data (2003)

    Hi Paul

    I don't if you are looking for an automated answer using code, but a simple way would just use the autofilter and just copy and paste to a new sheet.....or am I looking at this to simplisticly <img src=/S/shrug.gif border=0 alt=shrug width=39 height=15>
    Jerry

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Unique Data (2003)

    Create a new column next to the data:
    - In G1, enter any title, e.g. CountY.
    - In G2, enter the formula
    <code>
    =SUMPRODUCT(($A$2:$A$9=A2)*($D$2:$D$9="Y"))
    </code>
    - If your actual data extend to beyond row 9, change the formula accordingly.
    - Fill down as far as needed.
    - You can now use either AutoFilter or Advanced Filter (in the Data | Filter submenu) to select the records with CountY equals 0.

  4. #4
    4 Star Lounger pccoyle's Avatar
    Join Date
    Apr 2001
    Location
    Auckland, Auckland, New Zealand
    Posts
    535
    Thanks
    3
    Thanked 2 Times in 2 Posts

    Re: Unique Data (2003)

    Hans, thank you so much, works a treat - just what I needed. <img src=/S/clapping.gif border=0 alt=clapping width=19 height=23>
    Paul Coyle
    Approach love and cooking with reckless abandon

  5. #5
    4 Star Lounger pccoyle's Avatar
    Join Date
    Apr 2001
    Location
    Auckland, Auckland, New Zealand
    Posts
    535
    Thanks
    3
    Thanked 2 Times in 2 Posts

    Re: Unique Data (2003)

    Thank you for your prompt reply Jerry, Hans gave me the solution using the SUMPRODUCT function. <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>
    Paul Coyle
    Approach love and cooking with reckless abandon

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •