Removing Gaps In Charts 


Removing Gaps In Charts  Excel 
View Answers 
My chart has gaps and I want to remove them. The gaps are from the zeros in my data table. I cannot eliminate those. I tried to type =NA() to show as an error so that the chart won't read it, but it still does.
Similar Excel Tutorials
Update, Change, and Manage the Data Used in a Chart in Excel
In this tutorial I am going to show you how to update, change and manage the data used by charts in Excel. This tut ...
In this tutorial I am going to show you how to update, change and manage the data used by charts in Excel. This tut ...
Change the Name of a Chart in Excel
How to change the name of a chart in Excel. This allows you to use a more intuitive chart reference when organizin ...
How to change the name of a chart in Excel. This allows you to use a more intuitive chart reference when organizin ...
Quickly Clear all Formatting in Excel
How to remove all formatting from cells at once in Excel. This includes removing any and all types of formatting b ...
How to remove all formatting from cells at once in Excel. This includes removing any and all types of formatting b ...
Make Y Axis Start at 0 in Charts in Excel
How to make the Y axis start at 0 in charts in Excel. This is a simple formatting issue. Select the Chart and go to ...
How to make the Y axis start at 0 in charts in Excel. This is a simple formatting issue. Select the Chart and go to ...
Helpful Excel Macros
Delete All Chart Sheets in Excel  Only Chart Sheets are Deleted  Not Embedded Charts
 Delete all chart sheets and tabs in Excel using this macro. This will only delete the charts and graphs that are in the
 Delete all chart sheets and tabs in Excel using this macro. This will only delete the charts and graphs that are in the
Get Values from a Chart
 This macro will pull the values from a chart in excel and list those values on another spreadsheet. This will get the s
 This macro will pull the values from a chart in excel and list those values on another spreadsheet. This will get the s
Print all Embedded Charts in the Entire Workbook
 This macro will print every embedded chart in the active workbook. If you have an embedded chart in any worksheet within
 This macro will print every embedded chart in the active workbook. If you have an embedded chart in any worksheet within
Create a Line Chart with a Macro in Excel
 Create a line chart in Excel with this macro. This allows you to quickly and easily create line charts and graphs from
 Create a line chart in Excel with this macro. This allows you to quickly and easily create line charts and graphs from
Create a Column Chart with a Macro in Excel
 This macro adds a column chart to Excel. This is an easy to use macro that allows you to quickly chart and graph a rang
 This macro adds a column chart to Excel. This is an easy to use macro that allows you to quickly chart and graph a rang
