Compare dates and insert a missing date in a new row

yousef9

New Member
Joined
Apr 15, 2002
Messages
2
This is what I would like to do.
The first column of my spreadsheet could have text and date values; as follows:
12/5/2000
12/6/2000
12/9/2000
Subtotal

1/1/2001
1/2/2001
1/3/2001
subtotal
GrandTotal

I would like a macro to be applied to the first column. The macro needs to realize that there is a gap in the dates after 12/6/2000 and and before 12/9/2000. I want the macro to insert the missing dates in 2 new rows
12/7/200
12/8/2000

So the spreadwheet should look like:

12/5/2000
12/6/2000
12/7/2000
12/8/2000
12/9/2000
Subtotal

1/1/2001
1/2/2001
1/3/2001
subtotal
GrandTotal

_________________
regards-
Yousef
This message was edited by yousef9 on 2002-04-16 20:03
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
On 2002-04-16 20:01, yousef9 wrote:
This is what I would like to do.
The first column of my spreadsheet could have text and date values; as follows:
12/5/2000
12/6/2000
12/9/2000
Subtotal

1/1/2001
1/2/2001
1/3/2001
subtotal
GrandTotal

I would like a macro to be applied to the first column. The macro needs to realize that there is a gap in the dates after 12/6/2000 and and before 12/9/2000. I want the macro to insert the missing dates in 2 new rows
12/7/200
12/8/2000

So the spreadwheet should look like:

12/5/2000
12/6/2000
12/7/2000
12/8/2000
12/9/2000
Subtotal

1/1/2001
1/2/2001
1/3/2001
subtotal
GrandTotal

_________________
regards-
Yousef
This message was edited by yousef9 on 2002-04-16 20:03
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,585
Members
448,972
Latest member
Shantanu2024

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