ms excel Text Functions 3
-
Upload
vidit-vishnoi -
Category
Documents
-
view
240 -
download
0
description
Transcript of ms excel Text Functions 3
![Page 1: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/1.jpg)
TEXT FUNCTIONS
=CHAR(A1) Result: "v" =CHAR(A2) Result: "@" =CHAR(72) Result: "H" =CHAR(109) Result: "m"
![Page 2: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/2.jpg)
CLEAN FUNCTION
![Page 3: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/3.jpg)
CONCATENATE FXN
![Page 4: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/4.jpg)
EXACT FUNCTIONS
![Page 5: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/5.jpg)
FIND TEXT
![Page 6: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/6.jpg)
Fixed functions
![Page 7: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/7.jpg)
Left function
![Page 8: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/8.jpg)
EXAMPLE
• =LEFT(A1, 5) Result: "Alpha“• =LEFT(A2, 8) Result: "techonth" • =LEFT("Excel", 2) Result: "Ex" • =LEFT("Excel") Result: "E" • =LEFT("Excel", 25) Result: "Excel"
![Page 9: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/9.jpg)
Lower functions
![Page 10: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/10.jpg)
Replace function
• EG=REPLACE(A1, 1, 5, "Beta") Result: "Betabet Soup" =REPLACE(A2, 5, 2, "1234") Result: "tech1234thenet.com" =REPLACE("apples", 2, 5, "te") Result: "ate"
![Page 11: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/11.jpg)
Search function
![Page 12: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/12.jpg)
Example
• =SEARCH("BET", A1, 3) Result: 6 • =SEARCH("e", A2) Result: 2 • =SEARCH("e", A2, 1) Result: 2 • =SEARCH("e", A2, 3) Result: 9 • =SEARCH("in", A2, 6) Result: #VALUE!
=SEARCH("cel", "Excel", 1) Result: 3
![Page 13: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/13.jpg)
Substitute
![Page 14: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/14.jpg)
Example
• =SUBSTITUTE(A1, "bet", "con", 1) Result: "Alphacon soup"
• =SUBSTITUTE(A2, "t", "4", 2) Result: "techon4henet.com"
• =SUBSTITUTE(A2, "t", "4") Result: "4echon4hene4.com“
![Page 15: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/15.jpg)
Trim function
![Page 16: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/16.jpg)
Example
• =TRIM(A1) Result: "Tech on the Net" =TRIM(A2) Result: "1234"
• =TRIM(A3) Result: "alphabet soup" • =TRIM(A4) Result: "www.techonthenet.com"
=TRIM(" apples ") Result: "apples"
![Page 17: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/17.jpg)
Logical functions
![Page 18: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/18.jpg)
Example
• =AND(A1>10, A1<40) Result: TRUE
• =AND(A1=30,A2="www.checkyourmath.com") Result: FALSE =AND(A1>=5, A1<=30,
• =AND(A1>=5, A1<=30,A2="www.techonthenet.com") Result: TRUE
![Page 19: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/19.jpg)
IF Function
![Page 20: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/20.jpg)
Example
• =IF(A1>10, "Larger", "Smaller") Result: "Larger"
• =IF(A1=20, "Equal", "Not Equal") Result: "Not Equal"
• =IF(A2="Tech on the Net", 12, 0) Result: 12
![Page 21: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/21.jpg)
Or function
![Page 22: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/22.jpg)
example
• =OR(A1<10, A1=40) Result: FALSE
• =OR(A1=30, A2="Microsoft") Result: TRUE
• =OR(A1>=5, A1=20, A2="techonthenet.com") Result: TRUE
![Page 23: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/23.jpg)
Not function
![Page 24: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/24.jpg)
Example
• =NOT(A2="techonthenet.com") Result: FALSE • =NOT(TRUE) Result: FALSE =NOT(FALSE) Result: TRUE
• =NOT(A1<10) Result: FALSE • =NOT(A2="Microsoft") Result: TRUE • =NOT(5+1=7) Result: TRUE
![Page 25: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/25.jpg)
Bin2dec
![Page 26: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/26.jpg)
Bin2hex
![Page 27: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/27.jpg)
Examples
• =BIN2HEX(A1) Result: 3B • =BIN2HEX(111011) Result: 3B =BIN2HEX(A2) Result: 14
• =BIN2HEX(10100) Result: 14 • =BIN2HEX(111111) Result: 3F • =BIN2HEX(111111, 4) Result: 003F • =BIN2HEX(111111, 5) Result: 0003F
![Page 28: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/28.jpg)
Statistical functions
![Page 29: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/29.jpg)
Rank function-syntax
• The Microsoft Excel RANK function returns the rank of a number within a set of numbers.
• RANK( number, array, [order] )• Number- The number to find the rank for. • array -A range or array of numbers to use for
ranking purposes. • order -Optional. It specifies how to rank the
numbers.
![Page 30: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/30.jpg)
Example
![Page 31: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/31.jpg)
Example• =RANK(A4, A2:A6, 1) Result: 5 • =RANK(A4, A2:A6, 0) Result: 1 • =RANK(A3, A2:A6, 0) Result: 4• Note• If order is 0, the numbers are ranked in
descending order.• If order is not 0, the numbers are ranked in
ascending order.• If the order parameter is omitted, it assumes
order is 0 (descending order).
![Page 32: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/32.jpg)
Large function
• The Microsoft Excel LARGE function returns the nth largest value from a set of values.
• Syntax-LARGE( array, nth_position )• array A range or array from which you want to
return the nth largest value. • nth_position The position from the largest to
return.
![Page 33: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/33.jpg)
Example
![Page 34: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/34.jpg)
Example• =LARGE(A1:A5, 1) Result: 32 • =LARGE(A1:A5, 2) Result: 8• =LARGE(A1:A5, 3) Result: 5.7 • =LARGE(A1:A5, 4) Result: 4 • =LARGE(A1:A5, 5) Result: -2.3• Note• If nth_position is larger than the number of values in array, the LARGE function will return the #NUM! error.
• If array is empty, the LARGE function will return the #NUM! error.
![Page 35: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/35.jpg)
count• The Microsoft Excel COUNT function counts the number of cells that
contain numbers as well as the number of arguments that contain numbers.
• Syntax-COUNT( argument1, [argument2, ... argument_n] )
• argument1, argument2, ... argument_n Either ranges of cells or values. There can be up to 30 arguments.
![Page 36: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/36.jpg)
Example
![Page 37: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/37.jpg)
Example
• =COUNT(A1:A6) Result: 3 • =COUNT(A1:A6, 129) Result: 4
![Page 38: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/38.jpg)
Countif
• The Microsoft Excel COUNTIF function counts the number of cells in a range, that meets a given criteria.
• Syntax-COUNTIF( range, criteria )• range The range of cells that you want to
count based on the criteria.• criteria determine which cells to count.
![Page 39: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/39.jpg)
Example
![Page 40: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/40.jpg)
Example
• =COUNTIF(A2:A7, D2) Result: 1 • =COUNTIF(A:A, D2) Result: 1 • =COUNTIF(A2:A7, ">=2001") Result: 4
![Page 41: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/41.jpg)
Average function
• The Microsoft Excel AVERAGE function returns the average (arithmetic mean) of the numbers provided.
• Syntax-AVERAGE( number1, [number2], ... [number_n] )
• number1, number2, ... number_n -Numeric values that can be numbers, named ranges, arrays, or references to numbers. There can be up to 30 values entered.
![Page 42: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/42.jpg)
Example
![Page 43: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/43.jpg)
Example
• =AVERAGE(B2, B3) Result: 8.85 • =AVERAGE(B3, B5, 45) Result: 19.2
=AVERAGE(B2:B6) Result: 46.24
![Page 44: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/44.jpg)
Sumif• The SUMIF function is a worksheet function that adds all numbers
in a range of cells based on one criteria (for example, is equal to 2000).
• SUMIF( range, criteria, [sum_range] )• range The range of cells that you want to apply
the criteria against.• criteria determine which cells to add.• sum_range Optional. It is the range of cells to
sum together. If this parameter is omitted, it uses range as the sum_range.
![Page 45: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/45.jpg)
Example
![Page 46: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/46.jpg)
Example• =SUMIF(A2:A6, D2, C2:C6) Result: 218.6 'Criteria
is the value in cell D2 • =SUMIF(A:A, D2, C:C) Result: 218.6 'Criteria
applies to all of column A (ie: A:A) • =SUMIF(A2:A6, 2003, C2:C6) Result: 7.2 'Criteria
is the number 2003 • =SUMIF(A2:A6, ">=2001", C2:C6) Result: 12.6
'Criteria is greater than or equal to 2001 =SUMIF(C2:C6, "<100") Result: 31.2 'Adds values in C2:C6 that are less than 100 (3rd parameter is omitted)
![Page 47: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/47.jpg)
Countif and countifs Example-1
![Page 48: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/48.jpg)
Example 2. Counting numbers with multiple criteria (AND logic)
• Syntax-=COUNTIFS(B2:B11,">0", D2:D11,">0")
![Page 49: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/49.jpg)
Example-3-COUNTIFS for text values
=COUNTIFS(B2:B7,"=P",C2:C7,"=P",D2:D7,"=P",E2:E7,"=P")
![Page 50: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/50.jpg)
Example-4
=COUNTIFS(B3:E3,"=P") =COUNTIF(B3:E3,"=P")
![Page 51: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/51.jpg)
Date and Time function• The Microsoft Excel DATE function returns the serial
number of a date.• Syntax-DATE( year, month, day )• year -A number that is between one and four digits.• month -A number representing the month value. If the
month value is greater than 12, it adds that number of months to the first month of the year specified in the year parameter.
• day -A number representing the day value. If the day value is greater than the number of days in the month specified, it adds that number of days to the first day in the month specified in the month parameter.
![Page 52: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/52.jpg)
Note
• Note• If the year is between 0 and 1899, the year
value is added to 1900 to determine the year.• If the year is between 1900 and 9999, the
DATE function uses the year value as the year.• If the year is greater than 9999, the DATE
function will return the #NUM! error.
![Page 53: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/53.jpg)
Example
![Page 54: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/54.jpg)
Example
• =DATE(A1,A2,A3) Result: 'Aug 31, 2012' =DATE(2012,8,31) Result: 'Aug 31, 2012' =DATE(2009,11,30) Result: 'Nov 30, 2009' =DATE(2009,11,31) Result: 'Dec 1, 2009' =DATE(2009,11,32) Result: 'Dec 2, 2009'
![Page 55: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/55.jpg)
Day function
• DAY function returns the day of the month (a number from 1 to 31) given a date value.
• Syntax=DAY( date_value )• date_value A valid date to return the day of
the month.
![Page 56: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/56.jpg)
Example
![Page 57: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/57.jpg)
Example
• =DAY(A1) Result: 1 • =DAY(A2) Result: 31 • =DAY(A3) Result: 15 • =DAY("12/31/2011") Result: 31
![Page 58: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/58.jpg)
Hour-function
• HOUR function returns the hour of a time value (from 0 to 23)
• Syntax-Hour( serial_number )• serial_number The time value to extract the
hour from. It may be expressed as a string value, a decimal number, or the result of a formula.
![Page 59: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/59.jpg)
Example
![Page 60: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/60.jpg)
Example
• =HOUR(A1) Result: 13 • =HOUR("4:30:00 AM") Result: 4
=HOUR("4:30:00 PM") Result: 16
![Page 61: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/61.jpg)
Minute Function
• MINUTE function returns the minute of a time value (from 0 to 59).
• MINUTE( serial_number )• serial_number The time value to extract the
minute from. It may be expressed as a string value, a decimal number, or the result of a formula.
![Page 62: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/62.jpg)
Example
![Page 63: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/63.jpg)
Example
• =MINUTE(A1) Result: 14• =MINUTE("4:00:00 AM") Result: 0
=MINUTE("4:30:00 AM") Result: 30
![Page 64: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/64.jpg)
Month
• MONTH function -returns the month (a number from 1 to 12) given a date value.
![Page 65: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/65.jpg)
Example
• =MONTH(B2) Result: 9 • =MONTH(B3) Result: 8 • =MONTH(B4) Result: 4
=MONTH("12/31/2011") Result: 12
![Page 66: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/66.jpg)
Now
• NOW function returns the current system date and time. The NOW function will refresh the date/time value whenever the worksheet recalculates.
• Syntax-NOW()• Parameters or Arguments• There are no parameters or arguments for the
NOW function.
![Page 67: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/67.jpg)
Example
![Page 68: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/68.jpg)
Today
• TODAY function returns the current system date. This function will refresh the date whenever the worksheet recalculates.
• Syntax-TODAY()
![Page 69: ms excel Text Functions 3](https://reader034.fdocuments.net/reader034/viewer/2022050913/56d6bd121a28ab30168c84bc/html5/thumbnails/69.jpg)