+ Reply to Thread
Results 1 to 3 of 3

If Statement Help Please. Work result being returned

  1. #1
    Registered User
    Join Date
    05-26-2013
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2007
    Posts
    45

    If Statement Help Please. Work result being returned

    if statement fix.xlsx

    Hi all.

    I hope someone can help.

    I am trying to return a value open or closed in a cell depending on if a item is completed or not. The problem is I want the task to be "closed" if all the cells in the range contain completed or N/A. I can only get the formula to work if all the cells say "Completed"

    Can anyone help me get the cell to read "Closed" when seeing "Completed" or "N/A"



    Attached Example (C3 should say completed because card 1 through card 4 is either completed or N/A). C4 and C5 are working correctly.

    1st line has attachment

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: If Statement Help Please. Work result being returned

    Perhaps

    =IF((COUNTIF(E3:H3,"*Completed*")+COUNTIF(E3:H3,"N/A"))=4,"Completed","Open")
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    05-26-2013
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: If Statement Help Please. Work result being returned

    This site is a lifesaver as are you. THanks!

+ 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. No error but no result returned while performing a VBA Sorting Code
    By seigna in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-07-2013, 02:56 AM
  2. [SOLVED] De bug Error caused by Autofill when 1 result returned
    By PFDave in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2012, 07:33 AM
  3. Excel, function, result to be returned in another designated cell
    By EXCEL WORKSHEET FUNCTIONS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-21-2006, 01:30 PM
  4. Wrong result returned by UsedRange.Rows.Count
    By j in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2005, 04:05 PM
  5. [SOLVED] Result not being returned
    By Pat in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-19-2005, 02:06 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