3
$\begingroup$

How to export data from excel specific cells into Mathematica? Given that the spreadsheet tab is named XYZ and that I have several cells at various locations in the same column in Excel that I want to export?

$\endgroup$
2
  • $\begingroup$ This seems more of an Excel question than a Mathematica question. $\endgroup$
    – m_goldberg
    Nov 15, 2012 at 5:53
  • 1
    $\begingroup$ I think that this question is absolute valid. This link from Wolfram can help. $\endgroup$
    – Murta
    Nov 15, 2012 at 14:09

1 Answer 1

4
$\begingroup$

This is verbatim from the docs on XLSX:

Example excel file with two sheets:

 Export["sheets.xlsx", {{"MySheet1" -> {Range[10]}, 
   "MySheet2" -> {{"This is a string."}}}}, {{"Sheets"}}]

To import the cell at row 1, column 4 of MySheet1:

 Import["sheets.xlsx", {"Sheets", "MySheet1", 1, 4}]
 (*  4 *)

Import the second sheet:

 Import["sheets.xlsx", {"Sheets", 2}]
 (* {{"This is a string."}} *)
$\endgroup$
1
  • $\begingroup$ @sebastian, my pleasure. Welcome to mma.se. $\endgroup$
    – kglr
    Oct 25, 2012 at 23:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.