+ Reply to Thread
Results 1 to 7 of 7

Formula IF

  1. #1
    Registered User
    Join Date
    04-25-2010
    Location
    Mexico
    MS-Off Ver
    Excel 2007
    Posts
    3

    Formula IF

    Hello,

    I'm using this formula =IF(J5=L5;1) to determine if those cells are equal, since both cells are blank I'm getting the 1 answer and I just want to get the answer if both cells have data.

  2. #2
    Registered User
    Join Date
    04-19-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Formula IF

    =IF(J5=L5,"both cells have data","")
    True answer will give you a message of "both cells have data".
    False answer will give you a blank.

    or if you want to see what value is in the cells.

    =IF(J5=L5,J5,"")

    Hope this helps.

  3. #3
    Registered User
    Join Date
    04-25-2010
    Location
    Mexico
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Formula IF

    Thank you but I' actually need the 1 answer but just as long as both cells are equal with data.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,317

    Re: Formula IF

    How about...

    =IF(COUNT(J5,L5)<2,"",IF(J5=L5,1,""))

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula IF

    or

    =IF(AND(J5=L5,J5<>"",L5<>""),1,"")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  6. #6
    Registered User
    Join Date
    04-25-2010
    Location
    Mexico
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Formula IF

    Thank's a lot that solved it.

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,317

    Re: Formula IF

    If you are satisfied with the answer provided, please mark your thread as solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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