Nick's Excel Tip Of The Day - Part 1
I will try to add a tip each day, but it's more of a goal than a promise
; - >
Nick
New Tips added here
Subscribe to new tips
IMPORTANT: Worried about SECURITY? Open Excel in SAFE MODE
Attachment | Size |
---|---|
DaysTillChristmas.xls | 17 KB |
VLOOKUP.xls | 19 KB |
VLOOKUP_Currencies.xls | 18 KB |
IRR.xls | 18 KB |
SheetName.xls | 17 KB |
FindingLastCellNonContiguous.xls | 17 KB |
InsertingColumnsAnd Rows.xls | 16.5 KB |
DataValidation1.xls | 17.5 KB |
COUNTIF.xls | 26.5 KB |
VariableRanges.xls | 20 KB |
Copy-Down.xls | 17 KB |
»
- Nick's blog
- Login or register to post comments
- 70883 reads
25. Conditional formatting
This tip is one of my favourites, and I have used it a lot for trading systems.
Suppose there's something sooo fundamental on your sheet that if you get it wrong, the consequences can be very costly indeed. Well, as a system designer, you should try your hardest to protect users from making thes mistakes.
Conditional formatting helps enormously here.
In my trading system, I have formatted the headings so that if you change the BUY to a SELL, the headings change colour from blue to red automatically.
BUY:
SELL:
The way to do this is the following:
Select the cells you want to format like this:
In Excel 2007, from the Home ribbon, select conditional formatting => new rule, then set the formula as below:
...choose the format you want in the event that the formula is true, and there you go !
Similar in Excel 2003..
Format => conditional formatting... then same principles apply.
Video Training on conditional formatting:
Conditional formatting in Excel 2003
It seems to me that in Excel 2003, it is only possible to set conditional formats against the cells which contain the data which form the criteria. for example I have an accounting spreadsheet where I want the whole row formatting to change according to the contents of the cells in column W. what I'm finding, is that I can only set conditional formatting for column W. based on what is in column W. thanks
Conditional formatting in Excel 2003
jb - make sure that the "$" signs are there in the conditional formatting formula:
does the trading system work for you?
Conditional formatting in excel 2003
Thanks. In 2003 I don't get this screen. I get a screen which only lets you set formatting in the column which contains the criteria. I think I might have to wait for an upgrade at work.
see here: http://office.microsoft.com/en-us/excel/HA010929431033.aspx?pid=CL100570... (I have to press F5 to get it to load every time I try to look at).
Try selecting "Formula is"
Try selecting "Formula is" from the drop down and the enter: =$B$2=BUY. If B2 equals "BUY" it will trip the formatting.
24. Pasting values
Why is there no easy way to paste values in Excel ?.. huh, huh.
If I got a pound for every time I had to paste values in Excel, it wld be worth at least 7 EUROs, and I'd be a Zillionaire in Zimbabwean dollars.
The best way of performing this operation known to man is the following:
Step1:
Select range to copy, and press CTRL + C
Step2:
Select the place you want want to paste to, and press the following keys in order:
ALT then e then s then v then ENTER
..there are other ways using the mouse but ExcelExperts prefer to use the keyboard for everything. (Take note Mr Ribbon Designer)
Another way
Pasting values - Video Training
23. Inserting rows and columns
When using Excel for your daily work, you will often need to insert rows and columns.
Remember, when you insert rows and columns, Excel changes the references so that your formulae do not appear to change materially, however, there are some things to watch out for.
Example with 2 columns, and an addition formula:
=B3+A3
When you insert a column in between A and B, the formula adjusts like so:
Note: nothing is materially affected - you are still adding 10 + 2
Now, suppose unstead that you use the SUM formula:
... When you insert a column, the formula adjusts as you'd expect, but if you look carefully there is a difference. Now, cell B3 is included in the summation:
SO... if you want the addition of new columns to be included in your summation formula, use the SUM function... If you don't, you have to use simple addition.
Practise sheet
.. same works for rows.
Video training on Inserting Rows and Columns:
22. Finding the last cell for non contiguous range
So, you have data in column 1, and you want to create a formula in column 2, and copy it down.
Normally, this is a very easy task:
- enter the formlula, select the small square in the bottom right corner of your cell, and double click on it to automatically populate your 2nd column with the formula.
However, what happens when the data looks like this?
The autofill will stop on line 3.
One way to complete the task is to drag down manually, but there is a much better way.
Step1: (for this example)
Select cell b2, and copy it
Step2:
Press CTRL + END
This will take you to the bottom right
Step3:
Press CTRL + LEFT ARROW
This will take you to the bottom left
Step4:
Press CTRL + UP ARROW
This will take you to the bottom left of populated data
Step5:
Press right arrow once, then CTRL + SHIFT UP ARROW
This will select the correct area to paste into
Step6:
ENTER
Once you get quick at shortcuts, you can do this entire action in a few seconds.
Download sheet to practise on
Video Training on finding the last cell:
Real Last Cell
Ctr+End has a bug
Excel cannot automatically reset the last cell
Type
A
b
c
d
e
Say Ctr+End it will take you to cell containing e
Delete cell containining e, say Ctrl+home, and Say Ctrl+End again it still takes you to the blank cell which earlier had e
The most reliable way of going to the real last cell is
Say Select A1, Ctrl+f , in find What type * and say Shift + Find Next (Equivalent to find previous)
Reset Last Cell
There is a way, but u have to use VBA...
Reset Last Cell using VBA
I like ur other way of doing it...
; - >