How to breakdown one row into several identical rows based on certain date range criteria?

fleer

New Member
Joined
Mar 6, 2018
Messages
4
I would like to breakdown one row data into several rows based on start and end date say feb 4- Jun 15 as Feb 4-28, Mar 1-31,Apr 1-30,May 1-31 and June 1-15 and populate the results onto another spreadsheet with the same columns. I am new to vba and need kind help from your guys.

EVENT_IDEVENT_KINDUNIT_NAMEUNIT_IDOWNER_NAMEPLANT_IDPLANT_NAMEIND_CODEIND_DESCPHYS_CITYSTART_DATEEND_DATEASSIGNEDTOESTVALUEESTCLOSERELEASE_DT
368314TABT Nr. 202 (ABT-2/2) (Crude 02)2112273Bakinsk NPZ JSC1051655Bakinsk Heydar Aliyev Lower Refinery (Azerneftyag)6Petroleum Refining (HPI)Baku18-Aug-1711-Sep-1719-Oct-17
368318TABT Nr. 202 (ABT-2/2) (Crude 02)2112273Bakinsk NPZ JSC1051655Bakinsk Heydar Aliyev Lower Refinery (Azerneftyag)6Petroleum Refining (HPI)Baku15-Sep-189-Oct-1817-Jan-18
368315TABT Nr. 202 (ABT-2/2) (Crude 02)2112273Bakinsk NPZ JSC1051655Bakinsk Heydar Aliyev Lower Refinery (Azerneftyag)6Petroleum Refining (HPI)Baku12-Sep-156-Oct-1521-Apr-17
368313TABT Nr. 202 (ABT-2/2) (Crude 02)2112273Bakinsk NPZ JSC1051655Bakinsk Heydar Aliyev Lower Refinery (Azerneftyag)6Petroleum Refining (HPI)Baku6-Aug-1630-Aug-1621-Apr-17
368349TABT Nr. 305 (ABT-2/1) (Crude 01)2112270Bakinsk NPZ JSC1051655Bakinsk Heydar Aliyev Lower Refinery (Azerneftyag)6Petroleum Refining (HPI)Baku12-Sep-156-Oct-1517-Jan-18
368346TABT Nr. 305 (ABT-2/1) (Crude 01)2112270Bakinsk NPZ JSC1051655Bakinsk Heydar Aliyev Lower Refinery (Azerneftyag)6Petroleum Refining (HPI)Baku18-Aug-1711-Sep-1719-Oct-17
368340TABT Nr. 305 (ABT-2/1) (Crude 01)2112270Bakinsk NPZ JSC1051655Bakinsk Heydar Aliyev Lower Refinery (Azerneftyag)6Petroleum Refining (HPI)Baku15-Sep-189-Oct-1821-Apr-17
368348TABT Nr. 305 (ABT-2/1) (Crude 01)2112270Bakinsk NPZ JSC1051655Bakinsk Heydar Aliyev Lower Refinery (Azerneftyag)6Petroleum Refining (HPI)Baku6-Aug-1630-Aug-1621-Apr-17

<tbody>
</tbody>
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi fleer,

I understand that you want to make a new sheet based on the information from the original sheet, but I don't understand what information you'd like to be on the new sheet. Can you show me what the new sheet is supposed to look like based on your example?
 
Upvote 0
Hi fleer,

I understand that you want to make a new sheet based on the information from the original sheet, but I don't understand what information you'd like to be on the new sheet. Can you show me what the new sheet is supposed to look like based on your example?
Hi mate tks for the response. Actually I would like to have all the other columns intact ie the row is split into several only based on the multiple periods and other info are automatically copied down. Guess it is not easy to achieve? Looking forward to ur reply. Thanks a lot .
 
Upvote 0
Hi mate tks for the response. Actually I would like to have all the other columns intact ie the row is split into several only based on the multiple periods and other info are automatically copied down. Guess it is not easy to achieve? Looking forward to ur reply. Thanks a lot .
I'm still unclear on what the final result would be. What would the new sheet look like in your example?
 
Upvote 0
Ok, I think I understand...

Should the first two rows look like this on the second sheet?

Excel 2007 32 bit
ABCDEFGHIJKLMNOP
1EVENT_IDEVENT_KINDUNIT_NAMEUNIT_IDOWNER_NAMEPLANT_IDPLANT_NAMEIND_CODEIND_DESCPHYS_CITYSTART_DATEEND_DATEASSIGNEDTOESTVALUEESTCLOSERELEASE_DT
2368314TABT Nr. 202 (ABT-2/2) (Crude 02)2112273Bakinsk NPZ JSC1051655Bakinsk Heydar Aliyev Lower Refinery (Azerneftyag)6Petroleum Refining (HPI)Baku18-Aug-1731-Aug-1719-Oct-17
3368314TABT Nr. 202 (ABT-2/2) (Crude 02)2112273Bakinsk NPZ JSC1051655Bakinsk Heydar Aliyev Lower Refinery (Azerneftyag)6Petroleum Refining (HPI)Baku1-Sep-1711-Sep-1719-Oct-17
4368318TABT Nr. 202 (ABT-2/2) (Crude 02)2112273Bakinsk NPZ JSC1051655Bakinsk Heydar Aliyev Lower Refinery (Azerneftyag)6Petroleum Refining (HPI)Baku15-Sep-1830-Sep-1817-Jan-18
5368318TABT Nr. 202 (ABT-2/2) (Crude 02)2112273Bakinsk NPZ JSC1051655Bakinsk Heydar Aliyev Lower Refinery (Azerneftyag)6Petroleum Refining (HPI)Baku1-Oct-189-Oct-1817-Jan-18

<tbody>
</tbody>
Sheet2
 
Upvote 0
Ok, I think I understand...

Should the first two rows look like this on the second sheet?

Excel 2007 32 bit
ABCDEFGHIJKLMNOP
1EVENT_IDEVENT_KINDUNIT_NAMEUNIT_IDOWNER_NAMEPLANT_IDPLANT_NAMEIND_CODEIND_DESCPHYS_CITYSTART_DATEEND_DATEASSIGNEDTOESTVALUEESTCLOSERELEASE_DT
2368314TABT Nr. 202 (ABT-2/2) (Crude 02)2112273Bakinsk NPZ JSC1051655Bakinsk Heydar Aliyev Lower Refinery (Azerneftyag)6Petroleum Refining (HPI)Baku18-Aug-1731-Aug-1719-Oct-17
3368314TABT Nr. 202 (ABT-2/2) (Crude 02)2112273Bakinsk NPZ JSC1051655Bakinsk Heydar Aliyev Lower Refinery (Azerneftyag)6Petroleum Refining (HPI)Baku1-Sep-1711-Sep-1719-Oct-17
4368318TABT Nr. 202 (ABT-2/2) (Crude 02)2112273Bakinsk NPZ JSC1051655Bakinsk Heydar Aliyev Lower Refinery (Azerneftyag)6Petroleum Refining (HPI)Baku15-Sep-1830-Sep-1817-Jan-18
5368318TABT Nr. 202 (ABT-2/2) (Crude 02)2112273Bakinsk NPZ JSC1051655Bakinsk Heydar Aliyev Lower Refinery (Azerneftyag)6Petroleum Refining (HPI)Baku1-Oct-189-Oct-1817-Jan-18

<tbody>
</tbody>
Sheet2
Yes mate you r right
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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