+ Reply to Thread
Results 1 to 12 of 12

Sum IF

  1. #1
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Excel 2003
    Posts
    130

    Sum IF

    Hi,

    How can I extract all the values ..........see example attached (better formatting)

    YES SOME OF THE DATES HAVE TIME IN THEM and I am not sure how to extract just date too :-(

    Thanks for all your help
    Omer


    Yes/NO

    11/14/13 Apples 21-781 1
    11/14/13 Banana 21-782 1
    8/1/14 Banana 21-783 1
    1/4/13 Pineapple 68-946
    11/14/13 Celery 68-947
    11/14/13 Oranges 66-108
    1/6/12 Apples 66-109
    11/14/13 Oranges 34-771
    11/14/13 Banana 34-772
    11/14/13 Oranges 34-773
    12/31/14 Apples 68-948
    11/14/13 Banana 68-949
    11/14/13 Pineapple 21-780 1
    6/1/13 Pineapple 21-785 1
    8/1/12 Apples 21-786 1

    Would like the following results from the table above

    From To Desc 2012 2013 2014

    1/1/2012 12/31/2012 Apples 1 1
    1/1/2013 12/31/2013 Bananas 1 1
    1/1/2014 12/31/2014 Oranges
    Pineapple 2
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,458

    Re: Sum IF

    A Pivot Table seems to be doing the trick
    Attached Files Attached Files

  3. #3
    Forum Contributor jayajaya_4's Avatar
    Join Date
    05-09-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    259

    Re: Sum IF

    ur expected reults are bit confusing as 1/1/2012 12/31/2012
    1/1/2013 12/31/2013
    1/1/2014 12/31/2014
    are not available above...need clarifications on it??

  4. #4
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Excel 2003
    Posts
    130

    Re: Sum IF

    The dates are there my friend........ For clarification

    I want to see how many apples I bought in the year 2012, 2013, 2014.................& then within 2012 How many in the month of Jan, feb, mar.....etc

    Thanks

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,458

    Re: Sum IF

    See my post. You can group a Pivot Table per month AND per year

  6. #6
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Excel 2003
    Posts
    130

    Re: Sum IF

    Pepe,

    There is only "6" items I bought ( The ones with 1 in column D).......So Grand total in you pivot table cannot be more then 6 (Its showing 15) :-)

    Also, can this be done without pivot table............or you are gonna have to give me instructions for my 42000 entries I have in my table.

    THANKS FOR TRYING AND HELPING ME

  7. #7
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Excel 2003
    Posts
    130

    Re: Sum IF

    Pepe,

    Only count apples if there is a "1" in column D :-)..........Then how many per year and month

    THX

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,458

    Re: Sum IF

    Better like this?
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Excel 2003
    Posts
    130

    Re: Sum IF

    YOU THE MAN PEPE.


    Now send me some basic instructions so I can do it for my 42,000 entries

    Thanks
    Omer

  10. #10
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,458

    Re: Sum IF

    First add headers to your columns
    Select a cell in the table
    Go to the Insert ribbon - Select Pivot Table and follow the wizard to obtain the same layout as I showed

  11. #11
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Excel 2003
    Posts
    130

    Re: Sum IF

    Thx Pepe....I will try this afternoon

  12. #12
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,458

    Re: Sum IF

    If you still use 2003 it might be a bit different, but it's rather self explanatory
    There is some help at http://www.contextures.com/xlPivot02.html

+ 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