Link to home
Start Free TrialLog in
Avatar of Jenkins
JenkinsFlag for United States of America

asked on

Arrange data in Excel to produce a line chart

Using Excel 2010, I want to be able to generate a line chart that will display the dollar fluctuations over time for each location. I've attached a small Excel file just to show the general format of the source files I'm dealing with. The actual files are much larger and contain many more dates and many more locations. To try to keep things simple, in the attached file, I'm just using a couple of state abbreviations to represent different locations.

I was previously told that in order to produce the line chart I described, the data needs to be rearranged as follows:

First column should: Date
Second column: Location
Third column: Amount

Sorted by Date and then by Location

Then create a new table with the data sorted as follows:

in the first row the different locations and in the 1st col the dates and then inserting the rest of the data

My question is:  

Is there a built in function or a macro that can rearrange the data into the format I need?
Again, my files can be quite large (sometimes as many as about 2,000 records). But they (the source files) will always be just 3 columns of data (Location, Date and Amount).
When dealing with many locations and many dates, manually rearranging the data will take forever and is prone to lots of errors.  Thanks.
TestFile.xlsx
Avatar of Rgonzo1971
Rgonzo1971

HI,

you could use a PivotChart

See Sheet2

Regards
Copy-of-TestFile.xlsx
Avatar of Jenkins

ASKER

Thanks.  But what would be the steps to generate that?
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jenkins

ASKER

Thanks.