+ Reply to Thread
Results 1 to 6 of 6

change formula to extract data from between two dates

  1. #1
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,293

    change formula to extract data from between two dates

    I have a workbook that monitors duel fuel vehicles for cost analysis. At present the output screen draws all of the entries specific to the chosen vehicle number from the entered data worksheet. I have a section that sums the values of the data for entries between two chosen dates. I would like the output screen to only display the entries corresponding to the two dates in use to pre-empt the problems encountered as the entries grow.

    The formula in question are in cells starting from b3,c3,d3,e3,f3,g3. The chosen dates are displayed in n1 and p1.

    Please Login or Register  to view this content.
    they are array formulas. Any help appreciated.

    test file attached
    Attached Files Attached Files
    Last edited by nigelog; 09-28-2015 at 04:54 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,862

    Re: change formula to extract data from between two dates

    Add date conditions to it:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Make sure L1 and N1 are real (excel) dates. Not just texts which look like a date (this was the case in a sample file)
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,293

    Re: change formula to extract data from between two dates

    Many thanks for the pointer Kaper. Have working now but would like to use date pickers - any way to automatically convert text entry to date format??

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,862

    Re: change formula to extract data from between two dates

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    DATEVALUE quite often works as expected if text format is close enough to system date format.

  5. #5
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,293

    Re: change formula to extract data from between two dates

    Thanks Kaper. Sorted it by referencing another cell as DATEVALUE of N1 and L1, and changing the cell references in formula to look up that cell. Works Perfect. Will mark as solved.

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,862

    Re: change formula to extract data from between two dates

    Glad to hear that, and thanks for reputation point

+ 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. Extract data between two dates to listbox
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2015, 07:07 PM
  2. Extract data between two dates
    By Ogi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-24-2014, 07:19 AM
  3. Formula to change chart data source for all dates up to today
    By jhalsall80 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 05-12-2014, 01:34 PM
  4. Extract unique dates from a list through formula only
    By maniknandi in forum Excel General
    Replies: 7
    Last Post: 07-29-2013, 02:48 AM
  5. Array formula to extract information in-between two dates
    By Kayees in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-25-2013, 05:00 AM
  6. Extract data between two dates
    By grey_hair in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-21-2011, 10:25 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