Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Excel Thing

  • 18-03-2008 5:53pm
    #1
    Closed Accounts Posts: 1,205 ✭✭✭


    Hello all,

    I have a query for any Excel heads out there.

    I have a list of peoples ages for a healthcare project like this:

    1
    1
    1
    1
    1
    1
    1
    1
    1
    2
    2
    2
    3
    3
    3
    4
    4
    4
    5
    5
    6
    7
    7
    8
    9
    10
    10
    10

    Does anyone know a formula that will say:

    There are 7 1 year olds
    There are 5 2 year olds
    There are 6 3 year olds
    etc.

    And maybe put them on a bar graph.

    Any ideas?

    Thanks

    Barney


Comments

  • Registered Users, Registered Users 2 Posts: 1,488 ✭✭✭mathew


    There is a function called =frequency afaik. I think the syntax is =frequency(data, number)
    Where data is the array of data to check through, and num is the age to check.

    You would have to do each age in a different cell and then make a barchart of that group of cells.


  • Registered Users, Registered Users 2 Posts: 12 d2x2


    Use PivotTable reports and PivotCharts. No calculations or functions required! If you have never used them, you may find them odd at first but they are well worth learning. Anyway I give you all the steps below.

    Name the column with all the ages 'Age' and select it.

    -Start the PivotTable wizard from the Data Menu.
    -All the defaults will be fine, until Step 3, where you will click Layout.
    -Then drag Age onto the Row area; then drag Age onto the Data area.
    -Double-click that last and change the Summarize by value to Count (instead of sum because you want to count the number of occurences of each age and not add them up).

    Hey presto. Click OK as many times as needed to get out of the Wizard and you have the table created for you.

    PivotCharts work in a similar way although you can simply click the chart icon once your PivotTable is created and it's as simple as creating a regular chart.


  • Closed Accounts Posts: 1,205 ✭✭✭barneysplash


    d2x2 wrote: »
    Use PivotTable reports and PivotCharts. .

    Ooooohh that's clever! :)

    Worked perfectly, thanks for the help.

    Barney


Advertisement