Excel formulas to validate valid IP and valid URL in librecalc excel sheet.
For Valid IP got one formula as below,
=AND((LEN(A1)-LEN(SUBSTITUTE(A1,".","")))=3,ISNUMBER(SUBSTITUTE(A1,".","")+0))
But this command just checks if three dots are there or not. But it will not check the numbers before the first dot or the numbers after last dot.
Now wrt valid url please help to provide macro to say valid url.
I found the formula below but it is not working as expected,
=IF(OR(LEFT(B90, 7) = "http://", LEFT(B90, 8) = "https://"), "Valid URL", "Not a valid URL")
Please help to resolve this issue, Thank You.
Use the REGEX spreadsheet function. Here is a Calc formula to check IP addresses.
You can write a similar formula for URLs.