• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Formula with IP octects Required

Rui Pires

Member
Dear All,

I am looking for a formula,


I am looking for a formula to solve the cells B3: BX.

Knowing that the Ips cells from A1: AX can be variables

because in each octet can be up to 3 numbers.

I just want that in B3: BX present only the IP to the left of the "/", as seen in B2.

B2 (= MID (A2;FIND (".";A2) -3; 12)) only works with 12 characters.

3140.jpg



Thanks in advance

Regards,

Rui Pires
 
Try below array formula:

=LEFT(H8,MAX(IF(MID(H8,ROW(INDIRECT("1:"&LEN(H8))),1)=".",ROW(INDIRECT("1:"&LEN(H8))))))

Enter with Ctrl+Shift+Enter.

Regards,
 
Back
Top