Urgent help needed!

GrossNole

New Member
Joined
Sep 11, 2009
Messages
1
Here is an example of what I want to do.
This is what the data would look like:

DATE RATE1 DATE RATE2 DATE RATE3
1/06__ 3___ 1/06__ 4___ 1/06__ 5
2/06__ 4___ 3/06__ 5___ 2/06__ 6
3/06__ 5___ 4/06__ 6___ 3/06__ 7
5/06__ 6___ 5/06__ 7___ 4/06__ 8

As you can see some of the dates are missing in certain columns so I am trying to figure out how to line up each row with the same date so it would look like this:

DATE RATE1 DATE RATE2 DATE RATE3
1/06__ 3___ 1/06__ 4___ 1/06__ 5
2/06__ 4______________ 2/06__ 6
3/06__ 5___ 3/06__ 5___ 3/06__ 7
___________4/06__ 6___ 4/06__ 8
5/06__ 6___ 5/06__ 7

Once I finish this I want to graph (using Scatter graph with Smooth lines) this data all on one graph showing the relationship between the three.

Thanks again for your help.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
How about this:
Code:
Option Explicit

Sub ReAlign()
'JBeaucaire  (9/11/2009)
Dim i As Long:  i = 2
Dim Minm As Long

    Do
        Minm = WorksheetFunction.Min(Cells(i, "A"), Cells(i, "C"), Cells(i, "E"))
        If Cells(i, "A") > Minm Then Range(Cells(i, "A"), Cells(i, "B")).Insert xlShiftDown
        If Cells(i, "C") > Minm Then Range(Cells(i, "C"), Cells(i, "D")).Insert xlShiftDown
        If Cells(i, "E") > Minm Then Range(Cells(i, "E"), Cells(i, "F")).Insert xlShiftDown
        i = i + 1
    Loop Until Evaluate("=COUNT(A" & i & ":F" & i & ")=0")

End Sub

Excel Workbook
ABCDEF
1DATERATE1DATERATE2DATERATE3
26-Jan36-Jan46-Jan5
36-Feb46-Mar56-Feb6
46-Mar56-Apr66-Mar7
56-May66-May76-Apr8
6
7
Before
Excel Workbook
ABCDEF
1DATERATE1DATERATE2DATERATE3
26-Jan36-Jan46-Jan5
36-Feb46-Feb6
46-Mar56-Mar56-Mar7
56-Apr66-Apr8
66-May66-May7
7
After
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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