Problem with incrementing Numbers

Marcin298

New Member
Joined
Jan 31, 2022
Messages
8
Office Version
  1. 2019
Platform
  1. Windows
#hello

Hi, i’m new here and just curious if it’s possible to solve my problem… so…

In column A i got 25 cells with same value:

myphotos_paris_142500.jpg

How to simply rename all that cells in columns with incrementing number 500? Cell A 1 should be:

myphotos_paris_142500.jpg

And next should be:

myphotos_paris_142501.jpg
myphotos_paris_142502.jpg

And max 142999.jpg.

Is it possible by search&swap tool or in cell A 2 and higher i should add a formula? Please help me ?
 
Afraid I know of no version that LEFT, MID and RIGHT aren't supported since at least Excel 2000

are you saying that the formula below also doesn't work for you in that version
Excel Formula:
=LEFT(A1;15)&MID(A1;16;6)+1&RIGHT(A1;4)
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Afraid I know of no version that LEFT, MID and RIGHT aren't supported since at least Excel 2000

are you saying that the formula below also doesn't work for you in that version
Excel Formula:
=LEFT(A1;15)&MID(A1;16;6)+1&RIGHT(A1;4)
Yes; when i put that it gaves me formula error :/ rly weird.
 
Upvote 0
Then I have no idea, post a sample of your worksheet using the boards XL2BB addin (click the XL2BB icon in the reply window for a link to instructions on how to install XL2BB)
 
Upvote 0
Then I have no idea, post a sample of your worksheet using the boards XL2BB addin (click the XL2BB icon in the reply window for a link to instructions on how to install XL2BB)
Ok will do it after work.
 
Upvote 0
Ok. And how to do it with more harder names?

Start cell is F14 with cell value:

1111111111^^^^OTHERS^^_ENT_GDN_GTW_CO_20160401_142500.pdf

Next should be as previous 142501; 142502 and so on…

I really don’t get it that formula and want it to use for various cell values.

And it does not work on excel 2k16 :/

All the formulas Work on Excel 2016, you just need to translate the Functions according to your Region
like you did in Post #10 picture.

If your various text strings Always end with 6 numbers followed by .???
Use this formula in A2 copied down, formula is already translated to Polish region, use as is:

Excel Formula:
=LEWY(A1;DŁ(A1)-10)&LEWY(PRAWY(A1;10);6)+1&PRAWY(A1;4)

Ignore the formulas in the following XL2BB table, I'm only showing for illustration purposes

Cell Formulas
RangeFormula
A8:A9,A5:A6,A2:A3A2=LEFT(A1,LEN(A1)-10)&LEFT(RIGHT(A1,10),6)+1&RIGHT(A1,4)
 
Last edited:
Upvote 0
If @jtakw is right that you are using a Polish version then the earlier formulas are
Excel Formula:
=LEWY(A1;15)&FRAGMENT.TEKSTU(A1;16;6)+1&PRAWY(A1;4)
and
Excel Formula:
=LEWY(A1;47)&FRAGMENT.TEKSTU(A1;48;6)+1&PRAWY(A1;4)

Just in case your data isn't consistent with what you posted
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

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