You should take a look at this widget: https://appstore.home.mendix.com/link/app/106254/Mendix/Grid-Cell-Styler
And if you want to style Excel you should make your data accesible by OData and retrieve the data this way. Then you can do the styling in Excel and just refresh the data everytime with OData. Or use a paid module like templater https://appstore.home.mendix.com/link/app/109927/Daywize/TemplaterForMendix . Then you can create an Excel template with all the styling and merge the data into the Excel file.
Regards,
Ronald