By Neil Shorney, Director, Naturally Sales Ltd.
Many people are familiar with the quick-access toolbar for organising a few frequently-used buttons on your Excel application. Did you know that in Excel 2010, you can create a fully-functional custom ribbon tab to organise your most frequently-used functions into logical groupings for easy access?
To do this, click File then Options then Customize Ribbon followed by the item you'd like to create. First choose New Tab and to create custom groupings within the new tab, choose New Group. There is no limit to the number of groupings you can create.
Business-focused Excel tips absolutely free from business trainers, not IT people. Learn Excel skills which you can apply in real life with our regular updates and downloadable examples.
Tuesday, 24 September 2013
Thursday, 19 September 2013
Using data validation to control text length
By Neil Shorney, Director, Naturally Sales Ltd.
In the past e-tip, we’ve looked at how to indicate when data is too long by using an IF statement, then how to cut data down to the required size using the LEFT function. In this week’s tip, we’ll see how we can prevent over-long data being entered in the first place. Prevention is better than a cure, after all!
First, select the cell (or cells) which you'd like to restrict. Then click the Data Validation button. If you're using Excel 2007 or above, you'll find the Data Validation button on the Data tab, in the middle of the Data Tools group. In Excel 2003, it's on the Data menu then Validation. Click this button and you'll be presented with the Data Validation dialog.
Data validation allows us to restrict the values a user can enter into our spreadsheets. The default is "Any value". Change this to "Text length", and choose the minimum and maximum length you'll allow. There are other operators to choose in the "Data" drop-down.
On the "Input Message" tab, you can type a brief message to tell your user what you're expecting, and on the "Error Alert" tab, you can type a message in case your user insists on trying to do things their own way!
In the past e-tip, we’ve looked at how to indicate when data is too long by using an IF statement, then how to cut data down to the required size using the LEFT function. In this week’s tip, we’ll see how we can prevent over-long data being entered in the first place. Prevention is better than a cure, after all!
First, select the cell (or cells) which you'd like to restrict. Then click the Data Validation button. If you're using Excel 2007 or above, you'll find the Data Validation button on the Data tab, in the middle of the Data Tools group. In Excel 2003, it's on the Data menu then Validation. Click this button and you'll be presented with the Data Validation dialog.
Data validation allows us to restrict the values a user can enter into our spreadsheets. The default is "Any value". Change this to "Text length", and choose the minimum and maximum length you'll allow. There are other operators to choose in the "Data" drop-down.
On the "Input Message" tab, you can type a brief message to tell your user what you're expecting, and on the "Error Alert" tab, you can type a message in case your user insists on trying to do things their own way!
Wednesday, 11 September 2013
Trimming cells to a specified text length
By Neil Shorney, Director, Naturally Sales Ltd.
Today we’ll look at how to automatically trim cells and discard anything over a certain length.
We do this with the LEFT function. It's constructed like this:
=LEFT(cell_ref,no_of_characters)
...and will preserve only the specified number of characters from the cell. In "real life", we can preserve only the left 10 characters from cell A1 by entering :
=LEFT(A1,10)
Why not play with the RIGHT function as well?
Next time, we'll look at how we can prevent our users from entering too many characters to start with, therefore saving ourselves some time cleaning up data.
Today we’ll look at how to automatically trim cells and discard anything over a certain length.
We do this with the LEFT function. It's constructed like this:
=LEFT(cell_ref,no_of_characters)
...and will preserve only the specified number of characters from the cell. In "real life", we can preserve only the left 10 characters from cell A1 by entering :
=LEFT(A1,10)
Why not play with the RIGHT function as well?
Next time, we'll look at how we can prevent our users from entering too many characters to start with, therefore saving ourselves some time cleaning up data.
Tuesday, 3 September 2013
Dates
By Neil Shorney, Director, Naturally Sales Ltd.
We'll take a little look at date formats today. There are occasions for all of us when Excel's dates don't perform as we'd like them to. By understanding a little more about how Excel processes dates, we're better-equipped to solve any problems we might find.
When you see a date in Excel, what you're actually seeing is just a number, formatted to look like a date. The number represents the number of days since 31st December 1899 - it seems that spreadsheets were invented by the Victorians! If you re-format a date cell as "General" or "Number", you'll see the date changes to a 5-digit number, probably beginning with a 4. Today is 41520 - that's the number of days which have elapsed since the turn of the last century!
That dates are stored as numbers is both a help and a hindrance to us as users - it means we can add or subtract dates as we would any other number, which allows us to measure results over time. It also means that although we see, for example, a year in the date, we can't just change the formatting to get at this information accurately - even if we format as year only, Excel is seeing the exact date.
Fortunately, there are functions we can use to extract information from a date. They are:
=DAY(cell ref) - gives the day within a month
=MONTH(cell ref) - gives the month number within a year
=YEAR(cell ref) - gives the year
Using these functions, we can extract anything we want from a date.
Exercise: have a play with the WEEKDAY function and see what it does - any questions, just email, from our website.
We'll take a little look at date formats today. There are occasions for all of us when Excel's dates don't perform as we'd like them to. By understanding a little more about how Excel processes dates, we're better-equipped to solve any problems we might find.
When you see a date in Excel, what you're actually seeing is just a number, formatted to look like a date. The number represents the number of days since 31st December 1899 - it seems that spreadsheets were invented by the Victorians! If you re-format a date cell as "General" or "Number", you'll see the date changes to a 5-digit number, probably beginning with a 4. Today is 41520 - that's the number of days which have elapsed since the turn of the last century!
That dates are stored as numbers is both a help and a hindrance to us as users - it means we can add or subtract dates as we would any other number, which allows us to measure results over time. It also means that although we see, for example, a year in the date, we can't just change the formatting to get at this information accurately - even if we format as year only, Excel is seeing the exact date.
Fortunately, there are functions we can use to extract information from a date. They are:
=DAY(cell ref) - gives the day within a month
=MONTH(cell ref) - gives the month number within a year
=YEAR(cell ref) - gives the year
Using these functions, we can extract anything we want from a date.
Exercise: have a play with the WEEKDAY function and see what it does - any questions, just email, from our website.
Wednesday, 28 August 2013
Tidying data for mailings
By Neil Shorney, Director, Naturally Sales Ltd.
When we have an untidy data last for postal mailings, it can really affect the customer's
perception of us as a company: missing capitals, too many capitals or poorly laid-out addresses can all make mailing labels look untidy. At the beginning of September, we looked at the TRIM function to remove erroneous spaces from words. Today we will look at three functions to correct the case of letters:
UPPER(ref) - this will change all characters to upper case
LOWER(ref) - this will change all characters to lower case
PROPER(ref) - capitalises the first character of each word
Using a combination of these functions, we can tidy our data for professional-looking mailings.
When we have an untidy data last for postal mailings, it can really affect the customer's
perception of us as a company: missing capitals, too many capitals or poorly laid-out addresses can all make mailing labels look untidy. At the beginning of September, we looked at the TRIM function to remove erroneous spaces from words. Today we will look at three functions to correct the case of letters:
UPPER(ref) - this will change all characters to upper case
LOWER(ref) - this will change all characters to lower case
PROPER(ref) - capitalises the first character of each word
Using a combination of these functions, we can tidy our data for professional-looking mailings.
Tuesday, 20 August 2013
Identifying cells by text length
By Neil Shorney, Director, Naturally Sales Ltd.
I received this email from a recent student on our live e-learning recently, and thought it would make a useful topic for an e-tip:
“I work a lot with mailing lists, and problems arise when the company and address fields contain more than 40 characters. Is there a way to indicate these fields when they contain too many characters in such a way that I can filter on this information? Right now I am simply eyeballing the list and making changes but I may receive lists with 10,000 entries!”
I suspect this might not be a unique problem, and there are two ways we can look at this problem, depending on where the data comes from. If the data already exists in the spreadsheet, then we can use a formula to indicate those cells which match certain criteria in order to sort by these cells; in this case those which contain more than 40 characters.
I'd recommend typing the formula into a new column, by which you can then filter to highlight those records you're identifying. To highlight cells which contain more than a certain number of characters, you can use the LEN function (short for ""length""). It works like this:
=LEN(cell_ref)
You can combine this with an IF statement to highlight certain conditions. For example, if you want to know whether C14 has more than 40 characters, you could type the following formula into, for example, D14:
=IF(LEN(C14)>40,""Too long"","""")
...which would give a blank cell if less than 40, or say ""Too long"" if greater than 40.
Why not try this with other criteria?
The next step is to remove those characters after the fortieth in a cell. That's a topic for next time, then in the following e-tip we'll look at how to prevent users being able to enter more than 40 characters in the first place!
I received this email from a recent student on our live e-learning recently, and thought it would make a useful topic for an e-tip:
“I work a lot with mailing lists, and problems arise when the company and address fields contain more than 40 characters. Is there a way to indicate these fields when they contain too many characters in such a way that I can filter on this information? Right now I am simply eyeballing the list and making changes but I may receive lists with 10,000 entries!”
I suspect this might not be a unique problem, and there are two ways we can look at this problem, depending on where the data comes from. If the data already exists in the spreadsheet, then we can use a formula to indicate those cells which match certain criteria in order to sort by these cells; in this case those which contain more than 40 characters.
I'd recommend typing the formula into a new column, by which you can then filter to highlight those records you're identifying. To highlight cells which contain more than a certain number of characters, you can use the LEN function (short for ""length""). It works like this:
=LEN(cell_ref)
You can combine this with an IF statement to highlight certain conditions. For example, if you want to know whether C14 has more than 40 characters, you could type the following formula into, for example, D14:
=IF(LEN(C14)>40,""Too long"","""")
...which would give a blank cell if less than 40, or say ""Too long"" if greater than 40.
Why not try this with other criteria?
The next step is to remove those characters after the fortieth in a cell. That's a topic for next time, then in the following e-tip we'll look at how to prevent users being able to enter more than 40 characters in the first place!
Monday, 5 August 2013
Rounding Numbers
By Neil Shorney, Director, Naturally Sales Ltd.
Excel has a number of ways to round numbers. Today we'll look at three of these methods, and we'll re-visit the topic in a future edition.
The first we'll look at is the ROUND function. This rounds a decimal to the number of digits specified, and is constructed as follows: =ROUND(number, no. of decimals). For example, =ROUND(3.141592654,3) would give 3.142. Remember, of course, that these numbers don't have to be built into the formulas - they can be cell references containing numbers instead.
Maybe, though, you specifically want to round up or down. The formulas for these are constructed in the same way. The ROUNDUP function will round up to the number of decimals specified and ROUNDDOWN will round down in the same way.
As always, if you'd like further help with these, send an email to excel-help@nsales.co.uk and we'll get back to you.
Excel has a number of ways to round numbers. Today we'll look at three of these methods, and we'll re-visit the topic in a future edition.
The first we'll look at is the ROUND function. This rounds a decimal to the number of digits specified, and is constructed as follows: =ROUND(number, no. of decimals). For example, =ROUND(3.141592654,3) would give 3.142. Remember, of course, that these numbers don't have to be built into the formulas - they can be cell references containing numbers instead.
Maybe, though, you specifically want to round up or down. The formulas for these are constructed in the same way. The ROUNDUP function will round up to the number of decimals specified and ROUNDDOWN will round down in the same way.
As always, if you'd like further help with these, send an email to excel-help@nsales.co.uk and we'll get back to you.
Subscribe to:
Posts (Atom)