Solved

need Excel plot showing 3 sets of date-time data series

Posted on 2011-09-27
8
263 Views
Last Modified: 2012-05-12
Hi,

This should be a pretty straightforward solution for one who is skilled in Excel plotting, but I've written a few paragraphs to make the problem and goal very clear.   Basically, I am trying to create a graph that shows 3 sets of data....details follow:

I have attached an excel spreadsheet with 3 tabbed worksheets, with each tab corresponding to data collected in a different town.  Each tab contains: column A = date-time of hourly rainfall, column B = hourly rainfall, column C = blank, column D = date-time of hourly water level in  shallow well, column E = hourly water level in shallow well, column F = blank, column G = date-time of hourly water level in deep well, column H = hourly water level in deep well.  

Goal:  To create one graph (showing all three data series described above) for each town's tabbed worksheet...three graphs in all, one per town.     The graph will show all three sets of time series data discussed above.  The rainfall data series (columns A and B) should be vertical bars on a secondary y axis.   The shallow well water levels should be an x-y line plot (columns D and E).  The deep well water levels should be an x-y line plot (columns G and H).  Each graph should have tic marks at monthly intervals at Jan 1st, Feb 1st, Mar 1st, etc. and span the time that we have recorded rainfall data available.  

One final note:  There are a lot of rows of data.  If "processing speed" becomes an issue, feel free to remove every Xth row of water level data (columns D and E and columns G and H) to end up with only 6 hourly values of water levels per day instead of 12 or 24.  However, ALL rainfall rows (columns A and B) must remain for a total of 24 values per day, so please make sure rainfall rows are not removed.  

Since only "partial solutions" have been provided for this question in the previous two tries, only a complete solution will be awarded points this time.  Thank you for understanding, and thanks in advance!

WL-vs-rain-for-expert-exchange.xls
0
Comment
Question by:trcamp
  • 4
  • 2
  • 2
8 Comments
 
LVL 12

Expert Comment

by:kgerb
ID: 36711481
See if this is what you want

Kyle
Q-27344012-RevA.xls
0
 

Author Comment

by:trcamp
ID: 36711638
No.  The data points do not seem to correctly match up with the correct date on the horizontal (date) axis.  This includes the rainfall data (vertical bars) which seem to be way off.    Did you check this and were they correct on your machine?
0
 
LVL 12

Expert Comment

by:kgerb
ID: 36711863
Well, isn't that fantastic.  Change the chart type for the rainfall to a column and it ignores the dates.  hmmm.....I'm going to have to think dig a little bit.  Sorry for the delay.

Kyle
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 81

Expert Comment

by:byundt
ID: 36712084
I plotted the data as line chart with time axis using VLOOKUP formulas to bring over the shallow and deep levels. Custom scaling on the primary and secondary y axes put the rainfall data above the level data for less confusion.
WL-vs-rain-for-expert-exchangeQ2.xlsx
0
 
LVL 12

Assisted Solution

by:kgerb
kgerb earned 175 total points
ID: 36712187
trcamp,
Take a look at this.  I'm not sure why it wasn't working the first time.  Seems really glitchy, like it would work and then stop working and then work again.  I dunno.

Brad,
Have you had trouble with Excel messing up the horizontal axes when doing plots on two axes with multiple plot types?

Kyle
Q-27344012-RevB.xls
0
 
LVL 81

Accepted Solution

by:
byundt earned 325 total points
ID: 36712256
For many chart types, Excel assumes that the X-axis is arbitrary text with no scaling applied. That can mess you up if you aren't using a scatter chart (or a line chart with time axis). That's why I did the VLOOKUP to bring over the well level data into the rainfall table--each of the three series then has the same number of data points (though many of them are NA() function so they don't plot).
0
 

Author Closing Comment

by:trcamp
ID: 36712347
Excellent, well done!   Thanks very much to you both - I appreciate your help!
0
 
LVL 12

Expert Comment

by:kgerb
ID: 36712383
Thanks for the assist:)

BTW, Brad, nice use of vlookup.  I always set the 4th parameter to false and forget about it.  Very good!

Kyle
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel Calculation 4 48
Turn date into age 17 32
Automating an Excel Template using VBA and Outlook 8 25
Conditional formatting excel 5 14
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question