Anda di halaman 1dari 36

109608421.xls.

ms_office

Page 1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

A B C D E F G H I J K Extract Data Extracting elements of a cell. Most often used when one has imported a data file that needs to be "manipulated" to obtain the relevant information. The product of the Left, Right and Mid commands is a text string Example of data within a cell 1511 INV O 355806 134555.34 Invoice amount Customer # Invoice number Left This will get the customer # (In this case always 4 digits) 1511 Text cell ref =LEFT(A5,4) Value Turns text to number To convert from text to a numeric value 1511 =VALUE(LEFT(A5,4)) Number of characters to extract from the left

Right This will get the invoice amount (Assumes in this case invoice cannot be >R999999.99) 134555.34 Text cell ref =RIGHT(A5,9) 134,555.34 =VALUE(RIGHT(A5,9)) Number of characters to extract from the right

Mid Returns a number of characters from a text string starting at the position you specify and then extracting a desired number of characters. 355806 =MID(A5,12,6) 355806 =VALUE(MID(A5,12,6)) Text cell ref Number of characters to extract Position of first character to be extracted

Extract data

109608421.xls.ms_office

Page 2

A B C D E F G H 1 Wildcards To find text values that share some characters but not others, use a wildcard character. A wildcard character 2 represents one or more unspecified characters. 3 4 5 6 Use To find Any single character in the same position as the question ? (question mark) 7 mark. I.e. the question mark represents a place holder. 8 For example, sm?th finds "smith" and "smyth" 9 For example, p??l finds "pail" and "pool" 10 Any number of characters in the same position as the * (asterisk) 11 asterisk 12 For example, *east finds "Northeast" and "Southeast" 13 A question mark, asterisk, or tilde. I.e. the tilde indicates ~ (tilde) followed by ?, *, or ~ that the very next character must be read literally and not as 14 a wildcard. 15 For example, fy91~? finds "fy91?" 16 17

Wildcards

109608421.xls.ms_office

Page 3

1 2 3 4 5 6 7 8 9 10 11 12 13 14

A B Concatenate Joins several text strings into one text string. (Up to 30) Straun StraunKentFotheringham StraunKentFotheringham Including spaces: Straun Kent Fotheringham Surname first, then first names: Fotheringham, Straun Kent Kent =CONCATENATE(A4,B4,C4) =A4&B4&C4

Fotheringham Long version of formula & performs the same function as concatenate

=A4&" "&B4&" "&C4

=C4&", "&A4&" "&B4

Join data

109608421.xls.ms_office

Page 4

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

A Store City BOSTON BOSTON BOSTON BOSTON LOS ANGELES LOS ANGELES NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK

B Store Type Company Company Franchise Franchise Franchise Company Franchise Company Franchise Franchise Company Franchise Franchise Company

C Transactions 3892 3966 3595 3611

D
Sales 6,289 6,571 4,945 5,051 29,267 31,947 24,077 22,704 26,962 22,925 22,389 25,324 24,753 24,112 277,316

7293 7037 7815 6935 6954 7531 7486 7285

COUNT Works like sum but counts the number of entries (numbers) in the range 14 =COUNT(D2:D15) COUNTA Works like sum but counts the number of non-empty cells in the range 12 =COUNTA(C2:C15) COUNTBLANK Works like sum but counts the number of empty cells in the range 2 =COUNTBLANK(C2:C15) COUNTIF Counts the number of cells within a range that meet a certain condition 8 =COUNTIF(A2:A15,"New York")

Count formula and countif

109608421.xls.ms_office

Page 5

A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36

Example 1 (To test if the contents of 2 cells is equal) 100 TRUE

100 This is the most simple if formula Logical test B15=C15 Value if true "TRUE" Value if false "FALSE"

=IF(B15=C15,"TRUE","FALSE")

A quicker method to determine if two cells are equal is as follows: TRUE =B15=C15 This formula returns true if they are equal or false if they are not equal

