當前位置:編程學習大全網 - 編程語言 - excel中好多數據生成圖表了,需要把其中的壹組數據改變然後再次生?

excel中好多數據生成圖表了,需要把其中的壹組數據改變然後再次生?

excel中好多數據生成圖表了,需要把其中的壹組數據改變然後再次生?

如果還是在原數據表裏,直接修改數據就行了呀

當然如果是要利用新數據重新生成壹個圖表的話,可以把現在的圖表和源數據復制到其他單元格,然後修改數據,並重新鏈接圖表的數據源,這樣可以保證新生成的圖表格式與原來的壹樣

wps excel怎麽把數據生成圖表

選擇數據區域,在“插入”選項下的“圖表”中,選擇相應的圖表類型,如折線圖、散點圖、柱形圖、條形圖等,即可生成相應的圖表。

excel數據生成圖表問題

問題解決了嗎?

用壹組數據然後制作EXCEL2003圖表.

雙擊Y軸的數值,會出現“坐標軸格式”,裏面有個刻度(第2個),在這可以修改間隔

excel表格中如何實現壹組數據改變,其他幾組數據都隨之改變

?為什麽要把4000多列都放在同壹單元格?

妳意思是要分拆壹個數據壹單元格吧?

如果是這樣,可以把那幾組數據壹次性復制到壹文本(TXT)文件裏,再通過導入數據,導入到數據表中.在導入時記得根據妳數據的情況,選擇按空格、|、或,什麽的來分列。

C#讓Excel中數據自動生成圖表

以前用過,保存了壹個函數如下:

private void CreateChart(Excel._Workbook m_Book,Excel._Worksheet m_Sheet,int num)

