最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

cross platform - Excel vs Sheets formula substitution - Stack Overflow

programmeradmin2浏览0评论

I have a file in excel with the following formula referencing a cell with an IP address. The formula does not work when someone opens the file in google sheets and sometimes on other machines.

I have tried just replacing REPLACE with SUBSTITUTE and FIND with SEARCH. These have not produced the correct result.

The ref. cell is an IP address, the formula should increase the last octet by one number. 10.10.10.0 in ref cell becomes 10.10.10.1 in formula cell.

=REPLACE(J4,FIND(".",J4,FIND(".",J4,FIND(".",J4)+1)+1)+1,LEN(J4),MIN(255,MID(J4,FIND(".",J4,FIND(".",J4,FIND(".",J4)+1)+1)+1,LEN(J4)))+1)

发布评论

评论列表(0)

  1. 暂无评论