get_appropriate_format function

Transform scanning result format into user-chosen format