+ Reply to Thread
Results 1 to 4 of 4

Logic formulas when counting unique clients

  1. #1
    Registered User
    Join Date
    02-17-2023
    Location
    Kansas City
    MS-Off Ver
    2301
    Posts
    1

    Logic formulas when counting unique clients

    I need help building a logic function to be able to determine which of my clients received one service but not another. In the sample data, I show clients who received haircuts and washes. I need to know who received just a haircut, just a wash, and who received both.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Logic formulas when counting unique clients

    I don't have 365 so, using old array formulas:
    unique ids across G2:P2
    Please Login or Register  to view this content.
    Count wash only (G3)
    Please Login or Register  to view this content.
    Hcut only (G4)
    Please Login or Register  to view this content.
    both: =G3*G4
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Logic formulas when counting unique clients

    Another way.


    F
    G
    H
    3
    Wash
    7
    In G3: =SUM(COUNTIFS($A$2:$A$15,$A$2:$A$15,$C$2:$C$15,$C$2:$C$15,$C$2:$C$15,F3))
    4
    Haircut
    7
    In G4: =SUM(COUNTIFS($A$2:$A$15,$A$2:$A$15,$C$2:$C$15,$C$2:$C$15,$C$2:$C$15,F4))
    5
    Both
    4
    In G5: =SUM(IF(COUNTIFS($A$2:$A$15,$A$2:$A$15)=2,1))/2
    Dave

  4. #4
    Registered User
    Join Date
    06-02-2020
    Location
    Turkey
    MS-Off Ver
    365 TR - V.2309
    Posts
    97

    Re: Logic formulas when counting unique clients

    Another option
    (with Excel365)

    Only Wash

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or with LET function
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Only Haircut

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or with LET function
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Both (Wash and Haircut)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or with LET function
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by 52779; 02-18-2023 at 04:23 PM.

+ 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. Matching Unique List of Clients based on Multiple Columns
    By scottyboy218 in forum Excel General
    Replies: 10
    Last Post: 06-06-2018, 04:04 PM
  2. Replies: 4
    Last Post: 07-20-2016, 01:08 PM
  3. Counting clients to provide a bonus
    By trosasco23 in forum Excel General
    Replies: 4
    Last Post: 07-06-2015, 04:45 PM
  4. Counting clients and sum total
    By Christopherdj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-03-2014, 06:56 PM
  5. How to count the number of unique clients per year?
    By VBAhelp3456 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-03-2014, 06:11 AM
  6. hiding columns with formulas, from clients
    By happydaize in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-24-2013, 09:25 AM
  7. [SOLVED] Counting unique clients during a specific period of time with other criteria
    By dkstew in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-30-2012, 12:17 PM

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