+ Reply to Thread
Results 1 to 5 of 5

Extracting data based on dates

  1. #1
    Registered User
    Join Date
    07-21-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    17

    Extracting data based on dates

    Hi guys,

    I have a table with 'Product Rereference', 'Date', and 'Estimated Assets' Columns. I need to run a formula that will extract the number in my 'Estimated Assets' column, based on speicific list of 'Product Reference' numbers that I have filetered, and a specific date - 1/31/ of each year.

    I've been trying to create a formula, however I can't seem to work it out.

    I have attached a file, which should make things a lot clearer :P I am trying to make the data extract into the table to the right. I have filled in the first few columns manually, to show what I would like to formula to achieve.

    Would be very grateful for any help I can get!

    Jodapo
    Attached Files Attached Files
    Last edited by jodapo; 08-07-2009 at 09:12 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Extracting data based on dates

    Put this formula in H3, then copy down and across. Be sure to widen those columns!

    =SUMPRODUCT(--(YEAR($B$3:$B$6000)=H$2),--($A$3:$A$6000=$G3),$E$3:$E$6000)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-21-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Extracting data based on dates

    Thanks, however I'm looking for a formula that does something slightly different.

    The formula you posted sums all the numbers in the 'estimated assets' column for a given year. Is there any way to make it instead display *only* the 'estimated assets' amount for January of that year?

    E.g a formula that would automatically display 48746 in H3, 6492197 in I3?, and 25900000 in H4?

    Jodapo

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Extracting data based on dates

    Like so:

    =SUMPRODUCT(--(YEAR($B$3:$B$6000)=H$2),--(MONTH($B$3:$B$6000)=1),--($A$3:$A$6000=$G3),$E$3:$E$6000)

  5. #5
    Registered User
    Join Date
    07-21-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Extracting data based on dates

    Works perfectly. Thank you so much!!!

+ 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