replacing a number to the next number in the middle of a cell

rfletcher35

Active Member
Joined
Jul 20, 2011
Messages
300
Office Version
  1. 365
Platform
  1. Windows
Guys,

I have a number of email addresses in column b on my sheet (Sample below)

LTablet181@blahblahblah.co.uk
LTablet182@blahblahblah.co.uk
LTablet183@blahblahblah.co.uk

This goes on quite a bit; I'm wanting a solution that will allow me to replace the number in the middle in this sample 181 to the next. If I drag down from 181 it simply has 181 in the bow whereas if I do drag down, I need a formula where this increments by one in some way so the next will be 182, 183, 184 etc. Hope this makes sense.

Thanks

Fletch
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
so you could have something like ="LTablet"&value(mid(A2,8,3))+1&"@blahblahblah.co.uk" (assuming A2 is the cell above and the number is always in exactly the same place
 
Upvote 0
so you could have something like ="LTablet"&value(mid(A2,8,3))+1&"@blahblahblah.co.uk" (assuming A2 is the cell above and the number is always in exactly the same place
Had a look at your formula, it's column B i'm copying down on so change the A to B but just got a value error
 
Upvote 0
In B2:
Excel Formula:
=LEFT(B1,7)&MID(B1,8,3)+1&RIGHT(B1,LEN(B1)-FIND("@",B1)+1)
 
Last edited:
Upvote 0
Solution
Seemed to work okay for me
Screenshot 2022-11-29 122120.png
 
Upvote 0

Forum statistics

Threads
1,215,521
Messages
6,125,306
Members
449,218
Latest member
Excel Master

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