Apr 01 2022 10:03 AM
I created a tool to run some tests. I use Microsoft 365, and some of the functions I used in my tool are apparently new. The users of my tool have older versions of excel, and they encountered #NAME errors. Based on a compatibility report, the issues are largely due to functions using IFS or COUNTIFS.
Example: IFS(B10>=B5,"0",B10<B5,TRUNC(B10-B5))
My question: is there an alternative to IFS or COUNTIFS that works with older versions of Excel?
Apr 01 2022 10:23 AM
First recommendation would be that those users update their Excel.
IF that's not feasible for some reason, nested IF conditions can often do what IFS does more readily. Those can get really complicated.
Another way around lots of IF and IFS conditions is to use a table and VLOOKUP for alternative values. It depends on what the consequences of the various IFS conditions are.
COUNTIFS has been around for a lot longer (since Excel 2007). I'm surprised if they're still experiencing difficulties from that specifically.
Apr 01 2022 10:49 AM
Apr 01 2022 11:34 AM
Apr 01 2022 12:00 PM
I'm not totally sure that I follow that re: the helper column, but here's an example of what I'm working with. The goal is to rank schools by % poverty in two ways: first, across all schools in the district, and second only in comparison to other schools that serve the same grade span. The user enters the % of students who are low income and then the rankings happen based on that. Both of these functions produce the #NAME error for certain users.
For the district-wide rank, I think I can just use RANK. For the Grade-span rank, that's where I have the COUNTIFS. The formula is =IF($D2=0,"",COUNTIFS($C$2:$C$14,C2,$D$2:$D$14,">"&D2)+1)
D2 = the user entered value for Low income. Basically, if that is blank, I want to hide the formula.
So this grade-span rank is the one causing me the problem in particular.
School | Type | Grade Span | % Low Income | District-Wide Rank | Grade-Span Rank |
School A | Elementary | P-8 | 77 | 8 | 1 |
School B | High | 9-12 | 75 | 10 | 3 |
School C | High | 9-12 | 76 | 9 | 2 |
School D | High | 9-12 | 88 | 4 | 1 |
School E | Middle | 6-8 | 97 | 1 | 1 |
School F | Middle | 6-8 | 87 | 5 | 2 |
School G | Elementary | K-5 | 55 | 12 | 3 |
School H | Elementary | K-2 | 89 | 3 | 1 |
School I | Elementary | P-5 | 90 | 2 | 1 |
School J | Elementary | K-5 | 86 | 6 | 1 |
School K | Elementary | 3-5 | 84 | 7 | 1 |
School L | Elementary | K-5 | 40 | 13 | 4 |
School M | Elementary | K-5 | 58 | 11 | 2 |
Apr 01 2022 01:02 PM
Maybe SUMPRODUCT works for all users. This formula should be available since Excel 2007.
Apr 01 2022 01:18 PM
Wow, thanks! Yes, that does seem to work pretty well. There's an issue if there's a tie, though. Example: if school C and D had the same low income percent, they both get the rank of 2 with SUMPRODUCT vs 1 with COUNTIFS. Wonder if there's a solution.
School | Type | Grade Span | % Low Income | District-Wide Rank | Grade-Span Rank | |
School A | Elementary | P-8 | 77 | 9 | 1 | 1 |
School B | High | 9-12 | 75 | 10 | 3 | 3 |
School C | High | 9-12 | 88 | 4 | 1 | 2 |
School D | High | 9-12 | 88 | 4 | 1 | 2 |
Apr 01 2022 01:38 PM
SolutionThere was a mistake in the original SUMPRODUCT formula. Thank you for pointing this out.
Apr 01 2022 01:57 PM
Ah yes, the same +1 solution as with the COUNTIFS formula I had. Thanks very much for the help!
Apr 01 2022 01:38 PM
SolutionThere was a mistake in the original SUMPRODUCT formula. Thank you for pointing this out.