Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 06-29-2009, 10:01 PM
strewart strewart is offline
Registered User
 
Join Date: 29 Jun 2009
Location: Australia
MS Office Version:Excel 2007
Posts: 4
strewart is becoming part of the community
Adding series labels

Please Register to Remove these Ads

Hi guys. I am producing scatter plots on Excel 2007 of spectroscopy data, in these plots it is quite important to know the peak values. Not so much y, but definitely x.

I know how to add data labels, but that is no use since there are thousands of points and they just cover each other up. A plot ranging from 0-3600 may have 10-20 peaks that I am interested in, is there an easy way to get excel to just mark the peaks without filling them all in manually?
Reply With Quote
  #2  
Old 06-30-2009, 05:39 AM
Andy Pope's Avatar
Andy Pope Andy Pope is offline
Forum Guru
 
Join Date: 10 May 2004
Location: Essex, UK
MS Office Version:2003 & 2007 sp2
Posts: 7,213
Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding
Re: Adding series labels

Add another series that just plots the required peaks? Apply data labels to that series.
__________________
Cheers
Andy
www.andypope.info
Reply With Quote
  #3  
Old 06-30-2009, 07:47 AM
strewart strewart is offline
Registered User
 
Join Date: 29 Jun 2009
Location: Australia
MS Office Version:Excel 2007
Posts: 4
strewart is becoming part of the community
Re: Adding series labels

Hmm yeah that would indeed be possible, it would still mean I would have to find all the peaks manually though. Even if I did min/max functions I would need to find the range where the peak was for all the seperate peaks, and I have a lot of charts. I could resort to that, but I would prefer ot find a quicker way if there is one.
Reply With Quote
  #4  
Old 06-30-2009, 07:54 AM
Andy Pope's Avatar
Andy Pope Andy Pope is offline
Forum Guru
 
Join Date: 10 May 2004
Location: Essex, UK
MS Office Version:2003 & 2007 sp2
Posts: 7,213
Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding
Re: Adding series labels

None that I know of.
How would the chart know what as a peak and what not?

Is it possible to 'find' the peaks with formula or code?

Maybe if you posted a small example explaining how you manually determine peaks when can help speed the process.
__________________
Cheers
Andy
www.andypope.info
Reply With Quote
  #5  
Old 07-01-2009, 02:15 AM
strewart strewart is offline
Registered User
 
Join Date: 29 Jun 2009
Location: Australia
MS Office Version:Excel 2007
Posts: 4
strewart is becoming part of the community
Re: Adding series labels

By manually finding the peaks, I mean I hover the mouse over a peak and it gives the coordinates, I write them on by hand. :P

So if I have 2 series on the one chart (one representing all the data, and the other just the peaks) how do I get data labels for just the latter and not the former? As I said before, with several thousand points on the graph it seems to be overloading my computer and freezing excel when I try to click anything to do with data labels.
Reply With Quote
  #6  
Old 07-01-2009, 04:27 AM
Andy Pope's Avatar
Andy Pope Andy Pope is offline
Forum Guru
 
Join Date: 10 May 2004
Location: Essex, UK
MS Office Version:2003 & 2007 sp2
Posts: 7,213
Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding
Re: Adding series labels

Here is a small example.

Main data is 200 points.

I copied the data set and sorted on x then y values.
Only the top 10 points are plotted and have data labels enabled.

I used a dynamic named range so changing the value in C1 will alter the number of data labels displayed.
Attached Files
File Type: xlsx 689594.xlsx (27.2 KB, 4 views)
__________________
Cheers
Andy
www.andypope.info
Reply With Quote
  #7  
Old 07-01-2009, 08:44 PM
strewart strewart is offline
Registered User
 
Join Date: 29 Jun 2009
Location: Australia
MS Office Version:Excel 2007
Posts: 4
strewart is becoming part of the community
Re: Adding series labels

Wow that very cool, thanks! I'll see how it goes.
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump