+ Reply to Thread
Results 1 to 5 of 5

Formula to find age groups

  1. #1
    Registered User
    Join Date
    11-08-2008
    Location
    uk
    Posts
    4

    Formula to find age groups

    Hello,

    I have a column with customers ages in it. Now what I'd like to do is create a formula that checks all the age cells, then gives a percentage for each age group of my choosing. I tried some IF formulas but I just can't figure it out

    Anyone help appreciated
    Last edited by VBA Noob; 11-08-2008 at 10:59 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    you could use something like
    Please Login or Register  to view this content.
    which would give average of ages beween 20-29

  3. #3
    Registered User
    Join Date
    11-08-2008
    Location
    uk
    Posts
    4
    What that's doing is finding the average number between the ages which isn't quite what i'm after. What i'm needing is the percentage of which that age group makes up

    For example

    25-35 = 30%
    36-45 = 40%
    46 and over = 30%

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    oops sorry try this array confirmed with control shift and enter
    Please Login or Register  to view this content.
    assuming you have no zero values
    count(b1:b50)could simply be replaced by the numer of rows or if you have zero values replace it with
    Please Login or Register  to view this content.
    still an array
    Last edited by martindwilson; 11-08-2008 at 10:20 AM.

  5. #5
    Registered User
    Join Date
    11-08-2008
    Location
    uk
    Posts
    4
    That works perfectly, thank you very much for 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