Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# How can I convert a list of item based on starting date to show the history of each one

Posted on 2013-01-21
Medium Priority
230 Views
Dear All,

How can I convert a list of item based on starting date to show the history of each one.

wellbore      Fluid      Date                  wellbore      Fluid      Date
SFNY-951      3.5      1/1/2013                  SFNY-951      3.5      1/1/2013
SFNY-952      7      1/2/2013                  SFNY-951      3.5      1/2/2013
SFNY-953      6      1/3/2013                  SFNY-951      3.5      1/3/2013
SFNY-954      5      1/4/2013                  SFNY-951      3.5      1/4/2013
SFNY-955      6.3      1/5/2013                  SFNY-951      3.5      1/5/2013
SFNY-952      7      1/2/2013
SFNY-952      7      1/3/2013
SFNY-952      7      1/4/2013
SFNY-952      7      1/5/2013
SFNY-953      6      1/3/2013
SFNY-953      6      1/4/2013
SFNY-953      6      1/5/2013
SFNY-954      5      1/4/2013
SFNY-954      5      1/5/2013
SFNY-955      6.3      1/5/2013

Regards,

Dallag
Production-Priority.xlsx
0
Question by:Mohammed Dallag
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 43

Accepted Solution

Saqib Husain, Syed earned 2000 total points
ID: 38804482
Try this macro

``````Sub wellbhistory()
Dim sws As Worksheet
Dim tws As Worksheet
Dim cel As Range
Dim tr As Long
Dim i As Long
Set sws = Sheet1
Set tws = Sheet2
edat = WorksheetFunction.Max(sws.Range("C:C"))
For Each cel In sws.Range("A2:A" & sws.Range("A2").End(xlDown).Row)
For i = cel.Offset(, 2) To edat
tr = tws.Range("A" & Rows.Count).End(xlUp).Offset(1).Row
cel.Resize(, 3).Copy tws.Cells(tr, 1)
tws.Cells(tr, 3) = i
Next i
Next cel
End Sub
``````
0

Author Closing Comment

ID: 38804532
Thank you it worked fine.

Regards,

Dallag
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cancel future meetings from user mailboxes in Office 365 using Remove-CalendarEvents
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
###### Suggested Courses
Course of the Month6 days, 11 hours left to enroll