I think I have a good option:
- first I created categories as many as necessary
- then I assign small transactions to each of those categories
- after that I export all transactions categorized into a ,csv file and save file to use later
- before import my data, I assign at the spreadsheet the categories
- importing the file, I select the column of the category and set it as category.
It works very well.