+ Reply to Thread
Results 1 to 3 of 3

Multiple Conditional @IF Statement Not Working?

  1. #1
    Registered User
    Join Date
    03-23-2006
    Posts
    28

    Multiple Conditional @IF Statement Not Working?

    I am trying to filter and change column T via what is on same row in column Y, otherwise return T's original results.

    In english: If T2 equals zero AND Y2 doesn't equal zero, ,then make a one, otherwise list the contents of the original cell T2.

    Here is my formula: =IF(AND(T2="0",Y2<>"0"),"1",+T2)

    Cell T2 = 0
    Cell Y2 = 232

    Formula returns 0, I had hoped it would return a 1? Thanks!

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Just lose the quote marks

    =IF(AND(T2=0,Y2<>0),1,T2)

    VBA Noob

  3. #3
    Registered User
    Join Date
    03-23-2006
    Posts
    28
    Thanks Noob, that worked!

+ 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