Solved

# Excel - Graph two sets of account balance histories together (dates may vary slightly)

Posted on 2014-09-19
Medium Priority
230 Views
I've got the account transaction data for two different accounts and I'd like to graph them together. Unfortunately, the data isn't daily, it's updated whenever there's a transaction, so while they "share" the key of date, they don't share all the same values for that key. However, there's obviously a lot of commonality

How can I graph these both as separate datasets on the same chart since their key isn't a perfect match. but it similar?
0
Question by:Ryan McCauley
[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 24

Expert Comment

ID: 40332542
I would combine them onto a third spreadsheet which does list them by day, and then use SUMIF to copy them into this third sheet, and then do the graph from that.

So you would have columns:
Date
Account 1 Value
Account 2 Value
0

LVL 27

Accepted Solution

Glenn Ray earned 2000 total points
ID: 40333699
If your x-axis is represented by dates, you can easily plot two separate ranges of data across a date range, regardless of the where/when the data points occur.

If you use a scatter chart (X-Y chart), you can choose each accounts dates and transaction amounts for the X and Y values, respectively and combine the plots with no additional steps.  This example has data from two separate sheets:

If, however, you want to plot with a bar/column chart, you'll have to create a third table as Phillip Burton suggested.  One column would have a continuous range of dates and each of the other two columns would have a formula to return that accounts transaction amount for that date.  For example:
If the data is discrete (i.e., one transaction/balance total per day) then you can use VLOOKUP to return the amount, otherwise you'd use SUMIF.  If the source worksheet is titled "Account A" and has dates in column A and the amounts in column B, then the formulas in the combined sheet would be:
B2:  =VLOOKUP(A2,'Account A'!A:B,2,FALSE)   or
B2:  =SUMIF('Account A'!A:A,A2,'Account A'!B:B)

and similarly for Account B
C2:  =VLOOKUP(A2,'Account B'!A:B,2,FALSE)   or
C2:  =SUMIF('Account B'!A:A,A2,'Account B'!B:B)

And a combined bar chart would then look like this:

Note that these two charts plot the EXACT same data points, so now you have to consider how readable or useful these are to decide what kind to proceed with.  I've attached an example workbook with all this for you to test.

Regards,
-Glenn
EE-CombinedAccounts.xlsx
0

## Featured Post

Question has a verified solution.

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

: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micrâ€¦
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
Viewers will learn about various customizable options in Excel 2013.
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
###### Suggested Courses
Course of the Month8 days, 1 hour left to enroll