Example 2 (To test if the contents of a cell matches a condition. If condition met then do something to that cell) Sales thrshold level Normal commission % Commision if sales level met Employee 1 Employee 2 Employee 3 Employee 4 80,000 3% 5% Sales Basic Salary 70,000 15,000 90,000 15,000 110,000 15,000 80,000 15,000 =IF(B29>=$B$25,B29*$B$27,B29*$B$26) Logical test B29>=$B$25 (70 000 >= 80 000 -> FALSE) Value if true B29*$B$27 N/A Value if false B29*$B$26 (70 000 * 3%) =IF(B30>=$B$25,B30*$B$27,B30*$B$26) Logical test (B30>$B$25 Value if true B30*$B$27 Value if false B30*$B$26 (90 000 >= 80 000 -> TRUE) (90 000 * 5%) N/A

Commision 2,100 4,500 5,500 4,000

Total pay 17,100 19,500 20,500 19,000

Simple IF

109608421.xls.ms_office

Page 6

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

A Nested Ifs (More than one if within the same formula) Sales threshold level 1 Super sales threhold level Normal commission % Commision if sales threhold level 1 is met Commision if super sales threhold level is met Sales Employee 1 Employee 2 Employee 3 Employee 4 Employee 5

80,000 100,000 3% 5% 10% Basic Salary 15,000 15,000 15,000 15,000 15,000 Commision 10,000 4,500 11,000 4,000 2,100 Total pay 25,000 19,500 26,000 19,000 17,100

100,000 90,000 110,000 80,000 70,000

=IF(B11>=$B$3,IF(B11>=$B$4,B11*$B$7,B11*$B$6),B11*$B$5) Logical test 1 B11>=$B$3 (90 000 >= 80 000 -> True) Logical test 2 B11>=$B$4 (90 000 >= 100 000 -> False) Value if logical 2 true B11*$B$7 N/A Value if logical 1 true B11*$B$6 (90 000 * 5% = 4 500) Value if logical 1 false B11*$B$5 N/A =IF(B12>=$B$3,IF(B12>=$B$4,B12*$B$7,B12*$B$6),B12*$B$5) Logical test 1 B12>=$B$3 (110 000 >= 80 000 -> True) Logical test 2 B12>=$B$4 (110 000 >= 100 000 -> True) Value if logical 2 true B12*$B$7 (110 000 * 10% = 11 000) Value if logical 1 true B12*$B$6 N/A Value if logical 1 false B12*$B$5 N/A =IF(B14>=$B$3,IF(B14>=$B$4,B14*$B$7,B14*$B$6),B14*$B$5) Logical test 1 B14>=$B$3 (70 000 >= 80 000 -> False) Logical test 2 B14>=$B$4 N/A Value if logical 2 true B14*$B$7 N/A Value if logical 1 true B14*$B$6 N/A Value if logical 1 false B14*$B$5 (70 000 * 3%)

Nested IFs

109608421.xls.ms_office

Page 7

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

A Account code 100-101 100-102 100-103 100-104 100-105 100-106

B Description Debtor A Debtor B Debtor C Debtor D Debtor E Debtor F

C Amount 407721234-

D E F G H I J (Note notice how the non numeric values are left aligned as they are read as text) 1,002 1,002 (407) 1,244 1,244 (721) (234) 3,122 3,122

If cell does not contain "-" it then inserts the number from cell C3
=IF(ISTEXT(C3),IF(RIGHT(C3,1)="-",-VALUE(LEFT(C3,LEN(C3)-1)),C3),C3)

Tests if cell contains text If cell does not contain text then inserts the number from cell C3 If right most character a "-" then take the characters in the cell but the right most one and makes it negative If contains text then checks if the right most charater is a "-"

Negative sign to the right

Useful excel formula.xls

Page 8

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

A Description Audit fee current Audit fee over provision in prior year Accounting and Admin Fees Bank charges Meetings and seminar expanses Printing and Stationery Direct payroll costs Travelling & entertainment Expense Subscriptions-other Advertising And Promotions Motor Vehicle Expenses Legal Expenses Public Relations Staff Costs Postage Telephones External Consultants Rent Lights & Water

B Category 1 1 2 2 3 4 5 6 3 6 7 7 6 5 4 2 7

C Amount 21,170 (500) 12,345 6,474 29,578 33,407 1,144,444 811,094 4,083 307,717 7,920 2,000 45,755 521,319 24,512 15,339 22,222 3,008,879

Sum if category equals =>

1 2 3 4 5 6 7

20,670 =SUMIF($B$2:$B$18,B21,$C$2:$C$18) 34,158 33,661 57,919 Range Is the range of cells you want evaluated 1,665,763 Criteria Condition that defines which cells are going to be added 1,164,566 Sum range The range of cells that will be added 32,142 3,008,879 TRUE

Check

Sumif example

Useful excel formula.xls

Page 9

A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

B Amount >0

Account balance Account 1 Account 2 Account 3 Account 4 Account 5 Positive balances =SUMIF(C4:C10,">0")

Jan Amount 0 200 (470) (294) 1,000 1,200

Feb Amount 2,000 100 (823) (646) 800 2,900

Mar Amount 1,000 0 (1,058) 0 600 1,600 =DSUM(E4:E10,1,$B$1:$B$2)

{=SUM(IF(D4:D10>0,D4:D10,0))} Note this is an array formula and must be entered using the following keyboard combination : Ctrl+Shift+Enter Do not type in the {}. By pressing Ctrl+Shift+Enter excel enters the necessary brackets around the formula.

This formula is explained in detail on a separate sheet

Sum positive balances

109608421.xls.ms_office

Page 10

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48

A B Year Period 1998 1 1998 1 1998 1 1998 1 1998 1 1998 1 1998 2 1998 2 1998 2 1998 2 1998 2 1998 2 1998 3 1998 3 1998 3 1998 3 1998 3 1998 3 1998 4 1998 4 1998 4 1998 4 1998 4 1998 4 1998 1 1998 1 1998 1 1998 1 1998 1 1998 1 1998 2 1998 2 1998 2 1998 2 1998 2 1998 2 1998 3 1998 3 1998 3 1998 3 1998 3 1998 3 1998 4 1998 4 1998 4 1998 4 1998 4

C Store Code BO-1 BO-2 BO-3 BO-4 BO-5 BO-6 BO-1 BO-2 BO-3 BO-4 BO-5 BO-6 BO-1 BO-2 BO-3 BO-4 BO-5 BO-6 BO-1 BO-2 BO-3 BO-4 BO-5 BO-6 LA-1 LA-2 LA-3 LA-4 LA-5 LA-6 LA-1 LA-2 LA-3 LA-4 LA-5 LA-6 LA-1 LA-2 LA-3 LA-4 LA-5 LA-6 LA-1 LA-2 LA-3 LA-4 LA-5

D Store City BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES

E Store Type Company Company Company Company Franchise Franchise Company Company Company Company Franchise Franchise Company Company Company Company Franchise Franchise Company Company Company Company Franchise Franchise Franchise Company Company Franchise Franchise Franchise Franchise Company Company Franchise Franchise Franchise Franchise Company Company Franchise Franchise Franchise Franchise Company Company Franchise Franchise

F Transactions 3881 3789 3877 3862 4013 3620 3948 3878 3911 3926 3990 3615 3936 3857 3898 3949 3617 3624 3853 3891 3892 3966 3595 3611 8259 9140 9727 9494 10644 10649 9066 9789 9814 9917 10617 10190 9531 9698 9771 10232 10561 10924 9310 9496 9596 10050 10440

G Sales 6,248 5,722 6,278 6,123 6,861 5,039 6,468 6,301 6,390 6,438 6,767 5,091 6,307 6,153 6,319 6,453 5,052 5,111 6,021 6,333 6,289 6,571 4,945 5,051 29,267 31,947 35,405 33,830 39,971 40,077 32,595 35,217 35,455 35,926 39,424 38,387 33,966 34,419 34,494 37,315 39,141 41,938 33,202 33,910 34,500 37,274 38,304

Database Is the range of cells you want evaluated and summed Field Either the label of the column to be evaluated or the column number Criteria Is the range of the cells which contains the conditions you want to apply

Example: Sum where Store City = Boston and Store Type = Franchise Formula 80,512 Store City Store Type Boston Franchise
=DSUM(B1:G145,G1,K22:L23)

DSum

109608421.xls.ms_office

Page 11

49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96

A 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997

B 4 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 3 3 4 4 4 4 4 4 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 3 3 4 4 4 4 4

C LA-6 NY-1 NY-2 NY-3 NY-4 NY-5 NY-6 NY-1 NY-2 NY-3 NY-4 NY-5 NY-6 NY-1 NY-2 NY-3 NY-4 NY-5 NY-6 NY-1 NY-2 NY-3 NY-4 NY-5 NY-6 BO-1 BO-2 BO-3 BO-4 BO-5 BO-6 BO-1 BO-2 BO-3 BO-4 BO-5 BO-6 BO-1 BO-2 BO-3 BO-4 BO-5 BO-6 BO-1 BO-2 BO-3 BO-4 BO-5

D LOS ANGELES NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON BOSTON

E Franchise Company Franchise Franchise Company Franchise Franchise Company Franchise Franchise Company Franchise Franchise Company Franchise Franchise Company Franchise Franchise Company Franchise Franchise Company Franchise Franchise Company Company Company Company Franchise Franchise Company Company Company Company Franchise Franchise Company Company Company Company Franchise Franchise Company Company Company Company Franchise

F 10778 6390 7016 7293 7037 7815 6935 6954 7531 7486 7285 7749 6881 7256 7330 7212 7480 6771 6954 7086 7275 7121 7562 6569 6973 3234 3157 3230 3218 3344 3016 3290 3231 3259 3271 3325 3012 3280 3214 3248 3290 3014 3020 3210 3242 3243 3305 2995

G 40,965 19,890 22,229 24,077 22,704 26,962 22,925 22,389 25,324 24,753 24,112 26,325 23,123 23,330 24,258 23,386 24,619 22,189 23,188 22,703 24,245 23,025 25,329 20,845 23,220 5,206 4,768 5,231 5,102 5,717 4,199 5,390 5,250 5,325 5,365 5,639 4,242 5,255 5,127 5,265 5,377 4,210 4,259 5,017 5,277 5,240 5,475 4,120

DSum

109608421.xls.ms_office

Page 12

97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144

A 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997 1997

B 4 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 3 3 4 4 4 4 4 4 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 3 3 4 4 4 4 4

C BO-6 LA-1 LA-2 LA-3 LA-4 LA-5 LA-6 LA-1 LA-2 LA-3 LA-4 LA-5 LA-6 LA-1 LA-2 LA-3 LA-4 LA-5 LA-6 LA-1 LA-2 LA-3 LA-4 LA-5 LA-6 NY-1 NY-2 NY-3 NY-4 NY-5 NY-6 NY-1 NY-2 NY-3 NY-4 NY-5 NY-6 NY-1 NY-2 NY-3 NY-4 NY-5 NY-6 NY-1 NY-2 NY-3 NY-4 NY-5

D BOSTON LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES LOS ANGELES NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK NEW YORK

E Franchise Franchise Company Company Franchise Franchise Franchise Franchise Company Company Franchise Franchise Franchise Franchise Company Company Franchise Franchise Franchise Franchise Company Company Franchise Franchise Franchise Company Franchise Franchise Company Franchise Franchise Company Franchise Franchise Company Franchise Franchise Company Franchise Franchise Company Franchise Franchise Company Franchise Franchise Company Franchise

F 3009 6882 7616 8105 7911 8870 8874 7555 8157 8178 8264 8847 8491 7942 8081 8142 8526 8800 9103 7758 7913 7996 8375 8700 8981 5325 5846 6077 5864 6512 5779 5795 6275 6238 6070 6457 5734 6046 6108 6010 6233 5642 5795 5905 6062 5934 6301 5474

G 4,209 24,389 26,622 29,504 28,191 33,309 33,397 27,162 29,347 29,545 29,938 32,853 31,989 28,305 28,682 28,745 31,095 32,617 34,948 27,668 28,258 28,750 31,061 31,920 34,137 16,575 18,524 20,064 18,920 22,468 19,104 18,657 21,103 20,627 20,093 21,937 19,269 19,441 20,215 19,488 20,515 18,490 19,323 18,919 20,204 19,187 21,107 17,370

DSum

109608421.xls.ms_office

Page 13

145

A 1997

B 4

C NY-6

D NEW YORK

E Franchise

F 5810

G 19,350

DSum

109608421.xls.ms_office

Page 14

A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

B January 20,534 24,303 20,521 12,830 9,813 88,001

Account 1 Account 2 Account 3 Account 4 Account 5

D E F G Divisions 1 to 4 February March April May June 28,233 11,772 17,118 15,644 24,489 19,720 13,387 20,084 11,961 11,253 23,944 26,317 10,892 19,318 18,599 23,127 13,332 15,274 31,819 28,759 18,275 28,468 24,222 10,072 15,812 113,299 93,276 87,590 88,814 98,912

Correct version of the formula =SUM('Division 1:Division 4'!B3) Sums cell B3 on every sheet in the range division 1 to division 4. Incorrect version of the formula ='Division 1'!B3+'Division 2'!B3+'Division 3'!B3+'Division 4'!B3 Just think if you had 50 divisions! Benefits of using the correct version If you want to exclude a sheet (say division 2) all you do is click on the sheet tab for division 2 and drag it out of the current range being summed. If you then want to re-include it just drag it back within the range being added. The formulas are all updated automatically.

The only thing to bear in mind is when you move either of the sheets on the extremities of the formula. In this case I refer to Division 1 or Division 4. These will be the end markers of the formula and if one moved say Division 4 one sheet to the right you would then include an extra sheet.

Sum sheets

109608421.xls.ms_office

Page 15

A 1 2 3 4 5 6 7 8

Account 1 Account 2 Account 3 Account 4 Account 5

January February 8,040 8,037 7,148 1,199 8,594 6,549 5,364 329 1,424 6,756 30,570 22,870

D E F G Division 1 March April May June 1,937 7,178 2,989 6,730 5,059 9,472 2,838 778 7,485 5,481 4,254 3,598 740 4,719 7,596 6,563 9,261 3,796 2,206 6,282 24,482 30,646 19,883 23,951

Division 1

109608421.xls.ms_office

Page 16

A 1 2 3 4 5 6 7 8

Account 1 Account 2 Account 3 Account 4 Account 5

January February 3,342 9,665 7,809 6,900 8,257 7,189 2,573 5,728 2,429 2,484 24,410 31,966

D E F G Division 2 March April May June 926 8,064 7,128 4,645 964 2,547 6,995 417 8,451 1,639 8,056 2,349 4,175 1,129 8,441 8,142 4,475 7,001 3,326 3,397 18,991 20,380 33,946 18,950

Division 2

109608421.xls.ms_office

Page 17

A 1 2 3 4 5 6 7 8

Account 1 Account 2 Account 3 Account 4 Account 5

January February 8,724 8,527 723 2,445 1,273 7,255 2,489 8,875 5,534 1,497 18,743 28,599

D E F G Division 3 March April May June 5,260 639 2,701 9,760 2,273 7,163 214 1,902 9,553 3,730 3,319 7,264 1,013 6,370 8,904 7,274 8,658 4,962 4,329 5,211 26,757 22,864 19,467 31,411

Division 3

109608421.xls.ms_office

Page 18

A 1 2 3 4 5 6 7 8

Account 1 Account 2 Account 3 Account 4 Account 5

January February 428 2,004 8,623 9,176 2,397 2,951 2,404 8,195 426 7,538 14,278 29,864

D E F G Division 4 March April May June 3,649 1,237 2,826 3,354 5,091 902 1,914 8,156 828 42 3,689 5,388 7,404 3,056 6,878 6,780 6,074 8,463 211 922 23,046 13,700 15,518 24,600

Division 4

109608421.xls.ms_office

Page 19

A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Psoft # 18 1000693 19 1000757 20 1000840 21 1000846 22 1001241 23 1001340 24 1001914 25 1002154 26 1002250 27 1002256 28 1002286 29 1002481 30 1002483 31 1002609 32 33 34 35 36

Lookup value Table array Column index number Range lookup Name Fotheringham,Straun Kent Comber,Michael John De Busser,Robert Frank Carter,Sebastian Benedikt Field Moodley,Wentzel Rein,Christopher James Kruger,Gavin Dykes McArthur,Donald Ridl,Christopher Walter Sagar,Craig Archer Waller,Andrew Geard Malherbe,Francois Jacques Botes,Brian Sheasby,Milinda Psoft # 1001241 1002250 1002609 Name Moodley,Wentzel Ridl,Christopher Walter Sheasby,Milinda

D17 $A$17:$B$31 2 FALSE

=VLOOKUP(D17,$A$17:$B$31,2,FALSE)

Note FALSE in the range lookup looks for exact matches False is used 99.9% of the time If left out or TRUE is used then it finds the nearest match This also assumes the range is sorted in ascending order e.g. of nearest match Psoft # Name 1000799 Comber,Michael John

=VLOOKUP(D30,$A$17:$B$31,2,TRUE)

It finds the match after 1000799 I.e. 1000840 and then goes back to the cell before this I.e. 1000757. In this case it is not appropriate to use the nearest match. (See next sheet for an example where nearest match may apply) Results should have been: (#N/A means no match found) 1000799 #N/A =VLOOKUP(D35,$A$17:$B$31,2,FALSE)

Vlookup

109608421.xls.ms_office

Page 20

A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Salary 0 40,000 80,000 110,000 170,000 240,000

C Tax tables Tax rate Tax on first bands 18% 25% 7,200 30% 17,200 35% 26,200 38% 47,200 40% 73,800

Enter Taxable income 195,000

Rate of tax applicable 38%

Taxation due 56,700 =VLOOKUP(A12,$A$2:$C$8,2,TRUE)

Here 195 000 is greater 170 000 so it goes to the next value, being 240 000 and finds that 240 000 is greater than 195 000 so it goes back to the next nearest match, being 170 000 and finds the rate applicable at that level which is 40%.

=VLOOKUP(A12,$A$2:$C$8,3,TRUE)+(A12-VLOOKUP(A12,$A$2:$B$8,1,TRUE))*B12

Vlookup (nearest)

109608421.xls.ms_office

Page 21

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

A Round Rounds a number to a specified number of digits Round to 2 decimals Round to the nearest rand Round to the nearest ten rand Round to the nearest hundred rand Round to the nearest thousand rand

B Number 1,544.5459

1,544.5500 =ROUND(B2,2) 1,545.0000 =ROUND(B2,0) 1,540.0000 =ROUND(B2,-1) 1,500.0000 =ROUND(B2,-2) 2,000.0000 =ROUND(B2,-3)

Roundup Always rounds a number up towards zero Roundup to the nearest rand Roundup to the nearest hundred rand

Number 1,123.4594 1,124.0000 =ROUNDUP(B16,0) 1,200.0000 =ROUNDUP(B16,-2)

Rounddown Always rounds a number down towards zero Rounddown to the nearest rand Rounddown to the nearest hundred rand

Number 1,473.5934 1,473.0000 =ROUNDDOWN(B24,0) 1,400.0000 =ROUNDDOWN(B24,-2)

Rounding

109608421.xls.ms_office

Page 22

List 1 1 50.50 2 1,150.00 3 40.00 4 30.00 5 30.00 6 20.00 Exact matches Item List 1 1 50.50 2 1,150.00 3 40.00 4 30.00 5 30.00 6 20.00

List 2 4 30.00 5 40.00 6 20.00 1 50.40 2 1,125.00 3 40.00

=VLOOKUP(A11,$D$2:$E$7,2,FALSE)

List 2 50.40 1,125.00 40.00 30.00 40.00 20.00

FALSE FALSE TRUE TRUE FALSE TRUE

=B13=C13

Comparing to the nearest rand Item List 1 List 2 1 50.00 50.00 2 1,150.00 1,125.00 3 40.00 40.00 4 30.00 30.00 5 30.00 40.00 6 20.00 20.00

=ROUNDDOWN(B2,0) TRUE FALSE TRUE TRUE FALSE TRUE

=ROUNDDOWN(VLOOKUP(A20,$D$2:$E$7,2,FALSE),0)

Comparing to the nearest hundred rand Item List 1 List 2 2 1,100.00 1,100.00 TRUE =ROUNDDOWN(VLOOKUP(A29,$D$2:$E$7,2,FALSE),-2) =ROUNDDOWN(B3,-2)

Compare data

109608421.xls.ms_office

Page 23

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

B Current Year 20XX 200,000 1,333,000 25,000 10,000

D Prior Year 20XY 150,000 1,300,000 12,000 -

F Difference % #NAME? #NAME? #NAME? -

Account 1 Account 2 Account 3 Account 4

PDIF =IF(D3=0,"-",PDIF(B3,D3)) The IF statement checks for zeros to prevent the #DIV/0! error message Syntax: PDIF(number 1, number 2) This calculates the percentage difference between values contained in two different cells The most common formula used outside of AS/2 would have been as follows: =IF(D3=0,"-",(B3-D3)/D3)

FIX #DIV ERROR

109608421.xls.ms_office

Page 24

A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 Account 1 Account 2 Account 3

B January 428 8,623 2,397 11,448

C February 2,004 9,176 2,951 14,131

D March 3,649 5,091 828 9,568

E April 1,237 902 42 2,181

F May 2,826 1,914 3,689 8,429

G June 3,354 8,156 5,388 16,898

H Total 13,498 33,862 15,295 #NAME?

XFOOT =XFOOT(H2:H6,B7:G7) Syntax XFOOT(range 1, range 2) This function is very useful to perform both the cross cast and the downwards cast of the totals. See error in example below Without XFOOT, just summing the downwards cast in the total column does not readily identify the formula problem that exist in the first row. January 428 8,623 2,397 11,448 February 2,004 9,176 2,951 14,131 March 3,649 5,091 828 9,568 April 1,237 902 42 2,181 May 2,826 1,914 3,689 8,429 June 3,354 8,156 5,388 16,898 Total 10,144 33,862 15,295 59,301

Account 1 Account 2 Account 3

Using XFOOT as below your attention is drawn to the fact that there is an error in one of the formula. January 428 8,623 2,397 11,448 February 2,004 9,176 2,951 14,131 March 3,649 5,091 828 9,568 April 1,237 902 42 2,181 May 2,826 1,914 3,689 8,429 June 3,354 8,156 5,388 16,898 Total 10,144 33,862 15,295 #NAME?

Account 1 Account 2 Account 3

XFOOT

AS/2 Shortcuts and some other general ones. Transfer in doc Alt + O +I Transfer out doc Alt + O + O Cut Ctrl + X Copy Ctrl + C Paste Ctrl + V Paste TB Link Ctrl + Alt + L Update TB links Ctrl + Alt + F9 View adjusting journal in leadsheet (how it looks in TB tools with the description) This will be handy for reviewing. Ctrl + Alt + A View reclassifying journal in leadsheet (how it looks in TB tools with the description) Ctrl + Alt + J Show desktop Windows key + D Open My Computer Windows key + E Lock computer Windows key + L Switch between applications Alt + Tab Switch between excel documents Ctrl + Tab Switch between excel tabs

Ctrl + page up or Ctrl + page down Get into cell F2 Rename AS/2 document F2 (in AS/2 window) Switch between word documents Ctrl + F6 Repeat last action performed (like fill cell with yellow colour) F4 Close any document and save Alt + F4 Backup window in AS/2 Alt + F + B Copy numeric reference Ctrl + Alt + U Paste numeric reference Ctrl + Alt + F Insert new document window in AS/2 Insert New section in AS/2 Alt + insert Find document in AS/2 window F3 Sign off as preparer Alt + Ctrl +P Sign off as review Alt + Ctrl +S Close audit file Alt + F + C Raise review note

Ctrl + Alt + W Close review note Ctrl + Alt + H Sign off in Map Ctrl + Alt + N Show tickmarck box Ctrl + Alt + T Copy text reference Ctrl + Alt + C Paste text reference Ctrl + Alt + R Create insight Ctrl + Alt + I Make Bold Ctrl + B Italic Ctrl + I Underline Ctrl + U Format cells menu Ctrl + 1 Undo Ctrl + Z Print Ctrl + P Insert column Alt + I + C Insert Row Alt + I + R Insert Cell Alt + I + E

Here are some TB Tools shorcuts for the more experienced guys
Calculate Now Clear Close Delete Account Insert Account Journal Set Journal Trail F9 DEL Recalculates the trial balance document. Clears the data from the highlighted area.

CTRL+F4 Exits the Trial Balance module. CTRL+DELDeletes the selected account. INS CTRL+J CTRL+T Inserts an account above the selected account. Opens the journal set for the selected journal column. Lists the journal entries included in the selected net journal. Prints to an Excel workpaper. Saves the data in the trial balance document. Find the account number that your looking for

Print to Workpaper CTRL+P Save Find CTRL+S CTRL+G

If you really want to be super fast you can also use these additional ones which I find to be very handy at times. ALT+TAB Switch to the next program. CTRL+F9 Minimize a workbook window to an icon. CTRL+F10 Maximize or restore the selected workbook window. PRTSCR Copy a picture of the screen to the Clipboard.

HOME Move to the beginning of the row. CTRL+HOME Move to the beginning of the worksheet.

PAGE DOWN Move down one screen. PAGE UP Move up one screen.

ALT+PAGE DOWN Move one screen to the right. ALT+PAGE UP Move one screen to the left CTRL + F Launch find function SHIFT+F4 Repeat the last Find action (same as Find Next). CTRL+SPACEBAR Select the entire column. SHIFT+SPACEBAR Select the entire row. CTRL+A Select the entire worksheet. CTRL+D Fill down. CTRL+R Fill to the right. CTRL+Z Undo the last action. CTRL+C Copy the selected cells. CTRL+X Cut the selected cells. CTRL+V Paste copied cells. DELETE Clear the contents of the selected cells. CTRL+HYPHEN Delete the selected cells.

CTRL+1 Display the Format Cells dialog box. CTRL+SHIFT+~ Apply the General number format. CTRL+SHIFT+$ Apply the Currency format with two decimal places (negative numbers in parentheses). CTRL+SHIFT+% Apply the Percentage format with no decimal places. CTRL+B Apply or remove bold formatting. CTRL+I Apply or remove italic formatting. CTRL+U Apply or remove underlining. CTRL+SHIFT+& Apply the outline border to the selected cells. CTRL+SHIFT+_ Remove the outline border from the selected cells. Sorry but I ran out of anymore usefull ones.

scription) This will be handy for reviewing.

ones which I find to be very handy at times.

mbers in parentheses).

Anda mungkin juga menyukai