Formatting messed up dates that bled into another column

schnarkle

New Member
Joined
Jul 17, 2019
Messages
2
Hello,

I have a huge spreadsheet that mixed in date numbers from one column to another


Book1
AB
1start dateend date
21013199802212009
31229200404182017
4622201611022019
5100920161312019
6917201712082017
711011996182019
85292009blank
Roster


Most of the time the last digit in A2 (0 or 1) needs to be moved to be the first digit in B2. However sometimes A2 is correct (with a blank ending date) as seen in the last row.

how can i fix this?
 
Last edited by a moderator:

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Let's say the range of years is between 1990 and 2050, use the following two formulae.

=IF(AND(RIGHT(A2,4)+0>1990,RIGHT(A2,4)+0<2050),A2,LEFT(A2,LEN(A2)-1))
=IF(LEN(B2)=0,B2,IF(AND(RIGHT(A2,4)+0>1990,RIGHT(A2,4)+0<2050),B2,RIGHT(A2,1)&B2))
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,177
Members
452,615
Latest member
bogeys2birdies

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