Oct 03 2019 02:37 PM
I´m trying to restrict a cell in order to validate only IPv4 valid IP addresses, however my formula is so long, I have reached the limit of validation personalized formula size, could i Increase that area?
Oct 03 2019 02:57 PM
Perhaps that could be done by another way, as practically everything in Excel. If you attach small sample file to illustrate what exactly you try to do, someone here could suggest proper solution.
Oct 03 2019 03:47 PM
@Sergei BaklanCould you explain how to upload a file here?
Oct 03 2019 03:53 PM
anyway, below the formula that I want to add to a validation cell in B4
=SI(VALOR.NUMERO(EXTRAE(B4;1;HALLAR(".";B4;1)-1))<256;(SI(VALOR.NUMERO(EXTRAE(B4;(HALLAR(".";B4;1)+1);((HALLAR(".";B4;(HALLAR(".";B4;1)+1)))-(HALLAR(".";B4;1))-1)))<256;SI(VALOR.NUMERO(EXTRAE(B4;(HALLAR(".";B4;(HALLAR(".";B4;1)+1)))+1;((HALLAR(".";B4;H4+1))-(HALLAR(".";B4;(HALLAR(".";B4;1)+1)))-1)))<256;1;0);0));0)
a printscreen of the Sheet:
Oct 04 2019 07:08 AM
Solution
Please check this blog https://rednectar.net/2019/07/15/validating-ip-address-entries-in-excel/, here is formula suggestion how to validate IP address and compromise 255 characters limit.
To translate formulas in English locale to Spanish one you may use https://en.excel-translator.de/translator/ (if formulas are within Excel file they are translated automatically).
To add file to the post click this icon at the bottom left of the Reply window
Oct 04 2019 12:18 PM
@Sergei Baklan i really appreciatte it, I will try, I´m going to share result as soon as is over
Oct 07 2019 01:00 PM
I followed the procedure described in the link wich you attach with success result, indeed there is the same restriction with length of the validation formula however that formula is shorter than mine Thx a lot
Oct 07 2019 01:50 PM
To my knowledge it's not possible to change the limit on number of characters for validation formula.
However, I checked comments to this blog. If in latest suggested formula take not array constant but helper range as here
when it looks like
=SUMPRODUCT(N(LOG(1+MID(SUBSTITUTE(B6,".",REPT(" ",10)),$A$1:$A$4,10),2)<=8))=4
works. It's only 79 characters.
Please check in attached file, I didn't test it carefully.
Oct 08 2019 08:29 AM
@Sergei Baklan Thx
I checked and It works!!! however it´s missing the fact that you could add 4 point or more,
Oct 08 2019 09:13 AM
You may add this condition as well
=(SUMPRODUCT(N(LOG(1+MID(SUBSTITUTE(B6,".",REPT(" ",10)),$A$1:$A$4,10),2)<=8))=4)*(LEN(B6)-LEN(SUBSTITUTE(B6,".",""))=3)
Still less than 255
Oct 04 2019 07:08 AM
Solution
Please check this blog https://rednectar.net/2019/07/15/validating-ip-address-entries-in-excel/, here is formula suggestion how to validate IP address and compromise 255 characters limit.
To translate formulas in English locale to Spanish one you may use https://en.excel-translator.de/translator/ (if formulas are within Excel file they are translated automatically).
To add file to the post click this icon at the bottom left of the Reply window