+ Reply to Thread
Results 1 to 18 of 18

Failed If function

  1. #1
    Forum Contributor
    Join Date
    03-31-2012
    Location
    Sao Paulo
    MS-Off Ver
    Excel 2021
    Posts
    162

    Failed If function

    How can I solve the SE formula when I don't
    there is no value in columns C and D the condition fails, the account is not realized correctly, it does not continue with the balance.
    Can you solve this problem?
    Attached Files Attached Files

  2. #2
    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
    28,308

    Re: Failed If function

    This ?

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    03-31-2012
    Location
    Sao Paulo
    MS-Off Ver
    Excel 2021
    Posts
    162

    Re: Failed If function

    John
    But in this case, the part of the If in columns C and D being zero fails.

  4. #4
    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
    28,308

    Re: Failed If function

    Show expected outcome if C=0 and/or D=0
    Last edited by JohnTopley; 04-26-2024 at 03:27 PM.

  5. #5
    Forum Contributor
    Join Date
    03-31-2012
    Location
    Sao Paulo
    MS-Off Ver
    Excel 2021
    Posts
    162

    Re: Failed If function

    It's just that one column is debit and the other credit, in which case it would be one or the other.

  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
    28,308

    Re: Failed If function

    You have not answered my request in post #4 so I cannot help.

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,624

    Re: Failed If function

    Please Login or Register  to view this content.
    For the future, always show expected results to preclude so much guessing.
    Ben Van Johnson

  8. #8
    Forum Contributor
    Join Date
    03-31-2012
    Location
    Sao Paulo
    MS-Off Ver
    Excel 2021
    Posts
    162

    Re: Failed If function

    I don't know if I've understood correctly, but if the columns have zero in column H, the value must be repeated.

  9. #9
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Failed If function

    In your example just remove the IF and try only and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    03-31-2012
    Location
    Sao Paulo
    MS-Off Ver
    Excel 2021
    Posts
    162

    Re: Failed If function

    But what I wanted most was that in the debit and credit columns with zero balance, the calculation formula would only be valid with values in the columns

  11. #11
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Failed If function

    I don't exactly understand what you want.
    Please show the expected results of the formula in your sheet,

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,541

    Re: Failed If function

    This:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,541

    Re: Failed If function

    Or this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  14. #14
    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
    28,308

    Re: Failed If function

    All the replies result in the same outcome so, if this is incorrect, you need to post a file (as requested more tthan once) with your manually-calculated results

  15. #15
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,541

    Re: Failed If function

    @JT: post #13 has a different outcome.
    Attached Files Attached Files

  16. #16
    Forum Contributor
    Join Date
    03-31-2012
    Location
    Sao Paulo
    MS-Off Ver
    Excel 2021
    Posts
    162

    Re: Failed If function

    In the spreadsheet I tried to show you what I need

    Thank you very much for your attention
    Attached Files Attached Files

  17. #17
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,541

    Re: Failed If function

    H3, copied down, seems to give you what you want.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Bear in mind, you can have a value in a cell, or a formula, but you cannot have both. If you overwrite a formula with a fixed value, you cannot copy it down.

  18. #18
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Failed If function

    Why wouldn't you want a formula on days without transactions?

    If you try in cell K2 =H2 and
    if you try this formula in K3 and copy down =K2+C3-D3,
    you will get exactly the results you want.
    Even on days without transactions.

    Why make it difficult when it can be easy?
    Attached Files Attached Files

+ 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. Mismatch error or method failed when using cells function
    By immigrated4urjob in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-19-2021, 06:38 PM
  2. Passed or Failed, I Failed at excel.
    By jschavo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-04-2016, 09:42 PM
  3. [SOLVED] Why the ISError function failed to work?
    By alice2011 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2015, 06:28 AM
  4. Replies: 4
    Last Post: 03-17-2014, 04:51 PM
  5. [SOLVED] Failed Lookup based on small function
    By MattRNR in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-20-2013, 09:03 PM
  6. The SUMPRODUCT() function failed to work
    By billj in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-08-2013, 01:43 PM
  7. method 'range' of object '_global' failed - find function sometimes fails?
    By n1210933 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-06-2010, 06:17 AM

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