Incrementing IP Addresses with hidden rows

sledparty

New Member
Joined
Sep 26, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I am trying to increment IP addresses in a single column but multiple rows are hidden with filters. Out of over 5k rows I only want to populate about 570 with an IP range that begins with 192.168.1.10 up to 192.168.2.255 for example. Again, MOST of the rows are hidden by filtering. I only want the rows that are visible to populate with IPs.

My current formula works but it populates all rows even hidden ones.

="192.168.1."&Rows(A$6:A6)

Thank you
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
@ Joe4: Unfortunately, the suggested SUBTOTAL approach would not work -- the formula would keep returning "192.168.1.1" because the nested subtotals are ignored.

@ sledparty: See if the following formula works for you
Excel Formula:
=TEXTJOIN(".",,HEX2DEC(MID(RIGHT("0000000"&DEC2HEX(SUM(INDEX(TEXTSPLIT(A$6,"."),{1,2,3,4})*256^{3,2,1,0})+AGGREGATE(3,5,A$6:A6)),8),{1,3,5,7},2)))
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top