+ Reply to Thread
Results 1 to 4 of 4

If 2 cells values are both 0 show 'No Order=, otherwise show " "

  1. #1
    Registered User
    Join Date
    12-07-2007
    Posts
    9

    Unhappy If 2 cells values are both 0 show 'No Order=, otherwise show " "

    A3=0,B3=0 Show No Order if bith A&B values are zero, otherwise blank
    Having trouble getting this to work.

    =If(A3=0,"No Order",If(A3<>0, " ",If(B3=0,"No Order", If( B3<>0, " " )))

    Any Sugestions?

    SR

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    To distinguish between 0 and a blank entry, this uses the EXACT function
    =IF(AND(EXACT(A3,0),EXACT(B3,0)),"No order","")
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    heh,try this

    =IF(AND(A3=B3,A3*B3=0),"No order","")

  4. #4
    Registered User
    Join Date
    12-07-2007
    Posts
    9
    Thanks for your help...I think we've got it worked out

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Merging Cells With Duplicate Values
    By BluTalon in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-28-2011, 09:52 PM
  2. 'snapshot' of cells values into other cells IF F50=1
    By jamiepullen in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-27-2008, 10:29 AM
  3. copy a range of cell values to another range of cells if one cell = 1
    By jamiepullen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2008, 10:26 AM
  4. Macro Merge Cells with Values
    By angel56 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-15-2007, 12:07 PM

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