Method (Macro?) to Reorganize Rows Based on 1 Cell

aorum

New Member
Joined
May 12, 2011
Messages
3
I need every rows date to match the date in Column A. Column A (Date) Column B (In) Column C (Out) must remain together because the in/out numbers are for a that date/time.

For instance, A7 shows 2/17/2013 1:32. You can see D7 (2/17/2013 1:37) does not match A7. Because of this I need excel to 'push' this cell (D7) down so (2/17/2013 1:37) will now be D8 therefore matching A8. BTW I have about 10,000 rows so doing it by hand is not possible without giving up the Colbert Report.

Thank you in advance for your helpful suggestions!


1 Date In Out Date In Out Date In Out Date In Out
2 2/17/2013 0:02 34 165 2/17/2013 0:02 34 165 2/17/2013 0:02 34 165 2/17/2013 0:02 34 165
3 2/17/2013 0:12 34 165 2/17/2013 0:12 34 165 2/17/2013 0:12 34 165 2/17/2013 0:12 34 165
4 2/17/2013 0:37 34 162 2/17/2013 0:42 34 162 2/17/2013 0:37 34 162 2/17/2013 0:37 34 162
5 2/17/2013 0:52 34 166 2/17/2013 0:57 34 166 2/17/2013 0:52 34 165 2/17/2013 0:52 34 166
6 2/17/2013 1:07 34 165 2/17/2013 1:12 34 165 2/17/2013 1:07 34 166 2/17/2013 1:07 34 165
7 2/17/2013 1:32 34 165 2/17/2013 1:37 34 165 2/17/2013 1:32 34 165 2/17/2013 1:42 34 165
8 2/17/2013 1:37 34 165 2/17/2013 1:47 34 165 2/17/2013 1:47 34 165 2/17/2013 1:47 34 165
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

dermie_72

Well-known Member
Joined
Sep 4, 2012
Messages
1,540
Do you have any code that you have written so far that we can help you with?
 

aorum

New Member
Joined
May 12, 2011
Messages
3
My only code experience is to 'record a macro'. This has served me well during the past few years but occasional, such as now, I run across situations that 'recording a macro' will not work. I do not enjoy programming because I simply have too much of a hard time grasping it...I suppose I'm visually minded which is why I was best suited for a BA degree.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,200
Messages
5,835,956
Members
430,396
Latest member
dzifna

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
Top