Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Did anybody know, how to create a steam leaf plot with Excel?
Thanks, Tilo |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
St4em and Leaf Display or Plot | Charts and Charting in Excel | |||
How to add a line plot onto a stacked plot in Excel | Charts and Charting in Excel | |||
Is it possible to make a box and whisker plot (box plot) in Excel. | Charts and Charting in Excel | |||
Stem-and-leaf display\Excel 2000 | New Users to Excel | |||
Can you do a Stem and Leaf Plot in Excel | Charts and Charting in Excel |