bman1965
Simply, you can't bring through formats with a function. It can be done with code but it's complexity will depend on the number of different formats you are wanting to handle.
What it appears you want to do though is use Conditional Formatting (C/F) throughout the workbook and whatever C/F is used to format B2 or B3 could be used in the cell with the IF formula.
Let us know if you need helkp with C/F
Regards
Nick Hodge
Microsoft MVP, Excel
Southampton, UK