+ Reply to Thread
Results 1 to 8 of 8

averageifs help!

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    averageifs help!

    Hi all.
    Working with Excel 2010. Attached spreadsheet to this post.
    • Wind Data Tab
      This tab is filled with readings of wind speeds. I am only concerned with Date (column A) and Wind Data (int) (Column H). No additional calculations in this tab.
    • Calculation Tab (conveniently named )
      I am trying to automate the ability for someone to enter a date period and have the average wind speed displayed. There are three areas. One where they can enter just a period, any period; One that produces the "weekly average"; finally one for all daily wind speed averages.
    • I've left my attempt to use =averageifs in J3. =AVERAGEIFS('Wind Data'!$H$2:$H$16000;'Wind Data'!A2:A16000;">="&H3;'Wind Data'!A2:A16000;"<="&I3)... but obviously this isn't correct.
      - I'm guessing that the same formula can be entered into each of the cells Highlighted yellow (i.e. in each category - date range, week range, day range), but that might not be right either...

    There's a lot more formatting etc. to do in the Calculation tab, but i'm stuck here at this formula. anything you guys can do to help will be greatly appreciated!!!

    wind speed analysis.xlsx

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: averageifs help!

    You were mostly right.

    I modified H on the data tab to ABS(LEFT(blahblah) to convert to numbers.

    Attachment 262013

    D3 Date Range:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    J3 Weekly Average:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy downwards

    N3 Daily Average:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy downwards
    Last edited by daffodil11; 08-30-2013 at 04:30 PM. Reason: tags

  3. #3
    Registered User
    Join Date
    07-31-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: averageifs help!

    I've never been so happy to have someone break wind in my general direction!
    Thanks again.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: averageifs help!

    Hi and welcome to the forum

    the "numbers" you have in H are actually text. LEFT/RIGHT/MID() all produce text as an answer, so to be able to do calcs on them, you need to converrt...
    =LEFT(G2,2)*1

    Try that and see how you gety on?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: averageifs help!

    It was my treat.

  6. #6
    Registered User
    Join Date
    07-31-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: averageifs help!

    one final question...
    what does the & sign do in this equation?
    =AVERAGEIFS('Wind Data'!H2:H16000,'Wind Data'!A2:A16000,">="&Calculations!B3,'Wind Data'!A2:A16000,"<="&C3)

    just so i understand, nothing urgent.

    thanks again!

  7. #7
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: averageifs help!

    It's a concatenation symbol. It means "and" and is used for combining things and designates that the items before and after are separate.

    A1 = pretty
    B1 = pink
    C1 = unicorns

    D1 = A1B1C1 = A1B1C1 - This is no good!
    D1 = A1&B1&C1 = prettypinkunicorns - Hurray!

    Without & Excel thinks you're just referring to text or a named range.

  8. #8
    Registered User
    Join Date
    07-31-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: averageifs help!

    young grasshopper learn much today

    Very much appreciated.

+ 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. [SOLVED] AverageIfs, Max and Min
    By Odie2012 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-11-2012, 07:57 PM
  2. [SOLVED] MIN and MAX like an AVERAGEIFS?
    By superchill435 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-10-2012, 09:06 AM
  3. AverageIfs
    By DMAN11 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-07-2010, 05:31 PM
  4. Averageifs
    By rwtrader99 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-10-2010, 03:26 AM
  5. Averageifs
    By Dgates in forum Excel General
    Replies: 2
    Last Post: 04-06-2010, 07:50 PM

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