We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

Need Some Help from an Excel Guru

Ok, I have a spreadsheet with the following info:

Date of Contact, Week number of contact, Date of Visit, Days between Contact and Visit, Date of Second Visit, Days between First and Second Visit (you get the idea).

Example
01/10/09 38 03/10/09 2 10/10/09 7
02/10/09 38 05/10/09 3 13/10/09 8

What I am trying to do is to be able to group by the Week number then calculate the average for the different days between.

In the above example I would see 38 and 7.5

Points to note/consider the data may not be sequential, i.e. the week numbers can be spread down the column, and I do not want to have to maintain week numbers (in cells somewhere).

Very much appreciate help.

Thanks cloud_dog
Personal Responsibility - Sad but True :D

Sometimes.... I am like a dog with a bone

Comments

  • DCFC79
    DCFC79 Posts: 40,652
    Part of the Furniture 10,000 Posts Name Dropper
    Forumite
    Maybe use the following for averages

    Calculating an Average

    You can use the AVERAGE function to calculate the average of a series of numbers.
    1. Move your cursor to cell A6.
    2. Type Average.Press the right arrow key to move to cell B6.
    3. Type =AVERAGE(B1:B3).
    4. Press Enter. The average of cells B1 to B3, which is 21, will appear.
    Calculating an Average by Using the Sum Icon

    In Microsoft Excel XP, you can use the Sum icon to calculate an average.
    1. Move your cursor to cell C6.
    2. Click the drop-down arrow next to the Sum icon.
    3. Click Average.
    4. Highlight C1 to C3.
    5. Press Enter. The average of cells C1 to C3, which is 100, appears.
    taken from this site
  • loudcox
    loudcox Posts: 179 Forumite
    I'd create a pivot table based on the data range you described. In Excel 2007 it's under the Insert menu; earlier versions I think it's Data => Pivot table.

    Use "week number" as the Row Value
    Use "Days between contact and visit" as the value - which by default will sum it. Right click the the "Sum of Days...." column header and select Value Field Options
    Change from Sum to Average and click OK.

    PM me if you need further assistance
    [SIZE=-1]te audire non possum. musa sapientum fixa est in aure.[/SIZE]
  • cloud_dog
    cloud_dog Posts: 6,477
    Part of the Furniture 1,000 Posts Name Dropper Photogenic
    Forumite
    loudcox wrote: »
    I'd create a pivot table based on the data range you described. In Excel 2007 it's under the Insert menu; earlier versions I think it's Data => Pivot table.

    Use "week number" as the Row Value
    Use "Days between contact and visit" as the value - which by default will sum it. Right click the the "Sum of Days...." column header and select Value Field Options
    Change from Sum to Average and click OK.

    PM me if you need further assistance
    loudcox, I was looking at using a pivot table but couln't fgiure out how to get an average as opposed to a sum.

    Many thanks.
    Personal Responsibility - Sad but True :D

    Sometimes.... I am like a dog with a bone
This discussion has been closed.
★ ★ ★ Meet your Ambassadors

Categories

  • All Categories
  • 356K Banking & Borrowing
  • 255K Reduce Debt & Boost Income
  • 456.3K Spending & Discounts
  • 248.5K Work, Benefits & Business
  • 606.4K Mortgages, Homes & Bills
  • 179.1K Life & Family
  • 264.2K Travel & Transport
  • 1.6M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.7K Read-Only Boards
Quick Search

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.