+ Reply to Thread
Results 1 to 3 of 3

Need IF statement (inside of Linest Function) that will select range based on dates

  1. #1
    Registered User
    Join Date
    05-07-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Need IF statement (inside of Linest Function) that will select range based on dates

    Hello All,

    This may sound a bit confusing, but I really need some help processing a large volume of data. OK so I need to use LINEST to extract Gamma, Beta, and Alpha from a list of data based on a quadratic equation. However, I want to be able to add an if function/statement so that the range of the LINEST function is only for data pertaining to a certain year. I have attached the worksheet. the LINEST functions for Gamma, Beta, and Alpha are in cells A2,B2, and C2 respectively (they are currently only using 2008, for example).

    Basically I need to figure out a way to select the range for the three linest functions based on the year in (column A values) was collected. I need a dynamic range because different years, and subsequent data sites, have different # of observations. If anyone could help me solve this problem it would be greatly appreciated! Let me know if this is confusing, it is difficult to put into words.
    Excel_Question_Example.xlsx

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

    Re: Need IF statement (inside of Linest Function) that will select range based on dates

    Put the year in E2.
    Find the row of the first data point for that year:
    F2:
    Please Login or Register  to view this content.
    Find the last data point row:
    G2:
    Please Login or Register  to view this content.


    Gamma:
    Please Login or Register  to view this content.
    Beta:
    Please Login or Register  to view this content.
    Alpha:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-07-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Need IF statement (inside of Linest Function) that will select range based on dates

    Thank you so much! You just saved me a lot of time (and headache--ha!)

+ 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. INDIRECT inside a LINEST function
    By Glenn Kennedy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-24-2013, 12:06 PM
  2. [SOLVED] Linest Function - Unable to get LinEst property of the WorksheetFunction class
    By fbs13 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-25-2013, 09:55 AM
  3. [SOLVED] Dynamic range lookup inside of an If statement
    By mattdaviddesign in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2013, 04:39 PM
  4. Using a LEFT Function inside of an IF Statement
    By Squirt03 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-14-2013, 01:04 AM
  5. [SOLVED] LINEST range based on value of Column
    By MR.BIG.RED in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-03-2012, 07:49 AM

Tags for this Thread

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