+ Reply to Thread
Results 1 to 4 of 4

AVERAGEIF + INDIRECT + DATE Function Help

Hybrid View

  1. #1
    Registered User
    Join Date
    08-04-2018
    Location
    United States
    MS-Off Ver
    Office 2010
    Posts
    2

    AVERAGEIF + INDIRECT + DATE Function Help

    Hello,

    This is what I am trying to achieve with my formula:

    1. Reference another cell in the list on the same page that would contain the sheet name and pull down the formula without having to manually type the sheet names.
    2. If it's within the certain date range in the current month, then take the average of the data.


    What I currently have:
    =AVERAGEIFS(HELLO!$B:$B,HELLO!$A:$A,”>"&DATE(YEAR(TODAY()),MONTH(TODAY()),1),HELLO!$A:$A,""&DATE(YEAR(TODAY()),MONTH(TODAY()),31))


    What I want to accomplish:
    =AVERAGEIFS(INDIRECT"'"&A1&"'!"&A:A),2,0),INDIRECT"'"&A1&"'!"&B:B),2,0)”>"&DATE(YEAR(TODAY()),MONTH(TODAY()),1),INDIRECT"'"&A1&"'!"&A:A),2,0),""&DATE(YEAR(TODAY()),MONTH(TODAY()),31))


    Breakdown:
    1. A1 = Sheet Name
    2. A:A = Contains the date that I want to lookup
    3. B:B = Contains the data that I want to average after A:A is found

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,945

    Re: AVERAGEIF + INDIRECT + DATE Function Help

    double post:
    https://www.excelforum.com/excel-for...tion-help.html
    Ben Van Johnson

  3. #3
    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
    53,048

    Re: AVERAGEIF + INDIRECT + DATE Function Help

    Hard to say for sure without seeing some sample data, but based on your 2nd formula, you have some " either missing or out of place...
    =AVERAGEIFS(INDIRECT"'"&A1&"'!"&A:A),2,0),INDIRECT"'"&A1&"'!"&B:B),2,0)”>"&DATE(YEAR(TODAY()),MONTH(TODAY()),1),INDIRECT"'"&A1&"'!"&A:A),2,0),""&DATE(YEAR(TODAY()),MONTH(TODAY()),31))
    =AVERAGEIFS(INDIRECT("'"&A1&"'!A:A"),2,0),INDIRECT("'"&A1&"'!B:B"),2,0)”">"&DATE(YEAR(TODAY()),MONTH(TODAY()),1),INDIRECT("'"&A1&"'!A:A"),2,0),"<"&DATE(YEAR(TODAY()),MONTH(TODAY()),31))
    What are you trying to do with the BOLDED parts?

    and what are you trying to do here...
    DATE(YEAR(TODAY()),MONTH(TODAY()),1)
    DATE(YEAR(TODAY()),MONTH(TODAY()),31)
    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

  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
    53,048

    Re: AVERAGEIF + INDIRECT + DATE Function Help

    The other thread has been closed

+ 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. AVERAGEIF + INDIRECT + DATE Function Help
    By theinquirer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-04-2018, 02:06 AM
  2. [SOLVED] Averageif date within 365 days of cell date
    By ipausa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-19-2018, 05:38 PM
  3. [SOLVED] AVERAGEIF function help
    By phbryan in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-30-2014, 08:46 AM
  4. [SOLVED] INDIRECT Function with multiple sheets - SUMIF, INDIRECT & MATCH
    By DJDRU in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-07-2014, 08:42 AM
  5. Help with AverageIf function
    By rcarruth in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-15-2014, 01:45 PM
  6. [SOLVED] Need help with AVERAGEIF function
    By JagRyan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-14-2013, 04:18 PM
  7. [SOLVED] Averageif Function in VBA
    By benzacac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-19-2013, 11:59 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