+ Reply to Thread
Results 1 to 8 of 8

Count if one cell or a second cell has specific information

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    11

    Count if one cell or a second cell has specific information

    First,
    Thank you for helping.

    I have an issue that I have not seen in any forum.
    I need to count only 2 specific cells in a row (column L, all cells) and a cell in the same row but in Column P.
    I need this to be valid to count over 500 rows in a worksheet in the spreadsheet.
    Currently I am using

    =COUNTIFS('CSC & SOX apps'!$L:$L,"*Q1*",'CSC & SOX apps'!$P:$P,"Q1",'CSC & SOX apps'!$W:$W,"*"&$B8&"*")

    Which results in 0 as it is counting only if "Q1" is in both cells.

    The need is to count each cell as ! and add the row together to be either 0, 1, or 2 per row depending upon the number of "Q1" in the 2 cells.
    Thank you,

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: How can I count if one cell or a second cell have specific information

    ??? One way:

    =COUNTIF(L2:P2,"Q1")

    copied down. Or, if Q1 can appear in M & N...

    =COUNTIF(L2,"Q1")+COUNTIF(P2,"Q1")
    copied down.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    03-28-2013
    Location
    Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How can I count if one cell or a second cell have specific information

    GLenn,
    Thank you.

    How would I also bring the 'CSC & SOX apps'!$W:$W,"*"&$B8&"*" part of the formula into the equation as it needs to be part of both of the counts

    I am using to count for people in a list I am using.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: How can I count if one cell or a second cell have specific information

    Welll.. it wasn't mentione din your TEXT description,m so I was left wondering what it was doing. Your text referred only to L & P. maybe a sample sheet would help.


    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

  5. #5
    Registered User
    Join Date
    03-28-2013
    Location
    Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How can I count if one cell or a second cell have specific information

    I have created a spreadsheet to show what I am trying to do .
    Thank you,
    Attached Files Attached Files

  6. #6
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: How can I count if one cell or a second cell have specific information

    Try in "G5"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    copy paste right


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  7. #7
    Registered User
    Join Date
    03-28-2013
    Location
    Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How can I count if one cell or a second cell have specific information

    Atul,
    Does this also count Cell M2 into account? IT has to count both M and O individually but the name has to be consistent in the row to place under correct VP.

    Maybe this would clarify as "how to count column M OR column O that has VP in the row."

  8. #8
    Registered User
    Join Date
    03-28-2013
    Location
    Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Count if one cell or a second cell has specific information

    Thank you,
    I figured out by both of the suggestions a working formula,


    =COUNTIFS('CSC & SOX apps'!$L:$L,"Q1",'CSC & SOX apps'!$W:$W,"*"&$B7&"*")+COUNTIFS('CSC & SOX apps'!$N:$N,"Q1",'CSC & SOX apps'!$W:$W,"*"&$B7&"*")

+ 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. [SOLVED] Formula to insert future date in cell, if specific information placed in other cell
    By JeninQC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2018, 11:06 AM
  2. Copying information from one cell into another cell in a specific place.
    By noahz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-16-2016, 05:52 AM
  3. Replies: 1
    Last Post: 02-12-2015, 06:14 PM
  4. If cell contains specific text then count adjacent cell
    By KELLIS in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2014, 04:45 PM
  5. Replies: 1
    Last Post: 01-25-2013, 04:59 PM
  6. Replies: 24
    Last Post: 01-17-2012, 12:06 PM
  7. Transfer single cell information to specific cell based on user criteria
    By RoVo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-31-2006, 11:30 AM

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