Using Excel To Import Into Anki - Google Dokumentumok

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

Using Microsoft Excel to Import Into Anki

The Problem/Challenge:

In order to op mally handle mul ple languages, Anki encodes in UTF-8. However, Microso Excel
encodes files as (UTF-16). This process will walk you through being able to make/edit files in Excel and
then ge ng that file into a format that can be imported into Anki.

What you need:

● Microso Excel
● Notepad (it is a standard installa on with Windows. NOTE: Not Wordpad)
● (If you are modifying an exis ng Anki deck, then you need….) Your Anki deck in a *.txt file.

Using Excel to modify an exis ng deck:

There are some situa ons where you may want to use Excel to modify an exis ng deck. To do this you
must first export your deck as a .txt file. You do this by:

● From the Decks screen in Anki. (File > Export).


● For the export format, select “Notes in Plain Text.”
● Select the deck you want.
● Decide if you want a column for tags or not. When modifying an exis ng deck you generally
want to keep tags.
● This will export the deck onto your desktop as a .txt file.

To open it in Excel.

● First, open Excel.


● Then File > Open (browse for the file).
● To find the file, you have to allow Excel to be able to open *.txt files. There is drop down menu
where you need to change from “All Excel Files” to “Text Files (*.prn, *.txt, *.csv)”
● When you find the file, select it and open it.
● This will open a Text Import Wizard. The ques ons asked by the importer depend on the data in
your file, but here are some common ques ons.
o You want the “Delimited” op on checked.
o For “File Origin” you need to have “65001: Unicode (UTF-8)”
o Click “Next”
o The Delimiter is a “Tab”
o Text qualifier is a quote mark ( “ )
o Treat consecu ve delimiters as one should NOT be checked.
o Click “Next”
o Column data format should be “Text” NOT “General”
o Click “Finish”
● Then you are able to edit/modify/add to the file. (You will o en need to adjust the column width
to be able to best view your data).
● Realize that each column represents one of the fields from your note type. So, if you have two
fields, you’ll have two columns, plus the third one for tags.
● When you are done edi ng and want to import back into Anki, jump to the “Impor ng an Excel
File into Anki” sec on below.

Using a new/exis ng Excel file, to import new data into Anki:

Some mes you might have an exis ng spreadsheet, full of data, that you want to turn into Anki
flashcards. OR you might want to create new material, but for whatever reason, you might feel you can
create the data more quickly in a spreadsheet.

In either situa on, you need to:

● Remember that each column will be mapped to a “field” to your Anki Note type. So make sure
that each column has the same type of data in it.
o For example, the first column might be a column for an English Word. The second
column might be for the same word in a second language. You could also have
addi onal columns for sample sentences, links for audio files, etc.
● I find it easiest if I have already designed the Note Type in Anki. In that Note Type, I will set up
the fields that I want. Then when I import from the text file, I have a Note Type that I can import
into. I can easily map the columns to the fields.
● When you are done edi ng and want to import into Anki, then read the next sec on.

Impor ng an Excel File into Anki

When your file is ready, and you want to import it into Anki, you have to carefully do these steps.

● File > Save As


● (For Ease) Go to your desktop
● From the “Save as type” dropdown menu, select “Unicode Text *.txt”

● Then open Notepad (a different program found within Windows)


● File > Open
● You MUST change the “Encoding” on the dropdown menu to “Unicode”
● Then File > Save As
● Change the “Encoding” on the dropdown menu to “UTF-8”
● Click “Save”
● Your file is now in “UTF-8” format and ready to import.

Important: If you are including html in your import, there are some other steps that you need to do to
make sure your data is imported properly, but that is different than an “UTF-8” issue. Informa on about
this and other things can be found at: h p://ankisrs.net/docs/manual.html#impor ng. I recommend
that you read that sec on before impor ng even simple files.

You might also like