+ Reply to Thread
Results 1 to 11 of 11

Nested If statement

  1. #1
    Registered User
    Join Date
    05-14-2018
    Location
    London, England
    MS-Off Ver
    2003
    Posts
    6

    Nested If statement

    hi guys, i need your help with the following issue:
    =J3+SUMIF(D5:D102;"no";E5:E102)
    now i need to add another if to the same formula... if the (C) column is empty to subtracts the value in (E) column... thank you in advance.
    Last edited by chavdarmitev; 05-14-2018 at 04:30 AM. Reason: rules violation

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,900

    Re: i need help with a 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 go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,169

    Re: i need help with a formula

    Further to Alan's request, can you please also add a sample workbook.

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  4. #4
    Registered User
    Join Date
    05-14-2018
    Location
    London, England
    MS-Off Ver
    2003
    Posts
    6

    Re: i need help with a formula

    guys this is my first post and i am not that clever, what name should i use not to violate the rules?

  5. #5
    Registered User
    Join Date
    05-14-2018
    Location
    London, England
    MS-Off Ver
    2003
    Posts
    6

    Re: i need help with a formula

    thank you, the workbook isn't in english... would it work?

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,169

    Re: i need help with a formula

    Attach it and we will soon find out!

  7. #7
    Registered User
    Join Date
    05-14-2018
    Location
    London, England
    MS-Off Ver
    2003
    Posts
    6

    Re: i need help with a formula

    thank you john, here they are
    Attached Images Attached Images
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,169

    Re: Nested If statement

    Do you mean ??

    =$J3+SUMIF($D$5:$D$52,"no",$E$5:$E$52)-SUMIF($C$5:$C$52,"<>",$E$5:$E$52)

    OR

    =$J3+SUMIFS(,$E$5:$E$52,$D$5:$D$52,"no",$C$5:$C$52,"<>")

    i.e D="no" AND C is empty

  9. #9
    Registered User
    Join Date
    05-14-2018
    Location
    London, England
    MS-Off Ver
    2003
    Posts
    6

    Re: Nested If statement

    no in D there will be date, and yes if C is empty

  10. #10
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,497

    Re: Nested If statement

    I think this will work

    Please Login or Register  to view this content.
    only probem could be. if D says "no" and C is empty then it both adds and subtracts and in the end does not change the balance.
    it could be right this way. but if there is a hierarchy where C or D criteria is more important it might be incorrect
    But by the translated names (C= accepted on and D = issued on) I expect it is not an issue.
    Last edited by Roel Jongman; 05-14-2018 at 09:02 AM.

  11. #11
    Registered User
    Join Date
    05-14-2018
    Location
    London, England
    MS-Off Ver
    2003
    Posts
    6

    Re: Nested If statement

    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)

Similar Threads

  1. Nested IF statement error. Nested True statement is not triggering
    By Lucas7040 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2016, 11:41 AM
  2. [SOLVED] if statement referencing a nested if(mid) statement
    By kantjustice in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-14-2016, 06:27 PM
  3. [SOLVED] Nested IF Statement with OR Clause Only Processes First IF Statement
    By ExcelQuestFL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-09-2016, 04:30 PM
  4. Replies: 2
    Last Post: 07-09-2015, 04:25 PM
  5. [SOLVED] If statement to select data - nested statement - assistance
    By petitesouris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-29-2015, 09:55 PM
  6. [SOLVED] Nested If Statement - ISBLANK and ISNA in same statement?
    By Janc in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-23-2013, 09:00 AM
  7. Replies: 6
    Last Post: 01-14-2009, 06:59 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