+ Reply to Thread
Results 1 to 6 of 6

Extracting Data from a Date Range and Criteria

  1. #1
    Registered User
    Join Date
    06-15-2015
    Location
    Edmonton, Alberta
    MS-Off Ver
    2007
    Posts
    2

    Extracting Data from a Date Range and Criteria

    Hi team I need your help!!

    I am attempting to get a formula working in a snazzy budget that Ive bee working on, but it doesn't seem to be working. I have a list of transactions that are recurring from week to week, and I am attempting to have them sorted and exracted based on a specific date range.

    Column A: the date
    Column B: the transaction category
    Column C: transaction amount

    Date category amount
    2-jan-15 food 8.00
    3-jan-15 bill 1 53.00
    3-jan-15 VISA Balance 90.00
    4-jan-15 Clothes 110.00
    4-jan-15 food 15.00
    5-jan-15 coffee 2.00
    6-jan-15 bill 2 98.00
    6-jan-15 rent 1000.00
    7-jan-15 food 5.00
    8-jan-15 VISA Balance 200.00


    The premise here is that I would like to extract the value of "VISA Balance" from the date range of jan-2 to jan-6. This formula needs to be relatively dynamic as I will be using it for other such transactions, and on varying date ranges on an ever expanding worksheet for 2015. I would be willing to provide the workbook if necessary.

    The formula that I'm using and not working is =index(c2:c1000,match(A2&"VISA Balance",if(A2:A1000>=2-jan-15,if(A2:A1000<=6-jan-5)),0))

    Any help you can give is great!!

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Extracting Data from a Date Range and Criteria

    Hi balloonfiasco and welcome to the forum,

    You problem looks like a Pivot Table problem to me. If you supply a workbook with some data I can show you what I'd do with it. I'd create a pivot table where the Category is the Filter, Amount is Values and Dates are the Rows. Then I'd filter on date range to get the correct dates and then filter out the Visa Balances. Easy Peasy and no formulas needed.

    Read
    http://www.pivot-table.com/2010/03/0...-date-filters/
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Extracting Data from a Date Range and Criteria

    In this formula the start date is in B1, the end date is in D1, the category is in B2. The columns can be expanded down to include as much data as you have. Column A has the date. Column B has the category. Column C has the amount.

    Please Login or Register  to view this content.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  4. #4
    Registered User
    Join Date
    06-15-2015
    Location
    Edmonton, Alberta
    MS-Off Ver
    2007
    Posts
    2

    Re: Extracting Data from a Date Range and Criteria

    Wow I didn't even think of using the SUMIFS formula for this extraction! There will really only ever be one value for each of the things I need extracted, so it does the job perfectly!

    Cheers!

  5. #5
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Extracting Data from a Date Range and Criteria

    Thanks. I'm glad it works for you.

  6. #6
    Registered User
    Join Date
    02-16-2011
    Location
    Seattle, Washington, USA
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Extracting Data from a Date Range and Criteria

    Quote Originally Posted by nigelbloomy View Post
    In this formula the start date is in B1, the end date is in D1, the category is in B2. The columns can be expanded down to include as much data as you have. Column A has the date. Column B has the category. Column C has the amount.

    Please Login or Register  to view this content.
    This looks like what I'm working on too. I think I have a simple question based on this: is there a particular format to use to hardcode the date to sort by month? I want to put each month it its own column, so the B1 would be 1/1/2015:1/31/2015, for instance, and just hardcode if for each month? Thanks.

+ 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. Extracting data from a range that changes daily based on a cells criteria
    By JohnnyBoyxxx in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-02-2014, 02:35 AM
  2. Replies: 0
    Last Post: 07-16-2014, 02:28 AM
  3. [SOLVED] Extracting a range of Data using criteria and seperate worksheets
    By donisha81 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-14-2012, 08:26 PM
  4. [SOLVED] Bucketing data based on DATE Range criteria
    By sumitk in forum Excel General
    Replies: 1
    Last Post: 05-19-2006, 07:16 PM

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