+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : IF AND Formula problem

Hybrid View

  1. #1
    Registered User
    Join Date
    01-28-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    26

    IF AND Formula problem

    [please see attached file]

    Column H is to determine whether previous row contains the same data on cols D,E and F, and if G is not equal to 0 it should return a blank. It seems to have worked for row 3 but should also be blank for the rest of the rows but is returning an ‘x’.

    Can anyone work out why this is happening?

    Many thanks
    Attached Files Attached Files
    Last edited by daniel_t; 07-25-2011 at 09:48 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: IF AND Formula problem

    Hi daniel_t

    your formula is giving correct result on the base of the criteria given in the formula

    If the value is zero the and fucntion answer the False and it is choosing X

    Kindly find the attatched file and inform what you need if there is both criteria are true or one is true and one is false
    Attached Files Attached Files
    Azam
    If you want to say Thank you to a member, click the reputation icon (Star) in the left bottom of the post.
    For prompt answer, be descriptive, concise, short, direct, and to-the-point.

  3. #3
    Registered User
    Join Date
    01-28-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: IF AND Formula problem

    Thanks for reply Azam.

    But shouldn't H4 give the same result as H3? Row 4 D-F is same as above row and G4 is '0'.
    As per your True/False columns - if a row has both True it should return a blank, if either or both False should return 'x'.

    Thanks

    Dan

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: IF AND Formula problem

    Your formula in H4being

    =IF(AND($D4&$E4&$F4=$D3&$E3&$F3,$G3<>0),"","x")

    and G3 NOT being <>0, the FALSE condition is the result

    In H3 the part $G2<>0 is true because G2=1, so you get a blank

  5. #5
    Registered User
    Join Date
    01-28-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: IF AND Formula problem

    Thanks guys, I can see the glaring error I couldn't spot!

  6. #6
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: IF AND Formula problem

    Tools - Formula Auditing - Evaluate Formulas

    or Trace dependents/Precedents

    Are a very good help for debugging formula

+ 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