+ Reply to Thread
Results 1 to 5 of 5

Help with if statement with dates

  1. #1
    Registered User
    Join Date
    01-07-2009
    Location
    mississippi, usa
    MS-Off Ver
    Excel 2007
    Posts
    27

    Help with if statement with dates

    Ok here is the deal. I have a company, I have several employees and i have made a spreadsheet for each.

    i have a invoice number column and date column and profit column for each job that they do. they may do several jobs in one day. what i want to know is how much they make total for the week. so in a separate column i want a weekending "such and such date" profit total

    get what im saying?

    then i can have this for each person then i can just add up each persons week ending column to see how much i have made for this week. but i only what it to add up the numbers in a set range of dates.

    for instance in the week ending 9/4/09 column it should only add profits that go from dates aug 30 to sept 4. and in weekending column 9/11/09 it should only add up profits corresponding to dates between 9/7/09 and 9/11/09

    get what im saying?? ill post tiny sample if fake spreadsheet. 07 version
    Attached Files Attached Files
    Last edited by jmoore1197; 10-06-2009 at 03:11 PM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Help with if statement with dates

    IMO, you will better served by using a single worksheet to hold all data and using a Pivot Table to calculate weekly, monthly, yearly, etc. totals
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Help with if statement with dates

    If you enter only the date ending in E2 (i.e. 9/4/2009, etc) then in E3:

    =SUMIF($C$3:$C$9,">"&E2-7,$D$3:$D$9)-SUMIF($C$3:$C$9,">"&E2,D3:D9)

    copied across... adjust ranges to suit.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    01-07-2009
    Location
    mississippi, usa
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Help with if statement with dates

    Quote Originally Posted by NBVC View Post
    If you enter only the date ending in E2 (i.e. 9/4/2009, etc) then in E3:

    =SUMIF($C$3:$C$9,">"&E2-7,$D$3:$D$9)-SUMIF($C$3:$C$9,">"&E2,D3:D9)

    copied across... adjust ranges to suit.

    will try and get back.. thanks a million

  5. #5
    Registered User
    Join Date
    01-07-2009
    Location
    mississippi, usa
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Help with if statement with dates

    Quote Originally Posted by NBVC View Post
    If you enter only the date ending in E2 (i.e. 9/4/2009, etc) then in E3:

    =SUMIF($C$3:$C$9,">"&E2-7,$D$3:$D$9)-SUMIF($C$3:$C$9,">"&E2,D3:D9)

    copied across... adjust ranges to suit.


    PERFECT you guys are too good!!! i think ive had 3 questions for you guys and they were all answered in about 10 min a piece. yall are great!!! ill marked solved now

+ 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