+ Reply to Thread
Results 1 to 6 of 6

Function not returning correctly please look

  1. #1
    Registered User
    Join Date
    10-24-2006
    Posts
    9

    Question Function not returning correctly please look

    =IF($J7=0,IF($F7>0,"Lost",""))

    I want the cell to be blank if neither one of the criteria is met. What do I do?

    Thanks

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    =IF($J7=0,IF($F7>0,"Lost",""))

    try:

    =IF(AND($J7<>0,$F7<=0),"","LOST")

    Logic: when both j7<>0 and f7 is not greater than zero, blank is returned

    HTH
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    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,

    Not sure what F7 = 0 is doing but you could try this

    =IF(F7="","",IF(OR(F7=0,F7>1,),"Lost",""))

    If F7 = 1 it returns blank

    VBA Noob

  4. #4
    Registered User
    Join Date
    10-24-2006
    Posts
    9

    Question Still not working

    The formula I have is

    =IF($K7=0,IF($G7>0,"Lost",""))

    What I am trying to find is if column K has a 0 or blank but column G has a number then I want the cell to say Lost.

    The foluma works but in the ones that don't say lost it says False, I just want the false ones to be blank.

    Thanks

  5. #5
    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
    Does this work for you

    =IF(OR(K7=0,K7=""),IF(G7>0,"Lost",""),"")

    VBA Noob

  6. #6
    Registered User
    Join Date
    10-24-2006
    Posts
    9

    Red face Thanks

    Thanks 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