auto fill in cell

ehsas

Board Regular
Joined
Sep 17, 2002
Messages
200
Looking to the below excel sheet can I have a macro where can fill the automatically in the empty cells.The macro need to put look at first cell from example E3 and paste same date to E4 and E5 and then stop pasting because there is different date in E6.Here it need to put the E6 date into E7 till E11 and so on.Please if any one could help as I have 1000 of rows which some date are empty and I need to fill them.Regads,
calculation2.xls
ABCDE
1INSTLAMT3698
2PAYMENTDATEXACTAMOUNT/MONTHNUMOFPYMTnextpdate
313-Mar-99PAYMNT7396225-Apr-99
414-Mar-99return00
515-Mar-99return00
629-Apr-99PAYMNT3698125-May-99
730-Apr-99return00
801-May-99return00
902-May-99return00
1003-May-99return00
1104-May-99return00
1211-Jul-99PAYMNT3698125-Jun-99
1312-Jul-99return00
1413-Jul-99return00
1514-Jul-99return00
1622-Jul-99PAYMNT3698125-Jul-99
Sheet2
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
ehsas

a) patience is a virtue.

b) If you have waited a reasonable amount of time for a reply, consider the possibility that your original description of the problem was not clear enough (not the case here, to be fair). I leave it to you to decide what is a reasonable time to wait.

c) I might be more inclined to help if you would do me the courtesy of saying whether the solution I proposed to another of your questions was adequate for your needs:
http://www.mrexcel.com/board/viewtopic.php?topic=22573&forum=2

d) there is a solution to this that requires no macro coding & only a few button clicks...

Paddy
 
Upvote 0
Hi ehsas:

Here is a formula based approach -- you don't need a macro for this .

in the worksheet simulation I show your column E with the already entered date values colored. To fill in the blanks with the date values above, this is what you do:

1. Highlite the range of interest in column E
2. then EDIT|GOTO|blanks
3. then in the active cell enter = ; click on the cell above and then ENTER while holding the CTRL key

all the blanks will be filled in with entry above as reproduced in column G of my simulation
PERSONAL.XLS
ABCDEFG
1INSTLAMT3698
2PAYMENTDATEXACTAMOUNT/MONTHnextPDatenextPDate
313-Mar-99PAYMNT7396225-Apr-9925-Apr-99
414-Mar-99return0025-Apr-99
515-Mar-99return0025-Apr-99
629-Apr-99PAYMNT3698125-May-9925-May-99
730-Apr-99return0025-May-99
81-May-99return0025-May-99
92-May-99return0025-May-99
103-May-99return0025-May-99
114-May-99return0025-May-99
1211-Jul-99PAYMNT3698125-Jun-9925-Jun-99
1312-Jul-99return0025-Jun-99
1413-Jul-99return0025-Jun-99
1514-Jul-99return0025-Jun-99
1622-Jul-99PAYMNT3698125-Jul-9925-Jul-99
Sheet5
</SPAN>

Regards!

Yogi
 
Upvote 0
as Yogi's determined to short-circuit my attempt to get you to answer item (C) in my above post :smile: I my as well add that you might consider doing a paste special...values on the results of the operation he described, just in case future actions (e.g. sorting) destroy the relationships set up...

paddy
 
Upvote 0
Hi Paddy:

I am sorry ... I did not mean to short circuit your attempt to have the OP answer some questions. My apologies.

Regards!

Yogi
 
Upvote 0

Forum statistics

Threads
1,224,900
Messages
6,181,631
Members
453,059
Latest member
jkevin

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