In Google Sheets IF formula over several cells - if-statement

I'm not sure if I'm approaching this problem wrong, but there's got to be an easy way to do this.
I simply want to see if Certain text is listed above that cell. If it's not, Put that text. If it is put blank.
This is what I have:
=if(F4:F5="TEST","","TEST")
This gives it an array formula error so I created this:
=arrayformula(if(F4:F5="TEST","","TEST"))
But I don't need two results... just a yes/no statement. If the cells in this range contain "TEST" leave blank, if it does not contain "TEST" display the word "TEST".
What am I doing wrong?

If the cells in this range contain "TEST" leave blank, if it does not contain "TEST" display the word "TEST".
Use COUNTIF()
=if(countif(range,"TEST"),,"TEST")

Related

VLOOKUP missing entries?

I have a decently sized spreadsheet of about 6 thousand entries and I am trying to match two columns to make sure they match up using vlookup and that is working fine but I have about 400 or so entries that don't have a match and looking through a few and just using control-f to see if they were somewhere with a different naming convention I found the a matching cell for several of the entries that supposedly don't have a match, any clue why this might be? I checked the length of the values in the cell to see if there was white spacing I was missing but they matched in length and the values in the cell are the exact same. This is the vlookup setup I am using
=VLOOKUP(A1,$B$1:$B$6074,1,0). The CSV is here if anyone wanted to see it. I am not saying they are all wrong but I looked at about 10 or so and they all had matches so I am a bit lost on this.

Google Sheets Using RegEX To Reformat & Concatenate

Link To Spreadsheet
Sheet!1Name - Names are in Single Column
Sheet!2Names - Names are in First Name, Last Name columns.
What I'm trying to do is basically remove any suffixes, special characters, and spaces, capitalize that information, and combine it with information from another field.
I was able to figure out how to piece together some regex that seems to effectively get rid of suffixes and removes special characters. It's below. That's where my skill set stops.
={"PlayerKey";ARRAYFORMULA(UPPER(IF(ISBLANK(C2:C8),,PROPER(TRIM(REGEXREPLACE(C2:C8," Jr\.$| J$| Sr\.$| S$|IV$|III$|II$|\.|-|'",""))))))}
I'm having trouble nesting formulas - i believe what i need to do is nest both concat and substitute but not sure if that's the method to get the "Desired Output example" that is in the sheet. I'm also having trouble understanding what order to do things, which is why i'm having trouble with 2Name i think.
How's this in A1 of the new tab called MK.Help?
=ARRAYFORMULA({"Player Key";UPPER(TRIM(REGEXREPLACE(IF(MID(C2:C8,2,1)=".",INDEX(SPLIT(C2:C8," "),,1),LEFT(C2:C8))&D2:D8," Jr\.$| J$| Sr\.$| S$|IV$|III$|II$|\.|-|'",""))&E2:E8)})

Cell appears to be empty but keeps saying it contains values in it

I have this formula in a cell:
=ARRAYFORMULA(UNIQUE(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY(TRANSPOSE( REGEXREPLACE(REGEXEXTRACT(INDIRECT("C2:C"&COUNTA(C2:C)+1), REPT("(.)", LEN(INDIRECT("C2:C"&COUNTA(C2:C)+1)))), "['A-Za-z\.-]", )),,999^99)),,999^99), " "))))
When no diacritics appear in the search column, the cell was supposed to be empty, but when you copy that cell to another, it comes back as if there were values in it, it seems to be several spaces together.
When using the LEN function, it also appears to have values, but apparently it's empty ... And that's how I would really like it to be, totally empty if I didn't find diacritics in the list names
I would like a help so that it really gets empty when not finding diacritics
Here is the link to the spreadsheet if it becomes easier to understand the situation:
https://docs.google.com/spreadsheets/d/1yfB8GskVU_ciFKuzae9XQF-pi3y6jsYtsanN46vmNOs/edit?usp=sharing
you can add TRIM to fix this issue:
=ARRAYFORMULA(UNIQUE(TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY(TRANSPOSE(
REGEXREPLACE(REGEXEXTRACT(INDIRECT("C2:C"&COUNTA(C2:C)+1), REPT("(.)",
LEN(INDIRECT("C2:C"&COUNTA(C2:C)+1)))), "['A-Za-z\.-]", )),,999^99)),,999^99), " ")))))

Google sheet formula to swap names

I have this:
Image shows that those 2 cells contain input from another sheet.
Now, I want to input formula in those same cells that will rename inputs:
=if(D5="jerry.berry", "Berry Jerry", if(D5="perkins.aaron", "Aaron Perkins"))
Question: How do I insert the above formula next to =Source!H5
Note: I know I can modify those values on the root sheet itself, but I would rather not.
you can use regex like:
=ARRAYFORMULA(PROPER(REGEXREPLACE(Source!H5:H6, "(.+)\.(.+)", "$2 $1")))
I hope this is what you need:
Although I'd use a generic formula to manipulate (any) names in this string format.

Sheets is treating "0" like a blank cell

I need help with what I'm sure is a simple formula that I just don't understand.
I have three columns. The first two hold my values and the third is meant to subtract them. However, when the first column is blank, I would like the third to also be blank. I have it close right now but when I type 0 in the first column, it treats that as a blank cell instead of using the 0 to give the sum.
Ex. of what I would like
expected result:
I can't seem to figure out the formula for the third column.
Yes this is a quirk that goes right back to the dawn of spreadsheet applications; in an empty worksheet the formula =A1 written anywhere other than the top left cell will evaluate to 0.
One way, in Google Sheets, is to use something like
=IF(ISBLANK(A1), ,A1 - B1)
In Microsoft Excel you need to use double quotations characters in the second argument, noting that this injects a blank string into the output.
This if statement (put in the 3rd Column) checks the first column if blank then just set cell as blank else perform the subtraction:-
=IF(A1="", "", A1-B1)