Similar Topics
HI, I am trying to create a chart that is using data with gaps. The x axis is wk numbers, so I cant hide rows. The gaps in the data are not empty cells as there is a formula in there. How do I prevent the chart from plotting these gaps as zero??
Can anyone help??
Can anyone help??
Hello,
I have a four charts that are using dynamic named ranges to plot the values. The data table that my chart uses may have data in it with gaps. When there are gaps in data, the chat plots funny.
I have attached an example illustrating my issue.
When there are gaps, the named range will plot the second block of data but not the first. Is there anyway I can adjust the formula for the named range to plot both without gaps on the chart? Or just overall make it look better, or plot better.
I have a four charts that are using dynamic named ranges to plot the values. The data table that my chart uses may have data in it with gaps. When there are gaps in data, the chat plots funny.
I have attached an example illustrating my issue.
When there are gaps, the named range will plot the second block of data but not the first. Is there anyway I can adjust the formula for the named range to plot both without gaps on the chart? Or just overall make it look better, or plot better.
I have data series that may have gaps in them. For instance, this series is
typical:
1 yr 70
2 yr 87.5
3 yr 110
4 yr 120
5 yr 129
6 yr
7 yr
8 yr
9 yr
10 yr 162.5
For other series the gaps may appear in other places. I would like to chart
all of these (up to five series) on a single chart.
I can do this, but the gaps make the line "disappear" where there are gaps.
For instance, in the case above there is a nice like from 1 to 6, then a
single dot at 10. Is there some way to tell it to ignore the gap and draw
straight lines over them?
Maury
typical:
1 yr 70
2 yr 87.5
3 yr 110
4 yr 120
5 yr 129
6 yr
7 yr
8 yr
9 yr
10 yr 162.5
For other series the gaps may appear in other places. I would like to chart
all of these (up to five series) on a single chart.
I can do this, but the gaps make the line "disappear" where there are gaps.
For instance, in the case above there is a nice like from 1 to 6, then a
single dot at 10. Is there some way to tell it to ignore the gap and draw
straight lines over them?
Maury
Plotting a stock bar chart and using weekdays only (no weekend date values)
as the xaxis (category labels) leavs med with gaps in the bar chart.
How do i plot the chart without the gaps?
Regards
as the xaxis (category labels) leavs med with gaps in the bar chart.
How do i plot the chart without the gaps?
Regards
And second problem I have is, that chart leaves gaps if there is empty cells.
I need these cell to be ignored instead. That chart don't show information from them. For example if there is no information about this year, then just ignore it, and show only years where is information.
Data for example:
.....200805 ......... 200804...........200803
971 349 188..........................953 285 324
611 323 736..........................612 510 025
747 189 300..........................703 691 200
How to ignore "200804" instead of gap?
As I know, it work's if there is only line chart, but i have chart with 2 Y axes, 1st presents column chart, 2nd  line chart.
Thx in advance.
I need these cell to be ignored instead. That chart don't show information from them. For example if there is no information about this year, then just ignore it, and show only years where is information.
Data for example:
.....200805 ......... 200804...........200803
971 349 188..........................953 285 324
611 323 736..........................612 510 025
747 189 300..........................703 691 200
How to ignore "200804" instead of gap?
As I know, it work's if there is only line chart, but i have chart with 2 Y axes, 1st presents column chart, 2nd  line chart.
Thx in advance.
And second problem I have is, that chart leaves gaps if there is empty cells.
I need these cell to be ignored instead. That chart don't show information from them. For example if there is no information about this year, then just ignore it, and show only years where is information.
Data for example:
.....200805...........200804...........200803
971 349 188..........................953 285 324
611 323 736..........................612 510 025
747 189 300..........................703 691 200
How to ignore "200804" instead of gap?
As I know, it work's if there is only line chart, but i have chart with 2 Y axes, 1st presents column chart, 2nd  line chart.
Thx in advance.
I need these cell to be ignored instead. That chart don't show information from them. For example if there is no information about this year, then just ignore it, and show only years where is information.
Data for example:
.....200805...........200804...........200803
971 349 188..........................953 285 324
611 323 736..........................612 510 025
747 189 300..........................703 691 200
How to ignore "200804" instead of gap?
As I know, it work's if there is only line chart, but i have chart with 2 Y axes, 1st presents column chart, 2nd  line chart.
Thx in advance.
Hi! When generating a Histogram through Data Analysis tool, am unable to remove the gaps between the columns in Excel 2010. In Excel 2007/2003 I can remove the gaps through [I Format Data Series[/I] options. Can anyone help please??
Hi,
I am trying to plot a time data with discontinuous time line for a dynamic chart.
Example:
Date Value
1/1 10
1/3 15
1/4 16
1/7 20 etc.
Upon creating the chart I see gaps for the dates for which values are not given. Remember there is no row for these dates at all. I would like to know how to remove gaps from my chart for these dates.
SI
I am trying to plot a time data with discontinuous time line for a dynamic chart.
Example:
Date Value
1/1 10
1/3 15
1/4 16
1/7 20 etc.
Upon creating the chart I see gaps for the dates for which values are not given. Remember there is no row for these dates at all. I would like to know how to remove gaps from my chart for these dates.
SI
Hi,
I rewrote this question to be a bit more clear.
On line charts, I know you can choose to prevent interpolation by using the Tools>Options>Chart tab optionwhich works when cells are empty. But I have cells with formulas that return #N/A. These cells don't plotwhich is greatbut I don't want the plotted line to interpolate the plots of data that come before and after the #N/A cells. I want gaps. Is there a way I can do this?
Thanks in advance,
Christiaan V
I rewrote this question to be a bit more clear.
On line charts, I know you can choose to prevent interpolation by using the Tools>Options>Chart tab optionwhich works when cells are empty. But I have cells with formulas that return #N/A. These cells don't plotwhich is greatbut I don't want the plotted line to interpolate the plots of data that come before and after the #N/A cells. I want gaps. Is there a way I can do this?
Thanks in advance,
Christiaan V
I have a chart that uses dates on the x axis ands stacked bar chart data in the data series.
I want the displayed chart to eliminate the weekends from the chart as the values in these cells are zero.
At present I have each week as a discreet data range, misisng out the weekend dates altogether from the selection but the chart still shows a gap between each range as if to account for the weekend.
How do I show only work days in one continuous display, i.e., without showing gaps on the chart??
Cheers
I want the displayed chart to eliminate the weekends from the chart as the values in these cells are zero.
At present I have each week as a discreet data range, misisng out the weekend dates altogether from the selection but the chart still shows a gap between each range as if to account for the weekend.
How do I show only work days in one continuous display, i.e., without showing gaps on the chart??
Cheers
I have a chart that uses dates on the x axis ands stacked bar chart data in the data series.
I want the displayed chart to eliminate the weekends from the chart as the values in these cells are zero.
At present I have each week as a discreet data range, misisng out the weekend dates altogether from the selection but the chart still shows a gap between each range as if to account for the weekend.
How do I show only work days in one continuous display, i.e., without showing gaps on the chart??
Cheers
I want the displayed chart to eliminate the weekends from the chart as the values in these cells are zero.
At present I have each week as a discreet data range, misisng out the weekend dates altogether from the selection but the chart still shows a gap between each range as if to account for the weekend.
How do I show only work days in one continuous display, i.e., without showing gaps on the chart??
Cheers
Hello Everyone!
I am having an issue with a chart (Line & Column)... The issue is that on the Column Chart with a Date Axis, there are gaps on days without data (Weekends for my data).... So if I change the axis from date to text, I can eliminate the gaps without a problem....
The problem then becomes the Axis Format... I would like to add gridlines corresponding to the 1st day of each month. While this is easy to while the axis is a date, however I have not figured out how to do it when the axis is text....
Is it possible to have a column/bar chart using a date axis without the weekend gaps where data does not exists, or properly format the axis with gridlines on the 1st of each month corresponding to the same spacing as the representative Line Chart?
I have attached an example of my issue.....
Thank you all in advance for your assistance...
JB
I am having an issue with a chart (Line & Column)... The issue is that on the Column Chart with a Date Axis, there are gaps on days without data (Weekends for my data).... So if I change the axis from date to text, I can eliminate the gaps without a problem....
The problem then becomes the Axis Format... I would like to add gridlines corresponding to the 1st day of each month. While this is easy to while the axis is a date, however I have not figured out how to do it when the axis is text....
Is it possible to have a column/bar chart using a date axis without the weekend gaps where data does not exists, or properly format the axis with gridlines on the 1st of each month corresponding to the same spacing as the representative Line Chart?
I have attached an example of my issue.....
Thank you all in advance for your assistance...
JB
Hi everyone,
I am trying to create a "Gaps" program that cycles through ALL 13,983,816 combinations in a 6 from 49 Lotto and produces the following data.
I would like it to work out the Gaps between each of the balls for EACH combination in a 6 from 49 Lotto with no replacement.
For example, the combination 02 08 18 28 36 45 will have the Gaps of ...
Ball 1 numbered 02 & Ball 2 numbered 08 = 05 Gaps ( 03 04 05 06 07 )
Ball 2 numbered 08 & Ball 3 numbered 18 = 09 Gaps ( 19 10 11 12 13 14 15 16 17 )
Ball 3 numbered 18 & Ball 4 numbered 28 = 08 Gaps ( 20 21 22 23 24 25 26 27 )
Ball 4 numbered 28 & Ball 5 numbered 36 = 07 Gaps ( 29 30 31 32 33 34 35 )
Ball 5 numbered 36 & Ball 6 numbered 45 = 08 Gaps ( 37 38 39 40 41 42 43 44 )
... so the Gaps description for this particular combination will be 05 09 08 07 08.
The Gaps difference between ball 1 and ball 2 is really ball 2 minus ball 1  1 and so on.
I would like to have a Gaps description for each category and the Total combinations for each category associated with that list.
So extracting three combinations from the Loop as an example ...
Combination  02 09 16 25 38 45
Combination  04 15 19 36 37 49
Combination  09 15 28 39 46 47
... will give the answer ...
Gaps 06 06 08 12 06 = x combinations ( x could be 925,365 combinations with the exact same Gaps between the balls 12, 23 ,34 ,45 & 56 )
Gaps 10 03 16 00 11 = x combinations ( x could be 236,258 combinations with the exact same Gaps between the balls 12, 23, 34, 45 & 56 )
Gaps 05 12 10 06 00 = x combinations ( x could be 756,258 combinations with the exact same Gaps between the balls 12, 23, 34, 45 & 56 )
... etc.
It would also be nice to have a Total at the bottom of the combinations list, which of course, should equal 13,983,816 combinations.
I have written the following which has nothing to do with what I am trying to achieve above, but for some reason it does not work.
It is supposed to give me a list of Gaps from 00 to 43 from ALL 13,983,816 combinations.
The list of Gaps should be in cells B3:B45 and the total combinatios for each Gap should be in cells C3:C45.
Could somebody please have a glance at it.
Code:
Any help will be greatly appreciated.
Thanks in Advance.
I am trying to create a "Gaps" program that cycles through ALL 13,983,816 combinations in a 6 from 49 Lotto and produces the following data.
I would like it to work out the Gaps between each of the balls for EACH combination in a 6 from 49 Lotto with no replacement.
For example, the combination 02 08 18 28 36 45 will have the Gaps of ...
Ball 1 numbered 02 & Ball 2 numbered 08 = 05 Gaps ( 03 04 05 06 07 )
Ball 2 numbered 08 & Ball 3 numbered 18 = 09 Gaps ( 19 10 11 12 13 14 15 16 17 )
Ball 3 numbered 18 & Ball 4 numbered 28 = 08 Gaps ( 20 21 22 23 24 25 26 27 )
Ball 4 numbered 28 & Ball 5 numbered 36 = 07 Gaps ( 29 30 31 32 33 34 35 )
Ball 5 numbered 36 & Ball 6 numbered 45 = 08 Gaps ( 37 38 39 40 41 42 43 44 )
... so the Gaps description for this particular combination will be 05 09 08 07 08.
The Gaps difference between ball 1 and ball 2 is really ball 2 minus ball 1  1 and so on.
I would like to have a Gaps description for each category and the Total combinations for each category associated with that list.
So extracting three combinations from the Loop as an example ...
Combination  02 09 16 25 38 45
Combination  04 15 19 36 37 49
Combination  09 15 28 39 46 47
... will give the answer ...
Gaps 06 06 08 12 06 = x combinations ( x could be 925,365 combinations with the exact same Gaps between the balls 12, 23 ,34 ,45 & 56 )
Gaps 10 03 16 00 11 = x combinations ( x could be 236,258 combinations with the exact same Gaps between the balls 12, 23, 34, 45 & 56 )
Gaps 05 12 10 06 00 = x combinations ( x could be 756,258 combinations with the exact same Gaps between the balls 12, 23, 34, 45 & 56 )
... etc.
It would also be nice to have a Total at the bottom of the combinations list, which of course, should equal 13,983,816 combinations.
I have written the following which has nothing to do with what I am trying to achieve above, but for some reason it does not work.
It is supposed to give me a list of Gaps from 00 to 43 from ALL 13,983,816 combinations.
The list of Gaps should be in cells B3:B45 and the total combinatios for each Gap should be in cells C3:C45.
Could somebody please have a glance at it.
Code:
Option Explicit Option Base 1 Private Sub Gaps() Dim A As Integer Dim B As Integer Dim C As Integer Dim D As Integer Dim E As Integer Dim F As Integer Dim i As Integer Dim GapsTotal(43) As Long Application.ScreenUpdating = False For i = 1 To 43 GapsTotal(i) = 0 Next i For A = 1 To 44 For B = A + 1 To 45 For C = B + 1 To 46 For D = C + 1 To 47 For E = D + 1 To 48 For F = E + 1 To 49 If B  A  1 = 0 Then GapsTotal(0) = GapsTotal(0) + 1 If C  B  1 = 0 Then GapsTotal(0) = GapsTotal(0) + 1 If D  C  1 = 0 Then GapsTotal(0) = GapsTotal(0) + 1 If E  D  1 = 0 Then GapsTotal(0) = GapsTotal(0) + 1 If F  E  1 = 0 Then GapsTotal(0) = GapsTotal(0) + 1 If B  A  1 = 1 Then GapsTotal(1) = GapsTotal(1) + 1 If C  B  1 = 1 Then GapsTotal(1) = GapsTotal(1) + 1 If D  C  1 = 1 Then GapsTotal(1) = GapsTotal(1) + 1 If E  D  1 = 1 Then GapsTotal(1) = GapsTotal(1) + 1 If F  E  1 = 1 Then GapsTotal(1) = GapsTotal(1) + 1 ... continued all the way down to ... If B  A  1 = 42 Then GapsTotal(42) = GapsTotal(42) + 1 If C  B  1 = 42 Then GapsTotal(42) = GapsTotal(42) + 1 If D  C  1 = 42 Then GapsTotal(42) = GapsTotal(42) + 1 If E  D  1 = 42 Then GapsTotal(42) = GapsTotal(42) + 1 If F  E  1 = 42 Then GapsTotal(42) = GapsTotal(42) + 1 If B  A  1 = 43 Then GapsTotal(43) = GapsTotal(43) + 1 If C  B  1 = 43 Then GapsTotal(43) = GapsTotal(43) + 1 If D  C  1 = 43 Then GapsTotal(43) = GapsTotal(43) + 1 If E  D  1 = 43 Then GapsTotal(43) = GapsTotal(43) + 1 If F  E  1 = 43 Then GapsTotal(43) = GapsTotal(43) + 1 Next F Next E Next D Next C Next B Next A Sheets("Gaps Data").Select Range("B2").Value = "Gaps" Range("B3").Value = "Gaps of 00" Range("B4").Value = "Gaps of 01" ... continued all the way down to ... Range("B44").Value = "Gaps of 42" Range("B45").Value = "Gaps of 43" Range("C2").Value = "Total" Range("C3").Select For i = 1 To 43 ActiveCell.Offset(i, 0).Value = GapsTotal(i) Next i Application.ScreenUpdating = True End Sub
Any help will be greatly appreciated.
Thanks in Advance.
Hi,
I've got a set of monthly data. The data is filled in for JanApril and I have the year end figure. I used to have a formula that would fill in the gaps for me but can't remember what it was. I think it was something along the lines of Last numberfirst number/number of gaps but that doesn't work as I obviously just get the same number for each missing month. I need the months to show a linear progression.
Any ideas?
Thanks
I've got a set of monthly data. The data is filled in for JanApril and I have the year end figure. I used to have a formula that would fill in the gaps for me but can't remember what it was. I think it was something along the lines of Last numberfirst number/number of gaps but that doesn't work as I obviously just get the same number for each missing month. I need the months to show a linear progression.
Any ideas?
Thanks
Hi
I am trying to make a plot using VBA.
I am storing the values I want to plot in arrays, but I also want to have some gaps in the plot.
I found this really helpfull site: http://peltiertech.com/WordPress/vba...excelcharts/.
But since I am storing the values in arrays, another problem occurs.
I want to insert "" where the gaps should be, and want to have numeric values elsewhere.
How should I declare the arrays?
If I use
"Dim Array As Variant"
all the points in the plot becomes zero.
If I use
"Dim Array As Double" or
"Dim Array As Long" I get an "Type Mismatch" when I try to insert the empty ""s.
Hi everyone,
I am trying to create a "Gaps" program that cycles through ALL 13,983,816 combinations in a 6 from 49 Lotto without replacement.
I would like it to work out the Gaps between each of the 6 balls and give it a category. EACH 6 number combination will have a category.
For example, the combination 02 08 18 28 36 45 will have the Gaps of ...
Ball 1 numbered 02 & Ball 2 numbered 08 = 05 Gaps ( 03 04 05 06 07 )
Ball 2 numbered 08 & Ball 3 numbered 18 = 09 Gaps ( 19 10 11 12 13 14 15 16 17 )
Ball 3 numbered 18 & Ball 4 numbered 28 = 08 Gaps ( 20 21 22 23 24 25 26 27 )
Ball 4 numbered 28 & Ball 5 numbered 36 = 07 Gaps ( 29 30 31 32 33 34 35 )
Ball 5 numbered 36 & Ball 6 numbered 45 = 08 Gaps ( 37 38 39 40 41 42 43 44 )
... so the Gaps category description for this particular combination will be 05 09 08 07 08.
The Gaps difference between ball 1 and ball 2 is really ball 2 minus ball 1  1 and so on.
Ideally, I would like to have a list containing each of the Gaps categories and the Total combinations associated with each of the Gaps category.
Obviously there will be many combinations associated with the same category, but I just want the total combinations for each unique category.
For example, taking a few combinations from the 13,983,816 combinations at random ...
Combination 01 02 03 04 05 06 = Gap category 00 00 00 00 00
Combination 01 02 03 04 05 07 = Gap category 00 00 00 00 01
Combination 01 02 03 04 05 08 = Gap category 00 00 00 00 02
Combination 01 02 03 04 05 09 = Gap category 00 00 00 00 03
Combination 01 02 03 04 05 10 = Gap category 00 00 00 00 04
Combination 01 02 03 04 05 11 = Gap category 00 00 00 00 05
Combination 01 02 03 04 05 12 = Gap category 00 00 00 00 06
Combination 01 11 12 14 18 21 = Gap category 09 00 01 03 02
Combination 11 21 22 24 28 31 = Gap category 09 00 01 03 02
Combination 19 22 23 24 28 31 = Gap category 02 00 00 03 02
Combination 29 32 33 34 38 41 = Gap category 02 00 00 03 02
Combination 31 34 35 36 40 43 = Gap category 02 00 00 03 02
... the category list and total combinations for the above will be ...
Category 00 00 00 00 00 = total combinations of 1 < One
Category 00 00 00 00 01 = total combinations of 1 < One
Category 00 00 00 00 02 = total combinations of 1 < One
Category 00 00 00 00 03 = total combinations of 1 < One
Category 00 00 00 00 04 = total combinations of 1 < One
Category 00 00 00 00 05 = total combinations of 1 < One
Category 00 00 00 00 06 = total combinations of 1 < One
Category 09 00 01 03 02 = total combinations of 2 < TWO
Category 02 00 00 03 02 = total combinations of 3 < THREE
There could be any number of combinations with the exact same Gaps between Balls 1 & 2, Balls 2 & 3, Balls 3 & 4, Balls 4 & 5 and Balls 5 & 6.
I would also like the total combinations at the end please, which of course should add upto 13,983,816 combinations.
I hope this is clear enough.
I though a start for the code could be something like this :
Code:
Thanks in Advance.
I am trying to create a "Gaps" program that cycles through ALL 13,983,816 combinations in a 6 from 49 Lotto without replacement.
I would like it to work out the Gaps between each of the 6 balls and give it a category. EACH 6 number combination will have a category.
For example, the combination 02 08 18 28 36 45 will have the Gaps of ...
Ball 1 numbered 02 & Ball 2 numbered 08 = 05 Gaps ( 03 04 05 06 07 )
Ball 2 numbered 08 & Ball 3 numbered 18 = 09 Gaps ( 19 10 11 12 13 14 15 16 17 )
Ball 3 numbered 18 & Ball 4 numbered 28 = 08 Gaps ( 20 21 22 23 24 25 26 27 )
Ball 4 numbered 28 & Ball 5 numbered 36 = 07 Gaps ( 29 30 31 32 33 34 35 )
Ball 5 numbered 36 & Ball 6 numbered 45 = 08 Gaps ( 37 38 39 40 41 42 43 44 )
... so the Gaps category description for this particular combination will be 05 09 08 07 08.
The Gaps difference between ball 1 and ball 2 is really ball 2 minus ball 1  1 and so on.
Ideally, I would like to have a list containing each of the Gaps categories and the Total combinations associated with each of the Gaps category.
Obviously there will be many combinations associated with the same category, but I just want the total combinations for each unique category.
For example, taking a few combinations from the 13,983,816 combinations at random ...
Combination 01 02 03 04 05 06 = Gap category 00 00 00 00 00
Combination 01 02 03 04 05 07 = Gap category 00 00 00 00 01
Combination 01 02 03 04 05 08 = Gap category 00 00 00 00 02
Combination 01 02 03 04 05 09 = Gap category 00 00 00 00 03
Combination 01 02 03 04 05 10 = Gap category 00 00 00 00 04
Combination 01 02 03 04 05 11 = Gap category 00 00 00 00 05
Combination 01 02 03 04 05 12 = Gap category 00 00 00 00 06
Combination 01 11 12 14 18 21 = Gap category 09 00 01 03 02
Combination 11 21 22 24 28 31 = Gap category 09 00 01 03 02
Combination 19 22 23 24 28 31 = Gap category 02 00 00 03 02
Combination 29 32 33 34 38 41 = Gap category 02 00 00 03 02
Combination 31 34 35 36 40 43 = Gap category 02 00 00 03 02
... the category list and total combinations for the above will be ...
Category 00 00 00 00 00 = total combinations of 1 < One
Category 00 00 00 00 01 = total combinations of 1 < One
Category 00 00 00 00 02 = total combinations of 1 < One
Category 00 00 00 00 03 = total combinations of 1 < One
Category 00 00 00 00 04 = total combinations of 1 < One
Category 00 00 00 00 05 = total combinations of 1 < One
Category 00 00 00 00 06 = total combinations of 1 < One
Category 09 00 01 03 02 = total combinations of 2 < TWO
Category 02 00 00 03 02 = total combinations of 3 < THREE
There could be any number of combinations with the exact same Gaps between Balls 1 & 2, Balls 2 & 3, Balls 3 & 4, Balls 4 & 5 and Balls 5 & 6.
I would also like the total combinations at the end please, which of course should add upto 13,983,816 combinations.
I hope this is clear enough.
I though a start for the code could be something like this :
Code:
Option Explicit Option Base 1 Private Sub Gaps() Dim A As Integer Dim B As Integer Dim C As Integer Dim D As Integer Dim E As Integer Dim F As Integer Dim i As Integer Dim GapsCategory As Long Dim GapsTotal As Long Dim GapsTotalCombinations As Long Application.ScreenUpdating = False For A = 1 To 44 For B = A + 1 To 45 For C = B + 1 To 46 For D = C + 1 To 47 For E = D + 1 To 48 For F = E + 1 To 49 ' CODE maybe goes here. Next F Next E Next D Next C Next B Next A Sheets("Gaps Data").Select Range("B2").Value = "Gaps Category" Range("C2").Value = "Total Combinations" Application.ScreenUpdating = True End Sub
Thanks in Advance.
All,
I have a series of columns with values inside. Out of 20 rows per column, anywhere from 1 to all 20 may contain values. There are gaps between some of these values. Is there a simple way to create an adjacent set of columns with the same values, but remove the gaps?
For example:
1
1
2
1
3
1
2
Becomes
1
1
2
1
3
1
2
Any ideas?
Cheers
John
I have a series of columns with values inside. Out of 20 rows per column, anywhere from 1 to all 20 may contain values. There are gaps between some of these values. Is there a simple way to create an adjacent set of columns with the same values, but remove the gaps?
For example:
1
1
2
1
3
1
2
Becomes
1
1
2
1
3
1
2
Any ideas?
Cheers
John
I have a column of data with gaps every third row (for plotting a line with gaps). I need to create a dynamic range for the column of data. I can mess with a formula using "count" and then add 50% but I thought I could be more clever and take advantage of the fact that the bottom value is always the maximum value.
Any idea how to do this?
Thanks!
Any idea how to do this?
Thanks!
I want to show gaps in my line chart. For example, say I have the following sales days and amounts:
Day Amount
1 $100
2
3 $140
4 $150
When I plot this information, day 2 is treated as a "0" and it pulls the line plot down. I want this value treated as an empty cell so that no information for that day is plotted and there is a gap in the line plot.
The problem is that I have a formula written in the "Amount" column to pull sales $s for the corresponding day. I want to leave the formula in there to keep the spreadsheet dynamic. I've tried writing error formulas that will produce a blank ("") for empty cells, but those cells are still treated and plotted as a "0"s.
The only way I know how to eliminate the problem is the manually delete the cells with no sales dollars (i.e. not even the formula remains), but I want to avoid that to keep the process automatic.
Day Amount
1 $100
2
3 $140
4 $150
When I plot this information, day 2 is treated as a "0" and it pulls the line plot down. I want this value treated as an empty cell so that no information for that day is plotted and there is a gap in the line plot.
The problem is that I have a formula written in the "Amount" column to pull sales $s for the corresponding day. I want to leave the formula in there to keep the spreadsheet dynamic. I've tried writing error formulas that will produce a blank ("") for empty cells, but those cells are still treated and plotted as a "0"s.
The only way I know how to eliminate the problem is the manually delete the cells with no sales dollars (i.e. not even the formula remains), but I want to avoid that to keep the process automatic.
I have an request that comes up once an a while in my work environment. On occasion I will receive an Excel spreadsheet with a list of documents. The spreadsheet will have a beginning and ending document number in corresponding columns. I usually need to do two things with this information.
1. Identify any gaps in the number sequence
2. Consolidate the number series where no gaps exist.
For example:
I will get a spreadsheet that contains this information:
Begdoc# Enddoc#
200 240
241 266
270 288
289 300
What I want to do is to be able to ID the gap between 266 and 270, and combine the numbers that do not have gaps so it looks like this:
Begdoc# Enddoc#
200 266
270 300
I would like to be able to do this in two steps. Somtimes I just need to identify the gaps and somtimes I need to combine the consecutive number series.
Thanks in advance!
1. Identify any gaps in the number sequence
2. Consolidate the number series where no gaps exist.
For example:
I will get a spreadsheet that contains this information:
Begdoc# Enddoc#
200 240
241 266
270 288
289 300
What I want to do is to be able to ID the gap between 266 and 270, and combine the numbers that do not have gaps so it looks like this:
Begdoc# Enddoc#
200 266
270 300
I would like to be able to do this in two steps. Somtimes I just need to identify the gaps and somtimes I need to combine the consecutive number series.
Thanks in advance!
I have 3 columns of data. Date, In time, Out time. The data represents the utilization of a facility. I need to know when the facility was not being used. I need to see where the gaps are. Is there a way to graph this with a timeline that shows gaps when the facility was not in use? That would be ideal. Any other suggestions are greatly appreciated.
Thanks,
Mike
Thanks,
Mike
Hi there,
I'm using Excel 2000 and I'm trying to calculate the lengths of gaps between data in individual columns. I couldn't find an answer searching this forum. I might not be familiar enough with the answer to know what I need to search for....
My situation is as follows. Column A is all the dates in a given year. Columns B,C,D, etc, show usage on those dates in individual units. It's an availability calendar. I have data showing occupancy on certain dates, etc, etc, but I want to be able to count the lengths of gaps between each oocupancy of each unit.
So, column B shows occupancy ending on February 6th in cell B39 and starting again February 9th in cell B42, for a gap of 2 nights (B40 and B41). I want to count this gap. I've taken the original data and manipulated it to have the gaps represented by either a number (1 for unoccupied, 0 for occupied) or the actual date that is available (February 7 and February 8). I can't figure out how to count the length of the gap so as to eventually tally the number of gaps of various lengths.
At the end of the day, I want to know how many gaps of 1night, 2nights, 3nights, etc, etc there are between each time the unit is occupied.
Any help would be appreciated.
Brian
I'm using Excel 2000 and I'm trying to calculate the lengths of gaps between data in individual columns. I couldn't find an answer searching this forum. I might not be familiar enough with the answer to know what I need to search for....
My situation is as follows. Column A is all the dates in a given year. Columns B,C,D, etc, show usage on those dates in individual units. It's an availability calendar. I have data showing occupancy on certain dates, etc, etc, but I want to be able to count the lengths of gaps between each oocupancy of each unit.
So, column B shows occupancy ending on February 6th in cell B39 and starting again February 9th in cell B42, for a gap of 2 nights (B40 and B41). I want to count this gap. I've taken the original data and manipulated it to have the gaps represented by either a number (1 for unoccupied, 0 for occupied) or the actual date that is available (February 7 and February 8). I can't figure out how to count the length of the gap so as to eventually tally the number of gaps of various lengths.
At the end of the day, I want to know how many gaps of 1night, 2nights, 3nights, etc, etc there are between each time the unit is occupied.
Any help would be appreciated.
Brian
I have date like this
A1 : 500
A16 : 200
A17: 800
Since there are gaps between rows
what i want is , in column B I want to use the formula which can put the list in column B without putting the gaps in between
Example B1 : 500
B2 : 200
B3 : 800
without any gap , i have huge data , how can i achieve this ?
will this formula work ?
=IF(ROWS(B$1:B1)>COUNTA($A$1:$A$100),"",INDEX($A$1:$A$100,SMALL(IF($A$1:$A$100"",ROW($A$1:$A$100)ROW($A$1)+1),ROWS(B$1:B1))))
A1 : 500
A16 : 200
A17: 800
Since there are gaps between rows
what i want is , in column B I want to use the formula which can put the list in column B without putting the gaps in between
Example B1 : 500
B2 : 200
B3 : 800
without any gap , i have huge data , how can i achieve this ?
will this formula work ?
=IF(ROWS(B$1:B1)>COUNTA($A$1:$A$100),"",INDEX($A$1:$A$100,SMALL(IF($A$1:$A$100"",ROW($A$1:$A$100)ROW($A$1)+1),ROWS(B$1:B1))))
Good morning.
I've done some searching through the forum and figured out how to create the Gantt chart I was looking for. I need to take it one step further, however. I want to be able to use the Gantt chart to view future year data. The chart currently displays 2008's final results. However, for certain items, the results will change by a certain percentage (not consistent across all items) in future years. For example, Item C may be in its third year for 2008, putting it at approximately 58% of its total potential production. I know that in its ninth year, 2014, it will be in full production. However, I also know that other items will be ending their production life within that time, creating gaps in overall production. I need to be able to see these gaps and plan ahead to fill them before they appear, so I need to be able to look at this Gantt chart and, given a table of production life for each item, be able to tell the Gantt chart I want to see results for 2014. Is this possible? Do I make sense?
Thanks.
I've done some searching through the forum and figured out how to create the Gantt chart I was looking for. I need to take it one step further, however. I want to be able to use the Gantt chart to view future year data. The chart currently displays 2008's final results. However, for certain items, the results will change by a certain percentage (not consistent across all items) in future years. For example, Item C may be in its third year for 2008, putting it at approximately 58% of its total potential production. I know that in its ninth year, 2014, it will be in full production. However, I also know that other items will be ending their production life within that time, creating gaps in overall production. I need to be able to see these gaps and plan ahead to fill them before they appear, so I need to be able to look at this Gantt chart and, given a table of production life for each item, be able to tell the Gantt chart I want to see results for 2014. Is this possible? Do I make sense?
Thanks.
I have followed the thread posted by Xdozex on Jan 09 who was trying to do the same exact thing, but its not working for me. How can I find time gaps greater than 60 minutes in 1200 lines of continuous time? I have verified that they are valid excel times, now I just need to find a way to determine if there are any 1hour gaps between the times. HELP!!!!