Warning: Use of undefined constant result - assumed 'result' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/dynamic.php on line 36

Warning: Use of undefined constant pagename - assumed 'pagename' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/dynamic.php on line 46

Warning: Use of undefined constant pagename - assumed 'pagename' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/dynamic.php on line 52

Warning: Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/dynamic.php on line 54

Warning: Use of undefined constant count - assumed 'count' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/dynamic.php on line 58

Warning: Use of undefined constant debug - assumed 'debug' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/sqlfunctions.php on line 184

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, bool given in /data01/hpcsolut/public_html/howtofix/dynamic.php on line 449

Warning: Use of undefined constant pw - assumed 'pw' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/dynamic.php on line 515

Warning: Use of undefined constant result - assumed 'result' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/menu.php on line 3

Warning: Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/search.php on line 3
Excel display filetype or all chars after last full stop
How to fix anything

Search for :



Excel display filetype or all chars after last full stop


Useful formula to display all text after the last full stop




=RIGHT(A1, LEN(A1)-(FIND("#",SUBSTITUTE(A1,".","#",LEN(A1)-LEN(SUBSTITUTE(A1,".",""))))))

How does this work?


Let's look at an example:

We want to find the right hand side of 192.168.0.254 after the last full stop
e.g 254

1. The last part LEN(A1)-LEN(SUBSTITUTE(A1,".","") removes all the .'s and give a length of this string 1921680254"value is 10

2. This is subtracted from the length of A1 e.g. 13-10 = 3
This tells us how many .'s in the string

3. The next part FIND("#",SUBSTITUTE(A1,".","#",3) substitutes the 3rd . for a #

4. Now it just works out where the # is placed, subtracts that from the length to give number of characters to take from the right 3

5. Finally, 3 characters are taken from the right of the string, e.g. 254


Change the formula as required, so you could find the last @ sign by replacing the .'s with a @'s sign
    IP