{

Excel.Range oResizeRange;

Excel.Series oSeries;

m_Book.Charts.Add(Missing.Value, Missing.Value, 1, Missing.Value);

m_Book.ActiveChart.ChartType = Excel.XlChartType.xlLine;設置圖形

設置數據取值範圍

m_Book.ActiveChart.SetSourceData(m_Sheet.get_Range("A2", "C" + num.ToString()), Excel.XlRowCol.xlColumns);

m_Book.ActiveChart.Location(Excel.XlChartLocation.xlLocationAutomatic, title);

以下是給圖表放在指定位置

m_Book.ActiveChart.Location(Excel.XlChartLocation.xlLocationAsObject, m_Sheet.Name);

oResizeRange = (Excel.Range)m_Sheet.Rows.get_Item(10, Missing.Value);

m_Sheet.Shapes.Item("Chart 1").Top = (float)(double)oResizeRange.Top; 調圖表的位置上邊距

oResizeRange = (Excel.Range)m_Sheet.Columns.get_Item(6, Missing.Value); 調圖表的位置左邊距

m_Sheet.Shapes.Item("Chart 1").Left = (float)(double)oResizeRange.Left;

m_Sheet.Shapes.Item("Chart 1").Width = 400; 調圖表的寬度

m_Sheet.Shapes.Item("Chart 1").Height = 250; 調圖表的高度

m_Book.ActiveChart.PlotArea.Interior.ColorIndex = 19; 設置繪圖區的背景色

m_Book.ActiveChart.PlotArea.Border.LineStyle = Excel.XlLineStyle.xlLineStyleNone;設置繪圖區邊框線條

m_Book.ActiveChart.PlotArea.Width = 400; 設置繪圖區寬度

m_Book.ActiveChart.ChartArea.Interior.ColorIndex = 10; 設置整個圖表的背影顏色

m_Book.ActiveChart.ChartArea.Border.ColorIndex = 8; 設置整個圖表的邊框顏色

m_Book.ActiveChart.ChartArea.Border.LineStyle = Excel.XlLineStyle.xlLineStyleNone;設置邊框線條

m_Book.ActiveChart.HasDataTable = false;

設置Legend圖例的位置和格式

m_Book.ActiveChart.Legend.Top = 20.00; 具體設置圖例的上邊距

m_Book.ActiveChart.Legend.Left = 60.00;具體設置圖例的左邊距

m_Book.ActiveChart.Legend.Interior.ColorIndex = Excel.XlColorIndex.xlColorIndexNone;

m_Book.ActiveChart.Legend.Width = 150;

m_Book.ActiveChart.Legend.Font.Size = 9.5;

m_Book.ActiveChart.Legend.Font.Bold = true;

m_Book.ActiveChart.Legend.Font.Name = "宋體";

m_Book.ActiveChart.Legend.Position = Excel.XlLegendPosition.xlLegendPositionTop;設置圖例的位置

m_Book.ActiveChart.Legend.Border.LineStyle = Excel.XlLineStyle.xlLineStyleNone;設置圖例邊框線條

設置X軸的顯示

Excel.Axis xAxis = (Excel.Axis)m_Book.ActiveChart.Axes(Excel.XlAxisType.xlValue, Excel.XlAxisGroup.xlPrimary);

xAxis.MajorGridlines.Border.LineStyle = Excel.XlLineStyle.xlDot;

xAxis.MajorGridlines.Border.ColorIndex = 1;gridLine橫向線條的顏色

xAxis.HasTitle = false;

xAxis.MinimumScale = 1500;

xAxis.MaximumScale = 6000;

xAxis.TickLabels.Font.Name = "宋體";

xAxis.TickLabels.Font.Size = 9;

設置Y軸的顯示

Excel.Axis yAxis = (Excel.Axis)m_Book.ActiveChart.Axes(Excel.XlAxisType.xlCategory, Excel.XlAxisGroup.xlPrimary);

yAxis.TickLabelSpacing = 30;

yAxis.TickLabels.NumberFormat = "M月D日";

yAxis.TickLabels.Orientation = Excel.XlTickLabelOrientation.xlTickLabelOrientationHorizontal;Y軸顯示的方向,是水平還是垂直等

yAxis.TickLabels.Font.Size = 8;

yAxis.TickLabels.Font.Name = "宋體";

m_Book.ActiveChart.Floor.Interior.ColorIndex = 8;

/***以下是設置標題*****

m_Book.ActiveChart.HasTitle=true;

m_Book.ActiveChart.ChartTitle.Text = "凈值指數";

m_Book.ActiveChart.ChartTitle.Shadow = true;

m_Book.ActiveChart.ChartTitle.Border.LineStyle = Excel.XlLineStyle.xlContinuous;

*/

oSeries = (Excel.Series)m_Book.ActiveChart.SeriesCollection(1);

oSeries.Border.ColorIndex = 45;

oSeries.Border.Weight = Excel.XlBorderWeight.xlThick;

oSeries = (Excel.Series)m_Book.ActiveChart.SeriesCollection(2);

oSeries.Border.ColorIndex = 9;

oSeries.Border.Weight = Excel.XlBorderWeight.xlThick;

}

自己改吧改吧

2007 Excel,兩行數據,生成圖表。

先不要選數據。

關閉置於空白處:菜單欄——插入——圖表——圖表類型:選類型——下壹步——系列——添加——值:導入縱坐標數據——分類(X)軸標誌:導入橫坐標數據——默認完成。

Excel裏,比如在第1行生成壹組數據,跟著在第11行生成壹組數據,跟著在第21壹組數據

假定數值在C列 d1輸入=IF(COUNTIF(B:B,A1)=0,"",INDEX(B:B,MATCH(A1,B:B,0))) e1輸入=if(d1="","",vlookup(d1,b:c,2,0)) 選定兩列公式下拉 復制C、D兩列 點擊B列>右鍵>選擇性粘貼>數值>確定 刪除D、E列

B1輸入下面公式

=INDIRECT("H"&ROUNDUP(ROW(A1)/10,0))

再選定B1到B10單元格下拉復制

如何根據excel表中數據自動生成圖表

樓主是在學習VBA嗎

不然為何要把簡單的事情復雜化呢

顯然這個問題是不需要VBA的

  • 上一篇:求::高中《信息技術》研究型課題
  • 下一篇:C語言大作業,做壹個簡單的問題回答小系統。要求程序運行時,顯示出系統菜單項:
  • copyright 2024編程學習大全網