+ Reply to Thread
Results 1 to 5 of 5

Help with a formula to count specific cells, while excluding certain text - Google Sheets

  1. #1
    Registered User
    Join Date
    12-15-2022
    Location
    NYC
    MS-Off Ver
    Google Sheets
    Posts
    2

    Help with a formula to count specific cells, while excluding certain text - Google Sheets

    Hey Excel Forum, hope you can assist with this issue.

    Im pretty OK with excel, but for some reason I cant figure out this formula.

    Im trying to make sense of counting specific cells, with excluding certain text.

    Ive been using

    =SUMPRODUCT(--(D18:D54<>""),--(D18:D54<>"OFF")) - but the SUMPRODUCT doesn't allow me to skip rows, and I have data in between each row which I dont want included. Ive tried the COUNTIF formula as well, but no luck, as it throws errors.

    I know I can make additional rules for the SUMPRODUCT by continuing the formula and changing the criteria I need excluded, but the criteria changes a lot per column, and changes frequently, and it'll be a lot to continue to update.

    Im using Google Sheets.

  2. #2
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Help with a formula to count specific cells, while excluding certain text - Google She

    So that there is no confusion about the result you are trying to achieve, can you please build a sample for us in the following file:

    https://docs.google.com/spreadsheets...gid=2100307022
    As a gesture off appreciation, you can click * Add Reputation at the foot of any of the posts of members who helped you reach a solution.

    And finally, was your problem solved? if so, please click Thread Tools above the first post of your enquiry, then select [Solved]

  3. #3
    Registered User
    Join Date
    12-15-2022
    Location
    NYC
    MS-Off Ver
    Google Sheets
    Posts
    2

    Re: Help with a formula to count specific cells, while excluding certain text - Google She

    Added to the sheet you linked above.

    Essentially I'd like it to count the cells in each column, while skipping the row of availability. I eventually got it to work by just adding more criterion to the SUMPRODUCT function, but due to the large amount of variances I have to exclude for availabilities it makes it pretty tedious.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Help with a formula to count specific cells, while excluding certain text - Google She

    If I understand correctly and assuming that the values in B51:P51 are correct:
    1. Paste the following into cell B51 and drag the fill handle over to cell O51: =IF(B1="HOURS",SUM(B13:B23,B26:B49),SUMPRODUCT(--(B15:B49<>""),--(B15:B49<>"OFF")))
    2. [Optional] Paste the following into cell P51: =SUMIFS(C51:O51,C1:O1,"Hours")
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Help with a formula to count specific cells, while excluding certain text - Google She

    can you put some sample data and explain which cells you want the count of?

+ 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. Google SHeets: Count Checked checkboxes in filtered data of google sheet
    By Faizan Naseem in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 07-07-2022, 05:42 AM
  2. dynamic formula to count through existing and new sheets(In google sheets)
    By wlinksanju in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 11-26-2020, 09:16 PM
  3. Replies: 2
    Last Post: 02-12-2020, 12:54 PM
  4. Formula Problem: SUMPRODUCT (Count cells with text, excluding blanks and two names)
    By Dannyfranklin123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-23-2018, 03:42 AM
  5. [SOLVED] Formula to count adjacent cells containing specific text
    By BuddJ in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-17-2017, 10:14 PM
  6. [SOLVED] Counting cells with specific text excluding if date in specific cells
    By FraserMc97 in forum Excel General
    Replies: 2
    Last Post: 04-07-2017, 06:19 AM
  7. Excel formula to count cells with specific text
    By timtrace in forum Excel General
    Replies: 3
    Last Post: 04-06-2011, 12:32 AM

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