+1 to character within a string

icetray

New Member
Joined
Jun 8, 2011
Messages
16
If...
A1 = "20110501"
A2 = "20110502"
A3 = "20110503" etc...

and I want...
B1 = "20110601"
B2 = "20110602"
B3 = "20110603" etc...

Basically, I want to +1 to the 6th character from the left, how could I do this?

Thanks Mr. Excel Boards!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Nope they are not always 8 characters.

I ended up using the LEFT, MID, RIGHT functions, and it worked perfectly.

Thanks guys!

"=(LEFT(B5,79)&MID(B5,80,1)+1&RIGHT(B5,6))"
 
Upvote 0
The solution you used incremented the 80th position, not the 6th.

In that case:
=REPLACE(A1,80,1,MID(A1,80,1)+1)
 
Upvote 0
Ya, I was just posting that for simplicity. I had a massive string that I had to manipulate. :)

Thanks anyways!
This forums is great!
 
Upvote 0

Forum statistics

Threads
1,224,575
Messages
6,179,637
Members
452,934
Latest member
Jdsonne31

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