+ Reply to Thread
Results 1 to 2 of 2

Formula for finding averages based on numerical data

  1. #1
    Registered User
    Join Date
    08-22-2017
    Location
    United States
    MS-Off Ver
    2010
    Posts
    1

    Formula for finding averages based on numerical data

    Hello,

    I am working with a spreadsheet that contains numerical data. To give some context, the data is measurements of depth, dissolved oxygen and temperature in a lake taken every 0.1 second. I want to compile average DO and temperature for every meter, but have multiple measurements within a meter. The N for each measurement within a meter is not constant.


    Example:
    A B C
    DEPTH (m) DO (mg/l) TEMP (C)
    1 0.672 11.46 11.19
    2 0.673 11.46 11.19
    3 0.673 11.46 11.19
    4 1.589 11.47 10.9
    5 1.612 11.48 10.89
    6 1.685 11.48 10.85



    I was trying to use an =AVERAGEIFS statement such as

    =AVERAGEIFS(B:B, A:A, ">0" & <1") to get an average of 11.46 for >1m
    and
    =AVERAGEIFS(B:B, A:A, ">1" & <2") to get an average of 11.47 for an average within the 1m measurements

    Same for temperature

    Some of my lakes are 60 meters, so I wanted a quick way to get all of the averages for each meter, but my statements have only produced #DIV/0!

    Any help on how to quickly and efficiently process these data without having to go through and highlight cells using the =AVERAGE function would be very helpful.

    Thank you!

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Formula for finding averages based on numerical data

    Welcome to the forum.

    You need to put the two criteria in separately:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    To save you putting the depths into the formulae manually, you could put the 0 & 1, 1 & 2, etc into other cells, then use something like this (with the lower (shallower) figure in col E and higher (deeper) in col F):
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hope that does what you want.

    Edit: you'll see I've put <= into the formulae, not just < so you get measurements for deeper than 0m down to 1m, deeper than 1m (i.e. from 1.00000000000001) down to 2m, etc.
    If you prefer to have 0m to just under 1m (0.99999999999999m), 1m to just under 2m, etc, then use >= and < instead of > and <=. Hope that makes sense!
    Last edited by Aardigspook; 08-22-2017 at 04:12 PM. Reason: Add note about greater/less than / equal to
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 03-23-2017, 10:31 PM
  2. Finding Averages by Month from a multi year daily data range
    By Trevasaurus in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-07-2015, 07:18 PM
  3. Need help finding averages using past data only
    By SL4CKER in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-28-2015, 07:03 PM
  4. Formula for looking up averages based off a value
    By matt2345 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2014, 09:23 PM
  5. Need help with Data Validation Formula for a set of numerical and text-based values
    By bozhidar.ivanov in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-30-2014, 10:32 AM
  6. [SOLVED] Formula that averages percentages based on said criteria
    By Leif Magnus in forum Excel General
    Replies: 3
    Last Post: 09-14-2012, 04:26 PM
  7. Replies: 6
    Last Post: 11-09-2010, 07:32 AM

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