+ Reply to Thread
Results 1 to 7 of 7

modification to the "IF(SUM(COUNTIF" formula or "and" function

  1. #1
    Registered User
    Join Date
    11-21-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    14

    modification to the "IF(SUM(COUNTIF" formula or "and" function

    Hi everyone
    I have used the formula =IF(SUM(COUNTIF(D:D,{"*auditory*"})),1,0) to get back a "1" if the word "auditory" appears in column D.
    Now, I want to create the same thing, but I want it to return "1" if in column D contains both "auditory" and "5".
    I also want in some cases a formula that will return "1" if a specific column contains "audio" and "5" or "audio" and "4" and so on.
    Any suggestions?
    Thank you!

  2. #2
    Registered User
    Join Date
    11-21-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: modification to the "IF(SUM(COUNTIF" formula or "and" function

    Can also be: return 1 if the column contains "A_any number of other characters_B" (a phrase containing A, then more characters, then B)
    Thanks!

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: modification to the "IF(SUM(COUNTIF" formula or "and" function

    Something like this?

    =IF(OR(ISTEXT(D:D),ISNUMBER(D:D)),1,0)

  4. #4
    Registered User
    Join Date
    11-21-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: modification to the "IF(SUM(COUNTIF" formula or "and" function

    Hmm... Not sure what that does.

  5. #5
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: modification to the "IF(SUM(COUNTIF" formula or "and" function

    That is Array Formula

    Hit CTRL-SHIFT-ENTER Button together

    Azumi

  6. #6
    Registered User
    Join Date
    11-21-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: modification to the "IF(SUM(COUNTIF" formula or "and" function

    Still not clear what exactly I should do.
    Anyone has a formula that can do that?
    Thanks!

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: modification to the "IF(SUM(COUNTIF" formula or "and" function

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  2. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  3. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  4. [SOLVED] If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 AM
  5. IF(COUNTIF(Thursday,"John Doe")>1,"error"," ")
    By jayd77 in forum Excel General
    Replies: 3
    Last Post: 10-26-2005, 09:17 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