Japanese Yen Format in Excel

To apply the Japanese Yen format can take quite a few mouse clicks. The macro that does it, on the other hand, is quite simple. Select the range, then run the macro. Sub JapaneseYen() Selection.NumberFormat = "[$¥-411]#,##0.00" End Sub If you are unsure how to use macros, see the link below. How to use macros  

Continue ReadingJapanese Yen Format in Excel

Random Dates

In Excel dates are stored as numbers. To generate random dates you can use the RANDBETWEEN function with a start date and an end date. The formula in cell C2 is =RANDBETWEEN(A2,B2) Cell C2 has been formatted as a date. This formula is dynamic. Each time Excel calculates it will update and most likely change. You can use Copy > Paste Values to capture the date(s).    

Continue ReadingRandom Dates

Counting Errors in a Range in Excel

If you need to ensure that a range has no errors you can count the errors and compare the result to zero to ensure the range is error free. The formula in cell C1 which counts errors in a range is =SUMPRODUCT(ISERROR(A1:A5)*1) If you want to display TRUE for no errors and FALSE for error(s) you can use =SUMPRODUCT(ISERROR(A1:A5)*1)=0 You can also use an IF function to display the text Error if any errors are found. =IF(SUMPRODUCT(ISERROR(A1:A5)*1)=0,"OK","Error")    

Continue ReadingCounting Errors in a Range in Excel

Removing Line Feeds in Excel

Sometimes when text data is imported from other systems it can contain line feeds. A line feed wraps the text onto a new line - it is not associated with the Wrap Text format. Cell A1 below shows an example. Cell B1 has the formula that removes line feeds and replaces it with a space. The formula in B1 is =SUBSTITUTE(A1,CHAR(10)," ")

Continue ReadingRemoving Line Feeds in Excel

Controlling the Enter Key

When you press the Enter key Excel typically selects the cell beneath the current cell. Some people change this default option so that the selected cell does not move at all when Enter is pressed. When you think about it, you often press Enter and then immediately move back to the cell to either copy it, or format it. If you want to change what the Enter does when you press it, you can change a setting in Excel Options.…

Continue ReadingControlling the Enter Key

Easy Protection

Applying sheet protection stops your sheet structure from being accidentally changed by you, or someone else. You can add sheet protection by right clicking the sheet tab and clicking Protect Sheet or using the Protect Sheet option in the Review tab. You typically use a password when applying protection, but you can also leave the password box blank. This still applies sheet protection and stops accidental changes, but allows you to easily unprotect the sheet; make a change and then…

Continue ReadingEasy Protection

Backup your important files

Excel has a feature that has been around for many versions, but most users are unaware of it as it is tucked away in a separate menu and dialog. You can have Excel automatically make a backup of the previous version of a file each time you save it. Note: if you click save twice in a row the backup will be identical to the current version. This can be a life saver if your file gets corrupted. In the…

Continue ReadingBackup your important files

Data Validation to Ensure a Weekend Date

If you want to ensure the user enters a date that is a Saturday or a Sunday, you can use a Custom Data Validation. This example is for cell A1. To open the Data Validation dialog use Alt a v v (pressed in sequence, not held down). Click the first drop down and select Custom. This allows you to enter a formula to determine the data validation. The formula used is =WEEKDAY(A1,2)>5 The WEEKDAY function returns a number from 1…

Continue ReadingData Validation to Ensure a Weekend Date

End of content

No more pages to load