Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default VLook up question

This is fabulous!

The one problem is that it only adds a day to the date instead of a month.

"Don Guillett" wrote:

try this idea

Sub fillinmissing()
mc = 1 'col A
For i = Cells(Rows.Count, mc).End(xlUp).Row To 1 Step -1
If Cells(i - 1, mc) < Cells(i, mc) Then
Rows(i).Insert
Cells(i, mc) = Cells(i - 1, mc) + 1
Cells(i, mc + 1) = Cells(i - 1, mc + 1)
End If
Next i
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Wolfwalker721" wrote in message
...
I have 2 colums of data as follows

1-1-05 2
3-1-05 3
5-1-05 5

I need to fill in the blanks with the previous dates value

so I need to end up with
1-1-05 2
2-1-05 2
3-1-05 3
4-1-05 3
5-1-05 5
6-1-06 5

I have the dates set up in a different column, but I need help to get the
data there


I hope this makes sence...
Thanks in advance for your time

Wolfwalker



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOK up Question smiley61799 New Users to Excel 3 June 22nd 09 07:31 PM
Quick Question about VLOOK UP [email protected] Excel Programming 0 February 4th 09 09:12 PM
Vlook Question Denise Excel Worksheet Functions 3 February 6th 08 08:24 PM
VLook UP formula question Scott@CW Excel Worksheet Functions 2 November 16th 07 04:39 PM
Vlook up question - I think ? Anthony Excel Discussion (Misc queries) 4 July 7th 05 12:02 PM


All times are GMT +1. The time now is 06:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"