Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Steam Leaf Plot in Excel

Did anybody know, how to create a steam leaf plot with Excel?

Thanks,
Tilo
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Steam Leaf Plot in Excel

To my knowledge there is no built-in ability in Excel to do a stem-leaf plot.

"Ben" wrote:

Did anybody know, how to create a steam leaf plot with Excel?

Thanks,
Tilo

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Steam Leaf Plot in Excel

Ben or Tilo -

Did anybody know, how to create a steam leaf plot with Excel? <


What happens if you go to www.google.com, click on Groups, type "stem leaf
plot with Excel" (without the quotes), and click Search Groups?

You'll get fewer results if you search for "steam leaf plot with Excel."

- Mike
www.mikemiddleton.com


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Steam Leaf Plot in Excel

Ben,
Try this as a starter:

Sub StemAndLeafPlot()

Dim inRng As Range, cell As Range
Dim ws1 As Worksheet, ws2 As Worksheet
Dim MaxVal As Integer, MinVal As Integer, lIndex As Integer, uIndex As Integer
Dim i As Integer, n As Integer, j As Integer

Set ws1 = Worksheets("sheet1")
With ws1
Set inRng = .Range("a1:a" & .Cells(Rows.Count, "A").End(xlUp).Row)
End With

MaxVal = Application.Max(inRng)
MinVal = Application.Min(inRng)

lIndex = Int(MinVal / 10) * 10
uIndex = (Int(MaxVal / 10)) * 10

Set ws2 = Worksheets("sheet2")
ws2.Cells.ClearContents

i = 0
For n = lIndex To uIndex Step 10 ' Write Stems
i = i + 1
ws2.Cells(i, 1) = n
Next n

For Each cell In inRng ' Write Leaves
i = Int((cell.Value - lIndex) / 10) + 1
n = cell.Value Mod 10
j = Application.CountA(ws2.Rows(i)) + 1
ws2.Cells(i, j) = n
Next cell

End Sub

HTH

"Ben" wrote:

Did anybody know, how to create a steam leaf plot with Excel?

Thanks,
Tilo

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
St4em and Leaf Display or Plot Dessi Bravo Charts and Charting in Excel 3 January 10th 08 10:08 AM
How to add a line plot onto a stacked plot in Excel Vijay Charts and Charting in Excel 1 November 14th 07 01:04 PM
Is it possible to make a box and whisker plot (box plot) in Excel. rfsp Charts and Charting in Excel 2 April 3rd 07 02:57 PM
Stem-and-leaf display\Excel 2000 fjm New Users to Excel 1 October 3rd 05 09:06 PM
Can you do a Stem and Leaf Plot in Excel Mike Charts and Charting in Excel 1 January 11th 05 12:11 PM


All times are GMT +1. The time now is 02:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"