## Improving readability of worksheet data in Excel

It can be a big help if your data in Excel is easy to read (avoiding errors in calculations and or data analysis). I know there are more ways than one to achieve that goal, in this article I’ll show you some code that handles the solution without using conditional formatting. It’s a rough and simple solution…

## Prevent RSI and automate mouse clicks by using excel

Sometimes one has to do a lot of mouse clicking… By repetitive clicking and small movements of your hands and other joints you could end up with some nasty RSI (Repetitive Strain Injury) and that ain’t worth it!!! So beat RSI (or your enemy while gaming) by using VBA and Excel to automate some excessive mouse clicks!

## Using Excel’s conditional formatting to colorize the weekends

In this period of the year most of us are starting to make plans for next year, Excel is an incedibly powerfull tool that can help you visualize your plans. Using Excel’s conditional formatting you can colorize the weekends and make them standout more than the other days of the week or vice versa. This article is an How to colorize the weekends in Excel using conditional formatting.

To colorize the weekends in Excel using conditional formatting, based upon the date in column B, you can use the following formula:

 =IF(OR(WEEKDAY(\$B2)=1;WEEKDAY(\$B2)=7);1;0)

To create a rule using conditional formatting:

• Select the cells that you want to apply the conditional formatting to.
• Click “Conditional Formatting”.
• Choose “New Rule”.
• In the “New Formatting Rule” dialog box, choose “Use a formula”.
• Under “Format values”, type the formula: =IF(OR(WEEKDAY(\$B2)=1;WEEKDAY(\$B2)=7);1;0)
• The formula uses the dates in column B (You can select your own column with dates, by replacing the \$B2 part in the formula with the column letter of your choice).
• Click “Format”.
• In the “Color” box, select your favourite color.
• Click “OK” until all dialog boxes are closed.

## Rearrange columns in Excel using VBA

Did you ever need to rearrange or reorganize columns across multiple sheets in a certain order based on column headers? In this article, I’ll try to explain how to rearrange columns in Excel based on column header information by using Visual Basic for Applications (VBA).

To make it more visible see the images below…

In this example the headers are in alpabetical order:
Address, City, Country, Date of Birth, First Name, Last Name, Middle Name, Phone Number, Postal (ZIP) Code, State.

And let’s say you want to change the column order to:
First Name,Last Name, Middle Name, Date of Birth, Phone Number,Address, City, State, Postal (ZIP) Code, Country (see the image below)

For those of you that are not familiar with VBA / macro’s use the steps below…

• First make sure you’ve got the “Developer” tab in Excel
• Next press the button “Record Macro”
• Then press the button “Stop Recording”
• Press ALT + F8
• Choose “Edit”
• Copy and paste the code below (or download a text file containing the code here…)
• You might want to use your own headers and ordering, so change the code there 😉