Google Sheets error in nested if situation - google-sheets

I am trying to have a sheet check scores compared to a grading scale. This is what I have as an argument but I cannot get it to work. Am I missing parenthesis? Some other formatting issue?
=IF(E3<67.9,6.5,IF(E3<71.9),7,IF(E3<76.9),7.5,if(E3<81.9),8, if(E3<85.9),8.5,if(E3<89.9),9,IF(E3<94.9),9.5,10)
I have tried many versions of this same formula but cannot get it to work as of yet.

try:
=IF(E3<67.9,6.5,IF(E3<71.9,7,IF(E3<76.9,7.5,if(E3<81.9,8, if(E3<85.9,8.5,if(E3<89.9,9,IF(E3<94.9,9.5,10)))))))

use:
=VLOOKUP(E3, {0,6.5; 68,7; 72,7.5; 77,8; 82,8.5; 86,9; 90,9.5; 95,10}, 2)

Related

How to check multiple ranges for different values in Google Sheets

I'm trying to search 3 different ranges in a tab, and trying to display Yes if all three values (email address, name, x) are found in those ranges. Basically, trying to have the formula confirm that yes, all three of those inputs are somewhere in those ranges (order doesn't matter).
Maybe I should use query or regexmatch or something? Any help is appreciated
Tried this formula:
=IF(AND('Helper Calculations'!$I:$I=$A$1,'Helper Calculations'!$J:$J=L$1,'Helper Calculations'!$L:$L=$A2),"Yes","No")
Was expecting that if the search term in each of those cells ($A$1, L$1, $A2) is found somewhere in the corresponding ranges, then it would say Yes
You can try with this (you can change the use of asterisks by wrapping in AND:
=IF(COUNTIF('Helper Calculations'!$I:$I,$A$1)*COUNTIF('Helper Calculations'!$J:$J,L$1)*COUNTIF('Helper Calculations'!$L:$L=$A2),"YES,"NO")
try:
=INDEX(IF(('Helper Calculations'!I:I=A1)*
('Helper Calculations'!J:J=L1)*
('Helper Calculations'!L:L=A2), "Yes", "No"))
Took a bit more work than I expected, but I got this working. I needed to verify that all 3 values were correct in a single row (must all be correct on that one row, can't find the correct values on multiple rows).
In order to do that, I needed to use array formula, and then decided to use index match and concatenate for the 3 values.
Process described here: https://www.ablebits.com/office-addins-blog/google-sheets-index-match/
correct formula: =IF(ArrayFormula(INDEX('Helper Calculations'!$I:$I,MATCH(CONCATENATE($A$1,L$1,$A2),'Helper Calculations'!$I:$I&'Helper Calculations'!$J:$J&'Helper Calculations'!$L:$L, 0),))=$A$1,"Y"))

Using multiple function for COUNTIFS in google sheets

=COUNTIFS((Tab1!C2:Tab1!C250),"*sam*") & ((Tab1!B2:Tab1!B250), ">1-Nov-2020")
In the above formula, I'm trying to get the count of 'person names whose name is sam and the value which is past 1-Nov-2020.
While trying to fetch the count using the above formula, it is showing Formula parse error.
Please analyze and tell where might I went wrong.
You need to correct your syntax to:
=COUNTIFS('Tab1'!C2:C9,"sam", 'Tab1'!B2:B9,">1-Nov-2020")
Please read more on how the COUNTIFS function work.
EDIT (following OP's comment)
The correct syntax would be
COUNTIFS(criteria_range1, criterion1, [criteria_range2, …], [criterion2, …]) meaning:
=COUNTIFS('Tab1'!C2:C9,"sam", 'Tab1'!B2:B9,">1-Nov-2020", 'Tab1'!B2:B9,">=1-11-2020")
BUT
Since you refer to dates 1-Nov-2020 is the same as 1-11-2020.
So you only need
=COUNTIFS('Tab1'!C2:C9,"sam", 'Tab1'!B2:B9,">=1-11-2020")
OR
=COUNTIFS('Tab1'!C2:C9,"sam", 'Tab1'!B2:B9,">=1-Nov-2020")

If & match function together in spreadsheets

I wrote this formula in the spreadsheet: =if(match(AR$2,$A5:$E5,0),AR$2,"")
If there is no match, it's supposed to leave the cell blank, instead it gives #N/A. but if there is a match, it gives the value. Can anybody show me how to correct this? thanks.
You could use iferror
try something like:
=iferror(if(match(AR$2,$A5:$E5,0),AR$2),"")

Google Sheets formula not working

Google Sheets is saying there is a parse error.
=ROUNDUP(B9/B3)&ʺ:ʺ&ROUNDUP(B3/B9)
What's wrong with it?
I think it may just be the wrong type of double inverted commas. Try copy/pasting the following:
=ROUNDUP(B9/B3)&":"&ROUNDUP(B3/B9)
For comparison:
=ROUNDUP(B9/B3)&ʺ:ʺ&ROUNDUP(B3/B9)
Seconded, the commas are the issue here!
I re-typed your exact formula and the cell generated the correct solution:
=roundup(B9/B3)&":"&roundup(B3/B9)

Formula Parse Error in Google Spreadsheet Sparkline

I'm having some trouble using the SPARKLINE function on Google Spreasheets. If I use the "default" formula, like =SPARKLINE(C9:N9), it works nicelly. But, everytime I try to add some extra options, like using columns instead of lines, for example =SPARKLINE(C11:N11;{"charttype", "bar"}), I get a "Error, Formula parse error." message.
Has anyone here had the same problem? Any idea of how can I fix it?
Thanks!
From https://productforums.google.com/forum/#!topic/docs/QzVhyW5bi-A
When you address the option like an object, then you should use a backslash: =SPARKLINE(C11:N11;{"charttype"\"bar"}

Resources