Hello,
Is it possible to export dataset to excel defining colour filling and excel format for each cell?
The dataset is formed like:
Segment Name Value
earnings local_calc 100
earnings reported 120
earnings difference 0.20 (=reported-local / local)
spends .....
But in EXCEL I want:
Segment Name Value
earnings local_calc 100$
earnings reported 120$
earnings difference 20% (=reported-local / local)
spends .....
in EXCEL I want to have format regarded on Name column (if Column = difference then PERCENTN10.1 else DOLLAR10) and highlight differences more than 10% by filling cell yellow.
You can use Proc Export with styles for this. Do some searching for examples here in this forum and/or via Google.
Use as search terms something like Proc Report and Conditional Formatting.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.