You haven't given us much to go on,

but you could use this vba:

Option Explicit
Sub DupData()
    Dim nRows, R, dRow
    Dim DupCnt As Integer, dCnt, tDate, tName
    Dim dArray, inx
    Range("F2:G65000").ClearContents
    dRow = 0
    nRows = Application.WorksheetFunction.CountA(Range("A1:A65000"))
    inx = Application.WorksheetFunction.Sum(Range("C1:C65000"))
    Application.ScreenUpdating = False
    ReDim dArray(inx, 1)
    For R = 2 To nRows
        If (Cells(R, "C").Value <> "") Then
            Application.StatusBar = "Adding: " & nRows - R & ": " & Cells(R, 
"B").Value
            DupCnt = Cells(R, "C").Value
            tDate = Cells(R, "A").Value
            tName = Cells(R, "B").Value
            For dCnt = 1 To DupCnt
                dRow = dRow + 1
                dArray(dRow, 0) = tDate
                dArray(dRow, 1) = tName
            Next dCnt
        End If
    Next R
    For R = 1 To dRow
        If (R Mod 10 = 0) Then Application.StatusBar = "Writing: " & R & " of  
" 
& dRow
        Cells(R + 1, "F").Value = dArray(R, 0)
        Cells(R + 1, "G").Value = dArray(R, 1)
    Next R
    Application.StatusBar = False
    Application.ScreenUpdating = True
    MsgBox "Finished"
End Sub
 
Paul
-----------------------------------------
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-----------------------------------------




________________________________
From: Deepak Rawat <deepakexce...@gmail.com>
To: excel-macros <excel-macros@googlegroups.com>
Sent: Fri, September 28, 2012 6:28:10 AM
Subject: $$Excel-Macros$$ Data Input with times in given numbers

Dear All 

I have a querry that i have to put date & names in number of times given in 
next 
cell, but how to do Pls suggest

file is attached -- 
Join official facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES (1120+ members already BANNED for violation)
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
 
2) Don't post a question in the thread of another member.
 
3) Don't post questions regarding breaking or bypassing any security measure.
 
4) Acknowledge the responses you receive, good or bad.
 
5) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

 
6) Jobs posting is not allowed.
 
7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners 
and members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to 
excel-macros+unsubscr...@googlegroups.com.

-- 
Join official facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES (1120+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

6) Jobs posting is not allowed.

7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to 
excel-macros+unsubscr...@googlegroups.com.


Reply via email to