+ Reply to Thread
Results 1 to 4 of 4

Need to count multiple job titles to determine the total in a field

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    richmond
    MS-Off Ver
    Excel 2010
    Posts
    4

    Need to count multiple job titles to determine the total in a field

    I have a list of survey responses that include different job titles. I want to search and count how many people put down a military related profession. I tried using the following code but it didn't work.

    =COUNTIF($A$2:$A$350,OR("*" & "military" & "*","*" & "army" & "*","*" & "air force" & "*", "*" & "marines" & "*", "*" & "navy" & "*"))

    The responses include multiple jobs in each cell which is why I am trying to see if the text I'm searching for is contained in the cell.

    Can I do this in one formula or am I going to have to do a countif for each term and aggregate it?

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Need to count multiple job titles to determine the total in a field

    See how this works for you...

    =SUM(COUNTIF($A$2:$A$350,"*"&{"military","army","air force","marines","navy"}&"*"))
    HTH
    Regards, Jeff

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Need to count multiple job titles to determine the total in a field

    =COUNTIF($A$2:$A$350, "military")+COUNTIF($A$2:$A$350, "marines")+COUNTIF($A$2:$A$350, "navy")+COUNTIF($A$2:$A$350, "army")

  4. #4
    Registered User
    Join Date
    08-16-2012
    Location
    richmond
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Need to count multiple job titles to determine the total in a field

    thanks a lot

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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