January 2, 2008

Where’s That Located on the Printout?

Ever wish you had your gridlines, column letters and row numbers on the printout of an MS Excel worksheet?

On some of the larger worksheets or on worksheets where there aren't a lot of labels on the data, this tip could be the little "miracle" you've been looking for. Okay, maybe the word miracle is a bit strong, daily cialis results but then again, it all depends on how lost you've become in your data. It's all in the perspective!

I know sometimes I just have to see it in print to find the mistakes. If only that would ensure I could catch them all. I don't know about you, but some days, my mistake list seems endless!

At any rate, once you've made the decision that you need your gridlines and/or headings, your solution is just a few clicks away.

For people using older versions of Excel, your solution is found in the Page Setup information. So, we'll begin by going to the File menu, Page Setup choice.

Once the Page Setup window opens, you're looking for the Sheet tab.

In the middle section, called Print, you're looking for the Gridlines and Row and Column Headings checkboxes.

Make sure you select the items you need.

Click OK.

For Excel 2007 users, you need the Page Layout ribbon.

Check the Print box for Headings and/or Gridlines as necessary.

There you have it. All the labels and gridlines you could ever want!

Now, you know where to find everything!

Permalink • Print • Comment

January 1, 2008

Why Are These Columns Numbered?

Here's a little tidbit that comes from a reader's question!

The reader was having difficulty with MS Excel's column labeling cialis wiki feature. Instead of letters for column headers, she had numbers.

(Did you notice the cell name given in the corner? Obviously not what most of you are used to).

It was driving her crazy, because it didn't match the other systems she worked on at school and/or work.

So, what's the deal here? Is the one system just "out of whack" or what?

Can it be "fixed?"

Good questions!

Yes, it can be fixed!

To retrieve your beloved letter headings, simply begin with Excel's Options.

For older versions of Excel, they're found via the Tools menu, Options choice.

In the Options dialogue window, you're looking for the General tab.

In Excel 2007, you need the Excel Options button, which is located in the bottom right corner of the Office Button menu.

You need the Formulas section under Excel's options.

In any version, you'll need to uncheck the "R1C1 reference style" box.

Click OK.

Poof!

Your missing letters have been returned. If only everything could be so easy to retrieve!

Permalink • Print • Comment

One Change = Many Changes

Have you ever had an MS Excel workbook that you're constantly working in, making the same changes to several different worksheets?

What did you do?

Did you go to the first sheet, make changes, move to the next sheet, make the same changes, move to the next sheet, make the same changes again and so on?

How tiresome was that?

Want a quicker way to make identical changes on different sheets?

Maybe a way that allows you to make just one set of changes that will include all of the necessary worksheets?

Sounds too good to be true, doesn't it?!

Well, there's no need to pinch yourself. You're not dreaming. It can be done and it doesn't require any special feature or function. You just have to know about a couple extra clicks!

Ready to get started?

Yes?

Good, let's get going!

  • The first thing you need to do is go to the first worksheet to be changed/edited.

  • Next, you need to select the sheet tabs of all the worksheets that need the same changes.

    • To select a series of tabs, hold down the Shift key and click on the last sheet tab in the series. You should see that the first, last and all tabs in between are selected simultaneously.

    • If you have non-consecutive sheets to change, hold down the Ctrl key and click on the tab for each sheet cialis wholesale to be changed.

  • Once you have all the tabs selected, you're ready to begin your changes.

So, go ahead and make those changes, only on the visible sheet. Be sure not to click out of that sheet or you will deselect all of the sheets.

Are your changes all done?

If so, click on another sheet tab.

Immediately, you should notice that the multiple tabs are no longer highlighted.

Now, it's time to notice something way more exciting!

Take a look at all the sheets you had selected to change.

Wow!

All of the changes on all of the selected sheets, including data, formatting, etc., have been completed in one simple move!

It's time to do your little happy dance!

Permalink • Print • Comment

December 25, 2007

Calling On Other Worksheets

I'm sure you've all used cell references in your MS Excel formulas, right? You know, let's say you want to add cells A2 and A3 and write a formula to do this in another location. Maybe even something as simple as =A2 + A3.

These formulas are great and pretty easy to use, but let's say there's a piece of data from one worksheet that you need to bring to another. What do you do then?

If cialis trial pack there's a chance the number from the other worksheet could change, you don't want to simply copy the number into the new worksheet. A move like that would only cause you grief. Every time you make a change that altered the value, you'd have to remember to retype the new number on the second worksheet as well.

Forget it! That method isn't worth the trouble.

Let's face it, if you can't set your workbook up to run smoothly and keep updates you have to make to a minimum, you're just looking for some trouble. You'll inevitably overlook one of those repetitive updates and the data will be meaningless.

So, now what?

The solution I suggest is to use the cell locations from the other worksheets in the formula, just like you would if the cells were located all on the same sheet.

Okay, so it isn't exactly the same. There is a slight difference in the way you reference the cells, but once you understand the new references, it's smooth sailing from there.

Now that we know why we want to use references for cells from different worksheets, let's get busy with the how to!

We all know about the basic formula to add two cells from within the same worksheet where the formula will be used. Let's use the one from above as our example: =A2 + A3

Now, let's just say that instead of A2 and A3 from the current worksheet, you want to use A2 from Sheet2 and A3 from Sheet3 in the workbook.

The new formula (with the different sheet references) would look like this: =Sheet2!A2+Sheet3!A3

