+ Reply to Thread
Results 1 to 8 of 8

Formula produces unexpected results

  1. #1
    Registered User
    Join Date
    02-13-2012
    Location
    Nova Scotia, Canada
    MS-Off Ver
    Office 365
    Posts
    11

    Formula produces unexpected results

    I am putting together a financial spreadsheet for a club.

    I thought I would add a small "Balance" helper column at column J. If the amounts are entered correctly a "B" will appear and if not an "N"

    The formula in column Z15 to Z18 works well for my first three scenarios, but not in the fourth. I have tried pulling it apart where there appears to be a problem but nothing I do seems to work. Hopefully a new set of eyes can pick out what it is I am doing wrong.

    If there is a more efficient way to write this formula please do tell me as I enjoy learning how to do things better.

    Thank you


    David
    Last edited by furface00; 01-30-2014 at 04:29 PM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Can't get a formula to work properly.

    a "N" is missing:
    =IF(AND(ISBLANK(D15),ISBLANK(E15)),"",IF(D15="",IF(SUM(H15:I15)=E15,"B",IF(SUM(H15:I15)-(SUM(K15:Q15))=E15,"B",IF(SUM(K15:Q15)=D15,"B","N"))),"N"))
    Quang PT

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Can't get a formula to work properly.

    Anyway, below may be shorter:
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-13-2012
    Location
    Nova Scotia, Canada
    MS-Off Ver
    Office 365
    Posts
    11

    Re: Can't get a formula to work properly.

    Thank you both for your reply. Unfortunately, I cannot get either suggestion to work on the fourth example. Both return a "N" instead of the "B" that it should. A bit of a puzzle.

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

    Re: Can't get a formula to work properly.

    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.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  6. #6
    Registered User
    Join Date
    02-13-2012
    Location
    Nova Scotia, Canada
    MS-Off Ver
    Office 365
    Posts
    11

    Re: Can't get a formula to work properly.

    8888888888
    Last edited by furface00; 01-31-2014 at 07:51 AM.

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Formula produces unexpected results

    Try again:
    Please Login or Register  to view this content.
    Does it work?
    If not, could you pls explain your logic by words?

  8. #8
    Registered User
    Join Date
    02-13-2012
    Location
    Nova Scotia, Canada
    MS-Off Ver
    Office 365
    Posts
    11

    Re: Formula produces unexpected results

    I have found the issue with my first formula. I had to revise it somewhat to the following:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Cannot seem to get this formula to work properly
    By doran79 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-17-2014, 08:36 PM
  2. [SOLVED] How can I fix this macro to work properly?
    By denisirio in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-19-2012, 09:27 AM
  3. Formula does not work properly
    By ravichander in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-12-2009, 01:14 PM
  4. Why does this filter not work properly
    By cj21 in forum Excel General
    Replies: 6
    Last Post: 03-29-2006, 04:30 PM
  5. function does not work properly
    By lukiedukie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-22-2005, 06:06 PM

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