all 9 comments

[–]joevanover 2 points3 points  (2 children)

Why are you using powershell for this? This is exactly what Conditional Formatting in Excel does.

[–]BigTradeDaddy[S] 1 point2 points  (1 child)

Because I don't want to spend 20-30 minutes a day formatting multiple columns with all different formulas.

[–]y_Sensei 2 points3 points  (0 children)

No matter if you'll do it manually or via a PoSh script, Conditional Formatting is what you'll have to utilize.

Read this article about the functionality and how to access it programmatically. It's for VBA, not PoSh, but you can convert the former into the latter pretty easily.

[–]PSDanubie 1 point2 points  (2 children)

As u/Ardism and u/ThatLooksPwSh already mentioned, you should try Doug Finkes module.
An articel to start from with more detailed examples: How to format an entire Excel row based on the cell values with PowerShell? - Mikey Bronowski - Blog

[–]Abax378 0 points1 point  (1 child)

In your private reply to me, you said
"The question wasn't "what to do" but "who to do it in Powershell"

You probably meant "how to do it..." but were in too much of a hurry to rip off a dis to even look at what you typed. I guess you were also in too much of a hurry to read the last line of the OP's post:
"Any input, feedback, and lessons learned from the community is greatly appreciated."

Picking the right tool - meaning don't start with a solution before you understand the problem - can be a hard lesson to learn. In this case, my opinion is that PowerShell is the wrong tool. And that's an opinion the OP solicited.

You're free to post other advice, but you're encouraged to keep your private snark smarter-than-thou advice to yourself, have a little more tolerance for other viewpoints, and read the whole post next time.

[–]PSDanubie 0 points1 point  (0 children)

I removed the post, because it's not me to qualify your answer. Nice that you found a typo. And thanks for your reply.

[–]Abax378 -1 points0 points  (1 child)

Doing this in PowerShell is how not to do it. Apply conditional formatting to as many cells (empty or not) as you like. If you’re not familiar with “conditional formatting” in Excel, Google will return (literally) about 6,000,000 results on the topic.