Hi penny,
Since you have formatted an external hard drive you cannot even use time machine to restore files but with the help of some
hard drive recovery mac software you can recover all your deleted files from formatted drives before overwriting.
If you have not used your external USB drive after formatting, then
download the software and get back all your files.
Good Luck.