+ Reply to Thread
Results 1 to 4 of 4

if and trouble

  1. #1
    Forum Contributor
    Join Date
    12-13-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    149

    if and trouble

    =IF(AND(F5+G5+I5+K5+M5+O5+Q5+S5=0,"",if(F5+G5+I5+K5+M5+O5+Q5+S5=F5),"OK"))

    i want the result cell to show nothing if all cells added together = 0 and only show OK if they = the total given in cell F5
    What am i doing wrong i get all OK or all "" regardless of what gets entered
    Thanks
    Last edited by mojobaabby; 08-16-2011 at 07:32 PM.
    Southwest Granite & Glass
    Quality, It's what we do
    http://www.swgg.ca

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: if and trouble

    Try:
    Please Login or Register  to view this content.
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: if and trouble

    AND(F5+G5+I5+K5+M5+O5+Q5+S5=0
    is wrong
    if you just want to check the total=0
    if(sum(F5,G5,I5,K5,M5,O5,Q5,S5)=0,"",if(sum(F5,G5,I5,K5,M5,O5,Q5,S5)=f5,"ok","something else"))
    Last edited by martindwilson; 08-16-2011 at 07:27 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Contributor
    Join Date
    12-13-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: if and trouble

    Got it thanks

+ 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