SOLVED

HOW TO INCREASE THE MAXIMUM SIZE FORMULA IN VALIDATION OPTION

Copper Contributor

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?

9 Replies

@Heatcliff 

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.

@Sergei BaklanCould you explain how to upload a file here?

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:

Anotación 2019-10-03 175221.jpg

 

 

 

best response confirmed by Heatcliff (Copper Contributor)
Solution

@Heatcliff 

 

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

image.png

 

@Sergei Baklan  i really appreciatte it, I will try, I´m going to share result as soon as is over

@Heatcliff 

 

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

@Heatcliff 

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

image.png

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.

@Sergei Baklan  Thx

 

I checked and It works!!! however it´s missing the fact that you could add 4  point or more, 

@Heatcliff 

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

1 best response

Accepted Solutions
best response confirmed by Heatcliff (Copper Contributor)
Solution

@Heatcliff 

 

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

image.png

 

View solution in original post