+ Reply to Thread
Results 1 to 8 of 8

Trying to count households from a list of customers

  1. #1
    Registered User
    Join Date
    03-31-2012
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    4

    Trying to count households from a list of customers

    Hello!

    I've attached a spreadsheet to help give an idea of what I'm trying to do. Is there a way to get excel to figure out how many households enjoy, say, fishsticks, from a list of customers? I was thinking that maybe something that could check the address in, say, row 2 against the row above it and if so, count the whole household as one (pretty much what I'm doing manually), but Something in my mind keeps saying that there's go to be a better way, but no matter how much hair I pull out, I still can't come up with a solution :P

    Testbook.xlsx

  2. #2
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Trying to count households from a list of customers

    EDIT: incorrect formula.
    Last edited by icestationzbra; 04-01-2012 at 11:10 AM.

  3. #3
    Registered User
    Join Date
    03-31-2012
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: Trying to count households from a list of customers

    It came up with the right answer, but when I tried to add more names & addresses to it, it stayed at 3. Maybe I edited the formula wrong?

  4. #4
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Trying to count households from a list of customers

    EDIT: incorrect formula.
    Last edited by icestationzbra; 04-01-2012 at 11:09 AM.

  5. #5
    Registered User
    Join Date
    03-31-2012
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: Trying to count households from a list of customers

    Didn't I? Maybe my brain is fried. I added three names, two addresses (and two yes households), and changed the end of my range to the appropriate row, but it still reads 3.

    Testbook.xlsx

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Trying to count households from a list of customers

    Shouldn't the expected answer be 8 rather than 5 ? The Mill Blvd addresses are all unique (2000-2003)

    Please Login or Register  to view this content.

  7. #7
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Trying to count households from a list of customers

    @softsurv:

    i am very sorry - my formula was completely utterly wrong. when i looked at @donkeyote's formula, i realised the error.

  8. #8
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Trying to count households from a list of customers

    A versatile alternative could be to use filters and SUBTOTAL

    Apply filters to all live columns

    In D1 input

    Please Login or Register  to view this content.
    If I helped, please don't forget to add to my reputation. (click on the star below the post)

    If the problem is solved, please: Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.

    Failure is not falling down but refusing to get up.

  9. #9
    Registered User
    Join Date
    03-31-2012
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: Trying to count households from a list of customers

    @DonkeyOte: I apparently wasn't paying attention when I had Excel fill those addresses, so you're right, it should have been 8. Your formula is perfect. I really hope I don't flub it up when I change it for work tomorrow. It would make my department's job so much less time consuming. Thank you so much!

    @icestationzbra: No worries, man. I've been trying unsuccessfully to make Excel do this all week, so I appreciate you taking a look at it anyway.

    @Russell Dawson: Correct me if I'm wrong, but that only appears to be counting the number of cells in the range. Even when I changed the range to encompass all of the data, it just seems to count "1" for each cell in the range.

+ 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