+ Reply to Thread
Results 1 to 6 of 6

countifs - multiple and/or text - same range - 'divide' problem

  1. #1
    Registered User
    Join Date
    05-09-2017
    Location
    Vancouver, BC, Canada
    MS-Off Ver
    2010
    Posts
    3

    countifs - multiple and/or text - same range - 'divide' problem

    Hey all,

    I've been looking for a couple days now, as well as tried many different ideas/formula/etc. that I've found on this forum (which I'm new to, so hello to you all ), so apologies ahead of time if this HAS been asked and answered, and I'm just blind as a bat, but here's what we're attempting to do (and failing at so far)...

    Basically we have a working formula that calculates the current percentage status (i.e. from 0% to 100% done and with a percentage bar) of a range of tasks that we "Complete" in a spreadsheet, which is this:
    • =COUNTIFS(E2:AF2,"Completed")/0.28

    ...the issue is, we're trying to also include a 'Not Applicable" (or "N/A") text/parameter in this formula. So for example: A Project is currently at 43%. Once the next task is marked "Completed", the percentage bar goes to 46%, BUT - if the next task isn't required, we can mark it as "N/A" and it STILL moves the percentage bar to 46%.

    We've tried many varying formulas, like these:
    • =COUNTIFS(E2:AF2,{"Completed","N/A"})/0.28
    • =COUNTIFS(E2:AF2,"Completed",E2:AF2,"N/A")/0.28
    • Etc.

    ..., but so far we can't seem to crack this one (we've even tried different 'sum' and 'sumifs' ones), so we're hoping someone out there (hopefully without telling us how dumb we are, as we already feel that way ), can show us the right formula.

    Thanks in advance to any who are patient enough with a bunch of obvious newbs to assist.

    Cheers

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: countifs - multiple and/or text - same range - 'divide' problem

    Attach a sample workbook (not image)

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    05-09-2017
    Location
    Vancouver, BC, Canada
    MS-Off Ver
    2010
    Posts
    3

    Re: countifs - multiple and/or text - same range - 'divide' problem

    Hey John,

    Thanks tons for looking at this. I attached the spreadsheet (I hope) as requested.

    Just FYI - the attachment has two sheets/tabs, which I've appended 'before' and 'after' to.

    As you'll see in the 'after' sheet, we added the new 'N/A' text parameter changed the formula in the 'Completion' fields to include the entry, but as you'll can see with one of the "COMPLETED/CLOSED" workflows we tested this with, when we use the 'N/A' choice, it drops the bar/counter from 100% to 86%, and we want it to remain/show 100% like the other "COMPLETED/CLOSED" one

    Let me know if you require more info, and thanks much for the reply

    Cheers
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: countifs - multiple and/or text - same range - 'divide' problem

    Try

    =SUM(COUNTIFS(E3:AF3,{"Completed","N/A"}))/0.28

    will give 100%

  5. #5
    Registered User
    Join Date
    05-09-2017
    Location
    Vancouver, BC, Canada
    MS-Off Ver
    2010
    Posts
    3

    Re: countifs - multiple and/or text - same range - 'divide' problem

    Well son-of-a...

    I know we tried some types of 'SUM' (and even a few 'SUMIFS') fomulas, and none of them worked for us, but lo and behold, here's the answer.

    Thanks tons for the help, and enlightenment, with this.

    You're a true guru.

    Cheers

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: countifs - multiple and/or text - same range - 'divide' problem

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Combine SUM(COUNTIFS) and divide
    By UFriede in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2016, 01:05 PM
  2. [SOLVED] COUNTIFS Problem when selecting multiple criteria
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-17-2014, 09:01 AM
  3. [SOLVED] COUNTIFS multiple criteria (date range & text)
    By jholiday78 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-30-2014, 06:36 PM
  4. [SOLVED] COUNTIFS Date Range problem
    By dtrimble in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-02-2012, 01:32 PM
  5. Problem using sumif to divide by a range
    By Flobiwan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-26-2012, 04:20 PM
  6. [SOLVED] Excel 2007 : Trying to Divide CountIfs
    By KSSLR in forum Excel General
    Replies: 2
    Last Post: 06-25-2012, 04:08 PM
  7. Replies: 2
    Last Post: 02-20-2012, 05:59 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