# How to make histogram in root from excel data?

**URL:** <https://root-forum.cern.ch/t/how-to-make-histogram-in-root-from-excel-data/42223>\
**Category:** Newbie\
**Tags:** tree\
**Created:** [November 11, 2020, 8:05am UTC](https://root-forum.cern.ch/t/how-to-make-histogram-in-root-from-excel-data/42223 "2020-11-11T08:05:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rabiya](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rabiya/32/23942_2.png) [@Rabiya](https://root-forum.cern.ch/u/Rabiya)\
**Post date:** [November 11, 2020, 8:05am UTC](https://root-forum.cern.ch/t/how-to-make-histogram-in-root-from-excel-data/42223/1 "2020-11-11T08:05:02Z")

</div>

\_\_\_how to make histogram in root from excel data???  
\_

---

<div class="post-metadata">

**Author:** ![jblomer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jblomer](https://root-forum.cern.ch/u/jblomer)\
**Post date:** [November 11, 2020, 8:41am UTC](https://root-forum.cern.ch/t/how-to-make-histogram-in-root-from-excel-data/42223/2 "2020-11-11T08:41:09Z")

</div>

ROOT cannot directly read the Excel file format. But you can export the Excel data to a CSV, which can be processed e.g. by RDataFrame. See here for further information:

> **[ROOT: ROOT::RDF Namespace Reference](https://root.cern.ch/doc/master/namespaceROOT_1_1RDF.html#adfcf71db735afb58ee3f3c478d04a8af)**

  

> **[ROOT: ROOT::RDataFrame Class Reference](https://root.cern.ch/doc/master/classROOT_1_1RDataFrame.html)**

---

<div class="post-metadata">

**Author:** ![Rabiya](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rabiya/32/23942_2.png) [@Rabiya](https://root-forum.cern.ch/u/Rabiya)\
**Post date:** [November 11, 2020, 9:31am UTC](https://root-forum.cern.ch/t/how-to-make-histogram-in-root-from-excel-data/42223/3 "2020-11-11T09:31:09Z")

</div>

i am beginner.kindly tell me about exponential data in excel…if we have a entries vs in negative exponenetial form?then how???

---

<div class="post-metadata">

**Author:** ![Manu\_Francis](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/manu_francis/32/23957_2.png) [@Manu\_Francis](https://root-forum.cern.ch/u/Manu_Francis)\
**Post date:** [November 12, 2020, 5:37am UTC](https://root-forum.cern.ch/t/how-to-make-histogram-in-root-from-excel-data/42223/4 "2020-11-12T05:37:26Z")

</div>

@Rabiya: I am also looking for the solution

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [November 24, 2020, 4:07pm UTC](https://root-forum.cern.ch/t/how-to-make-histogram-in-root-from-excel-data/42223/5 "2020-11-24T16:07:16Z")

</div>

AS @jblomer said export your Excel file into a csv file, then search “csv” in that forum. This question was answered many times.

---

<div class="post-metadata">

**Author:** ![oshadura](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oshadura/32/14460_2.png) [@oshadura](https://root-forum.cern.ch/u/oshadura)\
**Post date:** [November 24, 2020, 4:52pm UTC](https://root-forum.cern.ch/t/how-to-make-histogram-in-root-from-excel-data/42223/6 "2020-11-24T16:52:46Z")

</div>

In addition to @jblomer and @couet reply you can check tutorial: [https://root.cern.ch/doc/master/df014\_\_CSVDataSource\_8C.html](https://root.cern.ch/doc/master/df014__CSVDataSource_8C.html)
