Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

How to convert excel (or word) spreadsheets to Latex tables?

It is easy to use this document below using a convertor from CTAN website. It can not only help you convert the table to Latex one, but also any changes in the Excel table will be transferred. So you dont have to write all your data manually in Latex editor. See the procedure below:

1. 2. 3. 4. 5.

Download the Excel-to-LaTeX Convert Excel spread sheets to LATEX tables Open the Excel2LaTeX.xla file in Excel and enable the macro if asked. Copy your table in excel from any software including word Select any part of your table you wish to transfer or select all. See the figure below. Select Add-Ins and click Convert table to Latex

6. You will see a window as illustrated below. Copy the code by clicking the Copy to the Clipboard in this window.

7. For this particular example you should copy the following text:

% Table generated by Excel2LaTeX from sheet 'Sheet1' \begin{table}[htbp] \centering \caption{Add caption} \begin{tabular}{rrrr} \toprule Excel toLatex & Ass 5 & Persia & Go \\ \midrule S & 5 & 1 & \multicolumn{1}{c}{\multirow{4}[0]{*}{Merged}} \\ U & 4.5 & 1 & \multicolumn{1}{c}{} \\ E & 5 & 1 & \multicolumn{1}{c}{} \\ W & 5 & 1 & \multicolumn{1}{c}{} \\ RE & 3.75 & 1 & \\ V & 5 & 1 & \\ D & 5 & 1 & \multicolumn{1}{c}{\multirow{3}[0]{*}{\textbf{Another merge}}} \\ G & 5 & & \multicolumn{1}{c}{} \\ B & 5 & 1 & \multicolumn{1}{c}{} \\ \bottomrule \end{tabular}% \label{tab:addlabel}% \end{table}%

8. Past the text into your Latex code and compile your file in latex. You will see this below:

9. Make changes in your Excel file and do 4 to 8 again and enjoy it.

You might also like