+ Reply to Thread
Results 1 to 4 of 4

If And Nested Formula

  1. #1
    Registered User
    Join Date
    10-28-2011
    Location
    Council Bluffs
    MS-Off Ver
    Excel 2010
    Posts
    3

    If And Nested Formula

    I have cells A1 & B1. I want a formula in C1 to do the following:

    If A1 and B1 are both not blank, then No
    But ... If A1 is not blank and B1 is, then Yes

    I can't figure out the formula to use! Any help?

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: If And Nested Formula

    Something like this?
    =IF(AND(A1<>"",B1<>""),"No","Yes")
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: If And Nested Formula

    =if(and(A1<>"",B1<>""),"No",if(and(A1<>"",B1=""),"Yes","?")

    I put a question mark in for any conditions you did not specify (for example, what if both are blank?)
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  4. #4
    Registered User
    Join Date
    10-28-2011
    Location
    Council Bluffs
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: If And Nested Formula

    Yaayyyy!!! I think you're wonderful. Take the rest of the day off and enjoy your Friday!

    Quote Originally Posted by davegugg View Post
    =if(and(A1<>"",B1<>""),"No",if(and(A1<>"",B1=""),"Yes","?")

    I put a question mark in for any conditions you did not specify (for example, what if both are blank?)

+ 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