+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : if statement with multiple factors

Hybrid View

ricenog if statement with multiple... 06-30-2010, 01:13 PM
royUK Re: Excel Formula 06-30-2010, 01:14 PM
DonkeyOte Re: if statement with... 06-30-2010, 04:43 PM
ricenog Re: if statement with... 06-30-2010, 05:38 PM
ricenog Re: if statement with... 06-30-2010, 06:22 PM
  1. #1
    Registered User
    Join Date
    06-30-2010
    Location
    Miami, FL
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question if statement with multiple factors

    Trying to get spreadsheet to create a formula based on four factors:


    If cells in F3:F500 = "submitted"

    AND


    cells in E3:E500 =DATE are between
    (June 1, 2010) and (June 30, 2010)

    THEN

    SUM of any or all cells in G3:G500 only if value of cells in E3:E500 are within dates between (June 1, 2010) and (June 30, 2010 and if not within dates, then only give sum of those with particular dates from those in cells E
    Last edited by ricenog; 06-30-2010 at 06:22 PM. Reason: First time and messed up

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Excel Formula

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: if statement with multiple factors

    I am presuming the title to now be satisfactory (?)

    Given use of XL2007 you can use SUMIFS

    =SUMIFS(G3:G500,F3:F500,"submitted",E3:E500,">="&DATE(2010,6,1),E3:E500,"<"&DATE(2010,7,1))

  4. #4
    Registered User
    Join Date
    06-30-2010
    Location
    Miami, FL
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: if statement with multiple factors

    Thank you DonkeyOte. I appreciate you taking the time and replying to me. I tried it and couldn't get it to work.


    I have my spreadsheet which contains the following:



    F3:F500 - one of the following: "submitted", "GAS", "FOOD", "MISC", "RESTAURANTS"

    E3:E500 - dates between April 1, 2010 - Decemeber 31, 2010

    G3:G500 - total debited from bank.


    Formula I am using:

    =SUMPRODUCT(--(F3:F500="submitted"),--(E2:E500<=DATE(2010,6,1))--(G2:G500))


    The date range is not being picked up by the formula.

  5. #5
    Registered User
    Join Date
    06-30-2010
    Location
    Miami, FL
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: if statement with multiple factors

    I got it to work. Thank you all here for the help and other website, which I would credit but I can't.

    I can credit, which helped me in getting the dates for my formula solved:

    http://www.excelforum.com/excel-gene...ate-range.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