+ Reply to Thread
Results 1 to 4 of 4

countif/index match using text string

  1. #1
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    countif/index match using text string

    Hi everyone,

    I have the following formula:

    =COUNTIF(INDEX('Answer Data Month 1'!$AG$2:$AG$15000,MATCH(LEFT(E7,254),'Answer Data Month 1'!$BC$2:$BC$15000,0)),"Sales")

    E7 is a long text string. I understand index/match can work with text strings, but I'm getting a #N/A error evrytime. Column AG has the results I'm looking for, and column BC has the texts I'm searching off of. Any ideas what I'm doing wrong? I'm trying to count the number of times "Sales" is found in AG that's related to text found in BC based on value E7 which is on another worksheet.

    Thanks!!

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: countif/index match using text string

    Is this related/similar to this thread
    http://www.excelforum.com/excel-form...lue-error.html

    Are the values in column BC more than 254 characters, and you're trying to match only the 1st 254 (as we did in the previous thread)
    You need to add the * wildcard to the match

    MATCH(LEFT(E7,254)&"*",'Answer Data Month 1'!$BC$2:$BC$15000,0)

  3. #3
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Re: countif/index match using text string

    Jonmo,

    Thanks very much. Its work on the same database, but different requirements. In any case, thanks very much for your help!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: countif/index match using text string

    You're welcome.

+ 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: 2
    Last Post: 09-27-2014, 04:34 PM
  2. [SOLVED] INDEX and MATCH not returning text string
    By wangstar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2013, 09:50 AM
  3. Countif/Match Index
    By skate1991 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-20-2013, 12:43 PM
  4. Replies: 2
    Last Post: 03-16-2012, 12:03 PM
  5. Index Match nesting w/ partial text string criteria
    By dohearn in forum Excel General
    Replies: 1
    Last Post: 10-25-2011, 03:42 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