Cookies tgħinna jagħti servizzi tagħna. Bl-użu tas-servizzi tagħna, inti taqbel li l-użu tagħna ta 'cookies.
Tip: Lingwi oħra huma tradotti minn Google. Tista 'żżur il - English verżjoni ta 'din ir-rabta.
log in
x
or
x
x
reġistru
x

or

Kif tiġbed id-dejta minn tabella jew graff fl-Excel?

doc-extract-chart-data-1
Fl-Excel, normalment nużaw tabella biex turi d-data u x-xejra għal wiri aktar ċar, imma xi drabi, forsi l-grafika hija kopja u m'għandekx id-dejta oriġinali tat-tabella bħal hawn taħt il-screenshot muri. F'dan il-każ, tista 'tkun trid tirtira d-dejta minn din it-tabella. Issa dan it-tutorja qed titkellem dwar id-data li toħroġ minn tabella jew graff.
Estratt tad-data minn tabella b'VBA

Navigazzjoni -AutoText (żid mapep normalment użati għall-pane tat-Test awtomatiku.then klikk waħda biex daħħalha meta teħtieġ.)

jisbqu żid għodda biex iddaħħal il-mappa tal-kaskata f'xi ħin

vleġġa bużżieqa tal-lemin blu Estratt tad-data minn tabella b'VBA


1. Għandek bżonn toħloq worksheet ġdida u semmiha bħala ChartData. Ara l-screenshot:

Kutools għal Excel, b'aktar minn 120 Funzjonijiet handy ta 'Excel, ittejjeb l-effiċjenza tax-xogħol u tiffranka l-ħin tax-xogħol

doc-extract-chart-data-5

2. Imbagħad agħżel il-grafika li tixtieq estratt id-data minn u agħfas Alt + F11 ċwievet fl-istess ħin, u a Microsoft Visual Basic għall-Applikazzjonijiet tieqa pops.

3. ikklikkja Daħħal > Moduli, imbagħad ippejva taħt il-kodiċi VBA għall-popping Moduli tieqa.

VBA: Id-data ta 'l-estratt minn tabella.

Sub GetChartValues()
	'Updateby20150203
	Dim xNum As Integer
	Dim xSeries As Object
	xCount = 2
	xNum   = UBound(Application.ActiveChart.SeriesCollection(1).Values)
	Application.Worksheets("ChartData").Cells(1, 1) = "X Values"
	With Application.Worksheets("ChartData")
		.Range(.Cells(2, 1), _
		.Cells(xNum + 1, 1)) = _
		Application.Transpose(ActiveChart.SeriesCollection(1).XValues)
	End With
	For Each xSeries In Application.ActiveChart.SeriesCollection
		Application.Worksheets("ChartData").Cells(1, xCount) = xSeries.Name
		With Application.Worksheets("ChartData")
			.Range(.Cells(2, xCount), _
			.Cells(xNum + 1, xCount)) = _
			Application.WorksheetFunction.Transpose(xSeries.Values)
		End With
		xCount = xCount + 1
	Next
End Sub

4. Imbagħad ikklikkja Mexxi buttuna biex tmexxi l-VBA. Ara l-screenshot:

doc-extract-chart-data-2

Imbagħad tista 'tara li d-data tiġi estratta ChartData folja.

doc-extract-chart-data-3

Esportazzjoni Medda bħala Grafika

Kutools' Esportazzjoni Medda bħala Grafika L-għan huwa li tiffranka jew tesporta ċelluli tal-għażla bħala formati grafiċi multipli.
Il-firxa ta 'l-esportazzjoni tad-doc bħala stampa

Tip:

1. Tista 'tifformula ċ-ċelloli kif għandek bżonn.

doc-extract-chart-data-4

2. Id-data tal-mappa magħżula hija estiża għall-ewwel ċellula tal-karta ChartData f'kontumaċja.

agħti attenzjoni1Jekk inti interessat f'dan il-addizzjon, niżżel il-prova ħielsa 60-days.


Għodda tal-Produttività Rakkomandata

Uffiċċju Tab

star tad-deheb 1 Ġib tabs handy għal Excel u softwer ieħor tal-Uffiċċju, bħal Chrome, Firefox u Internet Explorer ġdid.

Kutools għal Excel

star tad-deheb 1 Amazing! Żid il-produttività tiegħek f'minuti 5. M'għandekx bżonn xi ħiliet speċjali, ħlief sagħtejn kuljum!

star tad-deheb 1 300 Karatteristiċi Ġodda għall-Excel, Għamla Excel Ħafna Faċli u Qawwija:

  • Merge Cell / Ringieli / Kolonni mingħajr ma titlef id-Data.
  • Għaqqad u Tikkonsolida Folji Multipli u Kotba tax-Xogħol.
  • Qabbel ir-Ranges, Kopja Multipla Ranges, Ikkonverti Test sa Data, Unità u l-Konverżjoni Munita.
  • Għadd bil-Kuluri, Subtotali tal-Pejġing, Sort Avvanzat u Iffiltra Super,
  • Iktar Agħżel / Daħħal / Ħassar / Test / Format / Rabta / Kumment / Kotba tax-Xogħol / Worksheets Għodda ...

Screenshot ta 'Kutools għal Excel

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Astro · 1 years ago
    This doesn't appear to work for a scatter plot as it only extracts one set of "x" data. How can I amend it to extract all "x" data sets?
    • To post as a guest, your comment is unpublished.
      Sunny · 1 years ago
      Sorry I did not found the solution about that.
      • To post as a guest, your comment is unpublished.
        Carlos · 1 years ago
        i've tried with a scatter plot graph as well, but only get one line of valor.


        i need so much to find a way to extract data from scatterplot graphs.
  • To post as a guest, your comment is unpublished.
    Ian · 1 years ago
    I failed to get the prices of a fund chart on my mac excel 2011 . Run time error '91' object variable or block variable not set . Don't know how to debug . Appreciate any help .
  • To post as a guest, your comment is unpublished.
    jignesh · 1 years ago
    Very useful and perfect
  • To post as a guest, your comment is unpublished.
    Berk · 1 years ago
    gives me values that i created chart with not all the values in range
  • To post as a guest, your comment is unpublished.
    Leo · 2 years ago
    Amazing command, thanks a lot!

    I used it with a pivot chart and it works!