+ Reply to Thread
Results 1 to 8 of 8

formula that will count text

  1. #1
    Registered User
    Join Date
    06-26-2012
    Location
    Phildelphia
    MS-Off Ver
    Excel 2010
    Posts
    75

    formula that will count text

    Hello I am looking for a vlookup formula that will count the text values in column B based on the value in column A. Thanks.


    Philadelphia 0 (Return value should be 10)


    Column A Column B
    Philadelphia AAAA
    Philadelphia BBBB
    Philadelphia AAAA
    Philadelphia BBBB
    Philadelphia AAAA
    Philadelphia BBBB
    Philadelphia AAAA
    Philadelphia BBBB
    Philadelphia AAAA
    Philadelphia BBBB
    Last edited by ensmith; 07-16-2012 at 09:45 PM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Vlookup formula that will count text

    You need to be more specific about the criteria in column-A.

    VLOOKUP is not a counting function.
    See Excel Help on COUNTIF and COUNTIFS.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    06-26-2012
    Location
    Phildelphia
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: Vlookup formula that will count text

    The criteria in column A is "Philadelphia". I just simply want a formula that will count the values in Column B that are associated with the one value in Column A which is Philadelphia.

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Vlookup formula that will count text

    something like this??

    =COUNTIFS(B1:B10,"<>"&"",A1:A10,"="&A1)

    even if there is "philadelphia" if column B is blank it will not count.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  5. #5
    Registered User
    Join Date
    06-26-2012
    Location
    Phildelphia
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: Vlookup formula that will count text

    Thanks that works for me.

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: formula that will count text

    welcome.

  7. #7
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: formula that will count text

    =COUNTIFS(A1:A10,"Philadelphia",B1:B10,"<>")

    No need for the ampersand and cell A1 may not contain Philadelphia or whatever text criteria you have.

    If you want the formula to be flexible, then rather than hardcode "Philadelphia", use an input cell and reference this cell in the argument instead of the text string.

  8. #8
    Registered User
    Join Date
    06-26-2012
    Location
    Phildelphia
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: formula that will count text

    thanks for your help that works for me too.

+ 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