Convert dates

amna77

Active Member
Joined
May 9, 2002
Messages
251
Hi, I don't know if its possible or not. I have dates in one column. Basically that sheet is about parts, like they suppose to check 3 parts per day. I have part number in one column and dates in other.
Ok If they have 4 same dates in that column, then it should increase the last date.
for example,

2 March
2 March
2 March
3 march
2 March
4 March
3 March


Now I have 2nd March 4 times, now I want to turn the last 2nd March date into 3 March. Same way its going to keep looking for dates. if any date will be 4 times in the column, then its going to convert the last date into next date.

Can any one help me with that.

Thanks in advance
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

DonkeyOte

MrExcel MVP
Joined
Sep 6, 2002
Messages
9,123
On 2002-10-29 08:38, amna77 wrote:
Hi, I don't know if its possible or not. I have dates in one column. Basically that sheet is about parts, like they suppose to check 3 parts per day. I have part number in one column and dates in other.
Ok If they have 4 same dates in that column, then it should increase the last date.
for example,

2 March
2 March
2 March
3 march
2 March
4 March
3 March


Now I have 2nd March 4 times, now I want to turn the last 2nd March date into 3 March. Same way its going to keep looking for dates. if any date will be 4 times in the column, then its going to convert the last date into next date.

Can any one help me with that.

Thanks in advance

Say dates are in Column B and the first date you quote above is in B1 then formula in C1 would be:

=IF(COUNTIF($B$1:$B1,$B1)=4,$b1+1,$b1)

So in Col C you should find the correct dates have been added.


You HAVE to do this in a separate column for numerous reasons not least the fact that if you did this in B you would distort your results as the 4th 02/03 would become 03/03, meaning that what was originally the 4th 03/03 may now become the 5th 03/03 as the 4th 02/03 has now become the 4th 03/03 etc....



_________________
LASW10
This message was edited by lasw10 on 2002-10-31 05:51
This message was edited by lasw10 on 2002-10-31 05:51
 

Forum statistics

Threads
1,144,292
Messages
5,723,537
Members
422,502
Latest member
barakgahtan

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
Top