Your formula has to somehow tell Excel where to find the cells in the workbook and do it before the cell location with the sheet name and the exclamation point. (Without the extra clarification, the program simply uses the sheet with the formula).

After using a formula like that, you're relieved from any extra updating! If you change a number in either of those cells, the formula will automatically update using the new values.

This type of referencing works in any formula, but you have to be sure not to have any typos in the sheet name. Excel will not guess what you mean, because it only works very literally.

What's that? You don't like all the extra typing? You're more of a "clicker" when it comes to building your formulas?

No problem!

You already know you can click to a cell location to insert it into a formula and well, it works the same way here.

  • Start your formula with the equal sign.

  • Use the sheet tabs (or Ctrl + Page Up/Page Down) to move to another worksheet in the workbook.

  • Click on the cell(s) you need inserted into the formula.

  • At this point, do not click back to the sheet you're working on, just simply continue inserting the elements (cell locations and keystrokes) of your formula.

  • When you complete the formula, hit the Enter key.

You'll be returned to the sheet you started with and your formula will be in place and hopefully, working correctly.

Now that you know how, feel free to call on all the worksheets in the book!

Permalink • Print • Comment

December 21, 2007

Joining Two Text Columns – Changing case to “PROPER”

I teach a class on Power Excel at the University of Akron. Although it is advertised as an advanced class, there are always some basic concepts that the students don't seem to know. I am amazed at how the simplest techniques will cause the most excitement. This is one of those tips.

Today, Sajjad from Dubai wrote with a question. He has a database with first name in Column A and Last name in column B. How can he merge First Name and Last Name into a single column?

This is one of those questions that you can never find in Excel help, because no one thinks to search for the word "Concatenation". Heck, I don't think any normal person ever uses the word concatenate. If you don't know to search for Concatenate, then you will never learn that the concatenation operator is an ampersand. Start with a basic formula of
  =A2&B2 This will give you the result shown in C2 below:

This is a good start. However, we really should concatenate first name, a space, and last name. Try this formula:

  =A2&" "&B2

Then, the question is: do you want to scream MICKEY MANTLE, or would you rather say Mickey Mantle? If you want to change the name to proper case, use the =PROPER() function.
  =PROPER(A2&" "&B2) [Note: see my comment to this message.]

Next, you want to copy the formula down to all of the cells in the column. A shortcut method for doing this is to double-click the fill handle while cell C2 is selected. The fill handle is the darker square dot in the lower right corner of the cell pointer. The dot looks like this:

When your mouse pointer is near the dot, the mouse pointer changes to a cross like this.

Double click and the formula will be copied down to all of the cells in the range.

Note: Excel uses the column to the left when figuring out how far to copy cells after the double click. If you happened to have a blank cell in B8, this trick would stop at row 7. Leave cialis tadalafil 5mg it to Cher to cause a problem.

If this is the case, you might want to grab the fill handle and drag down to all of the rows in order to copy the formula. Note 2: The Proper function is excellent, but it does not properly capitalize last names like McCartney (See cell C7). You will have to manually go through and capitalize the C after the Mc. It would also have a problem with VanHalen. Is this a pain? Yes – but it is easier to fix a few cells than to retype everything in proper case.

Converting Formulas to Values Now that you have Firstname Lastname in column C, you might be tempted to delete columns A & B. You can't do this yet. If you would delete columns A & B, all of the formulas in column C would change to the #REF! error. This error is saying, "Hey – you told me the value in this column should be from A2 & B2, but you deleted those cells so I don't know what to put here!".

The solution is to change the formulas to values before you delete columns A & B. Follow these steps:

  • Highlight the range of cells in column C
  • Copy those cells to the clipboard using your favorite method (The 4 methods to choose from: Ctrl+c, or Edit – Copy from the menu, or the clipboard icon on the toolbar, or right-click and choose copy).
  • Without unselecting the cells, from the menu, choose Edit > Paste Special. From the Paste Special dialog box, choose Values and then OK. This step will paste the current value of each cell in the range back into the cell. Rather than having a formula, you will now have a static value. It is safe to delete columns A & B.

Joining a cell containing text to a cell containing a number In general, this will work out fairly well. In the image below, I've used the formula to build a phrase containing a name in column A with an age in column C.

The trick is when the number is displayed in one format and you want it to be used in another format. Dates are a classic example of this. The date of December 11 1943 is actually stored as a number of days since January 1 1900. If I try to join the text in column A with the date in column B, I get a silly looking result

The solution is to use the =TEXT() function. The text function requires two arguments. The first argument is a cell containing a number. The second argument is a custom number format that indicates how the number is to be displayed. The following formula will produce a nicely formatted result.

There are a lot of cool techniques that were covered in this tip.

  • A formula to join 2 columns of text using the ampersand as a concatenation operator
  • How to join a cell to a text value
  • How to use the PROPER function to change names to proper case
  • Why you get a #REF! error
  • How to use Paste Special Values to convert formulas to values.
  • Joining a cell containing text to a cell containing a number
  • Using the TEXT function to control the display of a date in a formula.

This tip was originally published on September 12, 2004. The permanent URL for this page is http://www.mrexcel.com/tip074.shtml.

Permalink • Print • 1 Comment
« Previous PageNext Page »
Made with WordPress and an easy to use WordPress theme • Sky Gold skin by Denis de Bernardy