+ Reply to Thread
Results 1 to 4 of 4

IF formula for text string

  1. #1
    Registered User
    Join Date
    12-15-2006
    Posts
    25

    IF formula for text string

    Hi

    I want to locate a text string within a row of cells, and just return a 1 if present, and a 0 if absent.

    I currently have =IF($A1:$E1="text*",1,0) entered as an array formula ... but it doesn't work.
    How do I use the wildcard character to locate the text, and cover the entire range of cells?

    Thanks!

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this,

    =IF(COUNTIF(A1:A4,"*")>0,1,0)
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    12-15-2006
    Posts
    25
    Great - thanks

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Glad to help - thanks for the feedback

+ 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