+ Reply to Thread
Results 1 to 3 of 3

Adjacent cells - setting criteria for "A" while averaging "B"

  1. #1
    Registered User
    Join Date
    02-09-2013
    Location
    U.S.
    MS-Off Ver
    Excel 2007
    Posts
    3

    Exclamation Adjacent cells - setting criteria for "A" while averaging "B"

    Hi all,

    I have two columns in excel, A and B, and A contains times in the 0-24 hour format. The adjacent column, B, has data that correspond to each particular time.

    What I am trying to do is sort through column A to find the averages of the values for each particular point in time (the times are roughly every 5 minutes for 24 hours). The attached example is only a snip-bit of the actual worksheet, which has up to 700 values down the column.

    Thank you!

    Example_plot.xlsx

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Adjacent cells - setting criteria for "A" while averaging "B"

    Something like this, maybe:

    =AVERAGEIF(A:A,TIMEVALUE("00:55"),B:B)

    Obviously you can adjust the value inside the TIMEVALUE function to suit whichever time you want the average for.

  3. #3
    Registered User
    Join Date
    02-09-2013
    Location
    U.S.
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Adjacent cells - setting criteria for "A" while averaging "B"

    Never mind, I just had to save the file. Thank you so much for your help!

    I made a column in E that has the various times in it (00:55, and so on) so i pasted the formula next to this column, deleted the time value("00:55"), and replaced it with the link to the adjacent time cell. I tried dragging this formula down the new time column to adjust all of these values, however the cells would not update themselves even though the formula within each adjusted for the adjacent time.

    Attached I have a file of what I'm referring to.

    Example_plot.xlsx
    Last edited by ilovemonkeys; 02-09-2013 at 11:59 AM.

+ 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