Sequential forumula to add a number in the cell below to data

IGinc

Board Regular
Joined
Jun 14, 2009
Messages
148
I need a solution to add a number, the data in the cell is currently in this format MD83ERHU-5.jpg.

My question is how can I get the cells below to be MD83ERHU-6.jpg, MD83ERHU-7.jpg, and so on.

One solution I thought of was cells like such

MD83ERHU
-
5
.jpg
concatenate formula
formula to add + 1 to (5)

I cannot recall the formula, but am quite confident, there is way to create a formula that can make the cell one number higher than the cell above, and fill down.

Your help with my solution is appreciated, or an easier way to change MD83ERHU-5.jpg add + 1 to each cell and just fill down would be even better :).

Thanks!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Maybe:

Code:
=LEFT(A1,LEN(A1)-5)&--MID(A1,LEN(A1)-4,1)+1&".jpg"
In A2 and copied down (assuming MD83ERHU-5.jpg sits in A1).

Matty
 
Upvote 0
If you were to use a formula like this:
Code:
="MD83ERHU-"&ROW()&".jpg"
your entries would end up like this:
MD83ERHU-5.jpg if it's in row 5.
MD83ERHU-8.jpg if it's in row 8, etc.

That sound like it might work?
 
Upvote 0
Matty and HalfAce.

Tried both - both worked, just wanted to thank you both for saving me time!

This board is great!
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

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