Read file
You can using libreoffice to read xls or xlsx file, and convert to csv file.
# it will generate a same name csv file
libreoffice --headless --convert-to csv foo.xlsx
Get nth row
# Get 10th line of foo.csv (row 10)
CSV=$(cat foo.csv | sed -n "10p")
Parse csv file
And you can parse the csv file, there are have several way to do.
csvtool, regex, ...etc.
Here is regex way. Format grep -oP <regex>
CSV='9,"foo,bar",12'
regex='(?:,|^)("(?:(?:"")*[^"]*)*"|[^",]*)'
matches=$(echo $CSV | grep -oP $regex)
echo "$matches"
# 9
# ,"foo,bar"
# ,12
I'm not sure why match include comma, but it can remove easily.
The rest is up to you.