+ Reply to Thread
Results 1 to 5 of 5

formula to return a number 1 if one of two or both cells have values and four are blank

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    Glasgow
    MS-Off Ver
    Excel 2007
    Posts
    77

    formula to return a number 1 if one of two or both cells have values and four are blank

    Hi,

    I'd like a formula that returns a 1 value if cell b2 and/or c2 have a value in them but d2, e2, f2 are blank.

    Can anyone help me on this?

    Much appreciated

    David

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,409

    Re: formula to return a number 1 if one of two or both cells have values and four are blan

    May be:
    =AND(B2&C2<>"",D2&E2&F2="")
    Quang PT

  3. #3
    Registered User
    Join Date
    08-20-2012
    Location
    Glasgow
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: formula to return a number 1 if one of two or both cells have values and four are blan

    Hi,

    That returns a 1 if both are zero values.

    I want a formula that will return a 1 in the following examples - if B2=0 and C2=VALUE, if B2=VALUE and C2 = 0, if B2=VALUE & C2=VALUE.

    Many thanks,

    David

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,409

    Re: formula to return a number 1 if one of two or both cells have values and four are blan

    Try this if B2 and C2 is numberic:
    =--AND((B2+C2)>0,D2&E2&F2="")

  5. #5
    Forum Contributor
    Join Date
    01-24-2011
    Location
    Sheppey
    MS-Off Ver
    Excel 2010
    Posts
    239

    Re: formula to return a number 1 if one of two or both cells have values and four are blan

    Or
    Please Login or Register  to view this content.
    with cse.

+ 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