Skip to playerSkip to main content
Learn how to add random background color or fill color in Excel.

In Excel, there are various ways to add random background or fill colors to cells. One method involves selecting the cells you want to fill, navigating to the "Home" tab, clicking on the "Conditional Formatting" dropdown, and choosing "New Rule." From there, opt for the "Use a formula to determine which cells to format" option, and input a formula like "=RAND() > 0.5" to randomly fill cells with a 50% chance. Alternatively, to dynamically color cells based on another cell's value, employ conditional formatting by selecting the target cells, clicking on "Conditional Formatting" again, and selecting "New Rule." Then, choose the option "Format cells that contain," set the condition based on the value in another cell, and specify the format you desire. This way, Excel will automatically adjust cell colors based on changes in the referenced cell, providing dynamic visual cues.

Here the steps outlining my video.

Random Fill Color Function
1) Right-click the worksheet.
2) View Code
3) Add the VBA script.
4) Ctrl+S

Random Fill Color
1) Highlight cells
2) Place cursor in subroutine.
3) F5

How to Add Random Background Color or Fill Color in Excel,How to randomly add background/fill color for cells in Excel?,How do you make Excel cells change color automatically based on another cell?,How do you dynamically color a cell in Excel?,How do I highlight random cells in Excel?,How do I get Excel to automatically color code?,

Check out my complete suite of Microsoft Excel Tips and Tricks.
https://www.youtube.com/@jjnet247/shorts
https://www.tiktok.com/@exceltips247
https://www.instagram.com/exceltips247/
https://www.dailymotion.com/ExcelTips247
https://www.pinterest.com/ExcelTips247/excel-tips-and-tricks/
https://x.com/ExcelTips247/media
https://www.reddit.com/r/Excel247/
https://www.facebook.com/XyberneticsInc/reels/

#microsoft #excel #tips #tipsandtricks #microsoftexcel #accounting #fyp #fypシ #exceltips #exceltricks

Category

📚
Learning
Transcript
00:00I recently published a video on how you can sum numbers based on cell colors, but someone had inquired, how
00:06did I make this multiple colors on my cell?
00:09Well, this is how I do it. You're going to right click on the sheet name, select view code from
00:14the context menu.
00:15In here, you're going to paste this VBA subroutine. If you'd like the copy of this subroutine, please leave a
00:20request on the comment section and I'll send it to you.
00:22Once that's done, you're going to press Ctrl S. I'm going to move this VBA editor on the side here
00:27and select the area that I want to change the color on.
00:30Now go back to your VBA here, place your cursor on this subroutine and press F5.
00:36And you can see that the fill color changes every time you place your cursor on the subroutine and then
00:41press F5.
Comments

Recommended