+ Reply to Thread
Results 1 to 14 of 14

Exracting Column Data using a Date Range

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    Brisbane, Queensland
    MS-Off Ver
    Excel 2013
    Posts
    14

    Exracting Column Data using a Date Range

    I am stumped trying to do this.
    I have a workbook in excel 07 with several worksheets.
    Worksheet data is arranged by date (column 1 is always "Date") and related data columns are 2,3,4...n (all named).

    What I am trying to do is set up an area separate to the data where I can input two dates and return the summed value of another data column for that date range, say column 4 "Cost".

    An example would be: cell AS2 gets input "13/08/2012", cell AT2 gets input "20/08/2012", summed output of column 4 "Cost" for that date range is output to cell AU2.

    If I could do that from a worksheet other than the one containing the data it would be a bonus but I could work around that if too difficult or too much overhead is involved.

    My main problem here is that I need to take periodic snapshots of the dataset for different periods of time, hence the need to be able to just input dates rather than an entire formula.

    I just hope there's some wizard here who can put me on the right track.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Exracting Column Data using a Date Range

    In AU2 cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    11-14-2012
    Location
    Brooklyn, NY
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Exracting Column Data using a Date Range

    this formula is for cell 'AU2' to get a sum of the cost in a specific range
    =SUMIFS('Cost Column,'Date Column',">="&AS2,'Date Column',"<="&AT2)

    you can also make formulas further down the sheet to return detailed values for the given date range

    Thank you

  4. #4
    Registered User
    Join Date
    11-15-2012
    Location
    Brisbane, Queensland
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Exracting Column Data using a Date Range

    Thanks sixthsense but I can't get it to work.
    No errors but it returns a value of 0 but should calculate 61.48
    I went through and even made sure all intervening cells had a value ("0")
    I'm still stumped ???
    Last edited by kazaly; 11-15-2012 at 04:32 AM. Reason: typo lol

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Exracting Column Data using a Date Range

    It should work! If possible attach a sample workbook with less data.

  6. #6
    Registered User
    Join Date
    11-15-2012
    Location
    Brisbane, Queensland
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Exracting Column Data using a Date Range

    Thanks also JFR2262, but the formula errors at Cost.
    I've even named all the ranges from rows 2 to 500 but no go.
    Still stuck I'm afraid

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Exracting Column Data using a Date Range

    May be your Cost Column Values are not real Numbers, formatted as text.

  8. #8
    Registered User
    Join Date
    11-15-2012
    Location
    Brisbane, Queensland
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Exracting Column Data using a Date Range

    Thanks for that Sixthsense, I've attached the workbook.
    My initial example was off the top of my head.
    The worksheet is 12Costs.
    The date column is A
    The Goods column M is what I was calculating.
    Your formula is in AC2
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    11-15-2012
    Location
    Brisbane, Queensland
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Exracting Column Data using a Date Range

    No, column Values are formatted as date and accounting.

  10. #10
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Exracting Column Data using a Date Range

    The reason is that the Date's are in Column-A is not real date. It is Text Values. Keep your system Date setting in DD/MM/YYYY format. Close the file

    Now control panel>Regional and Language Option>Regonal Option>>Customize>>Date>>

    Short date DD/MM/YYYY
    Long date DD/MM/YYYY

    Ok>>OK.

    Open your file and place the cursor in Column-A and press Alt+D+E>>Next>>Next>>Finish.

    Now check the formula, you should have got the result.

  11. #11
    Registered User
    Join Date
    11-15-2012
    Location
    Brisbane, Queensland
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Exracting Column Data using a Date Range

    Sixthsense thank you so much,
    I never would have got that if not for you.
    You sir are a Star!

  12. #12
    Registered User
    Join Date
    11-15-2012
    Location
    Brisbane, Queensland
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Exracting Column Data using a Date Range

    Just as a matter of interest, is it possible to use this formula from a different worksheet?

  13. #13
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Exracting Column Data using a Date Range

    Yes, Use Keyboard or Mouse to select the ranges, excel will automatically add the sheet names and the ranges. Don't refer it manually by typing the reference, since it cause error if you don't know how to refer it by including the sheet name.

  14. #14
    Registered User
    Join Date
    11-15-2012
    Location
    Brisbane, Queensland
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Exracting Column Data using a Date Range

    Thanks again for your help with this.
    I've fiddled with Excel a lot over the years but some of the advanced functions leave me a bit confused.
    I don't think I've ever seen the syntax you used in the SUMIFS formula in the help files.
    It reminds me very much of Lotus which I always found to be a lot more straightforward than Excel.
    Thanks again for all your help!
    Cheers
    Col

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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