try:
=INDEX(REGEXMATCH(A2:A&""; "\d+"))

try:
=INDEX(REGEXMATCH(A2:A&""; "\d+"))

RegexMatch() will do that. Try-
=IF(RegExMatch(TEXT(A1,"@"),"[0-9]"),"Has Number","Text Only")

Google Sheets formula for "if contains" - Web Applications Stack Exchange
Trying to use IF fuction to use formula if the Cell contains either certain text or numbers
Google Sheets IF Statement with Numbers and Text - Google Docs Editors Community
IF CONTAINS formula Google Sheets
You can use REGEXMATCH:
=IF(REGEXMATCH(A1, "sites"), 1, 0)
REGEXMATCH returns true if the first argument matches the regular expression given by the second argument. As long as the second argument has no regex special metacharacters (^ $ \ . * + ? ( ) [ ] { } |), this returns true if that argument is a substring of your string.
If you, as Ryan Shillington suggests, want to know the number of cells within a range that has "sites" in it, you might try:
=COUNTIF(A1:A100;"*sites*")
The * acts as a wildcard notion, so it will look for a match anywhere within the cell, not just an exact match for the whole cell.
I've also done this with a cell reference instead of "sites", but then you have to add wildcard-asterixes to the text in the cell.
So i have a google sheet that keeps a score system of every book if read. And right now i use =sumproduct(D79:G79,$J$9:$M$9) in ROW H to total an overall score based on 4 weighted categories (The $J$9:$M$9 is the weights) however i added a long list of books that havent read and because the cells are empty the formula automatically makes it a 0 which brings down my overall average score on my sheet (yes this is important to me because it bugs me)
So essentially what i want to do is either make a formula that IF the cell contains "-" than Row H will also have a "-" while still keeping my original sumproduct formula in someway
or that if the cell has a number using ISNUMBER it uses the sumproduct formula.
Example table
| Formula | Story | Writing | Characters | Length | Overall |
|---|---|---|---|---|---|
| =sumproduct(D79:G79,$J$9:$M$9) | 1 | 1 | 1 | 1 | this formula gives a 1 |
| =sumproduct(D79:G79,$J$9:$M$9) | - | - | - | - | This formula with the dashes gives a 0 |
| What i would like the formula to do | - | - | - | - | - or N/A |
I don't know if the table helps