Text Formulas

download Text Formulas

of 18

Transcript of Text Formulas

  • 8/8/2019 Text Formulas

    1/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth level

    Topic :- Text Formulas (Ms-Excel)

    Mr. Nilesh DinkarComputer

    DepartmentDhruv Academ

  • 8/8/2019 Text Formulas

    2/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth level

    Changecase

    Change the case of

    textLet's say you want to convert text from uppercaseto lowercase or from lowercase to proper case tomake it more readable. To change the case of text,use the UPPER, LOWER, or PROPER functions

    A2

    Namenancy Davolio

    Formula Description (Result)

    =UPPER(A2)

    Changes text to all

    UPPERCASE(NANCY DAVOLIO)

    =LOWER(A2)Changes text to alllowercase (nancy

    davolio)

    Check Cell

    MatchText 1

    Match

    Text 2

    ConnectStrings

    Remove

    Spaces

    Count

    Use ofText()

  • 8/8/2019 Text Formulas

    3/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth level

    Check if a cell has anytext in it

    CONTINUE

    To do this task, use the ISTEXTfunction.

    Example

    A

    1 Data2 Davolio

    3 123

    Formula Description

    =ISTEXT(A2)Checks to see if cellA2 has text (TRUE)

    =ISTEXT(A3)Checks to see if cellA3 has text (FALSE)

    Changecase

    Check Cell

    MatchText 1

    Match

    Text 2ConnectStrings

    RemoveSpaces

    Count

    Use ofText()

    http://opt/scribd/conversion/tmp/scratch2410/slide4.xmlhttp://opt/scribd/conversion/tmp/scratch2410/slide4.xml
  • 8/8/2019 Text Formulas

    4/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth level

    Check if a cellmatches specific

    textTo do this task, use the IF function. The IF functionreturns results that you specify based on a condition

    A

    Data

    1 Computer

    2 comp Description

    =IF(A2=Computer","OK", "Not

    OK")

    Checks to see if A2 is

    Computer (OK)

    =IF(A2=comp", TRUE,FALSE)

    Checks to see if A2 is comp(FALSE)

    Changecase

    Check Cell

    MatchText 1

    Match

    Text 2ConnectStrings

    RemoveSpaces

    Count

    Use ofText()

  • 8/8/2019 Text Formulas

    5/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth level

    Check if part of a cellmatches specific text

    To do this task, use the IF, SEARCH andISNUMBER functions.

    EXAMPLE :-A B

    1 Data2 Davolio

    3 BD123

    Formula Description (Result)

    =IF(ISNUMBER(SEARCH("v",A2

    )),"OK", "Not OK")

    Checks to see if A2 contain the

    letter v (OK)=ISNUMBER(SEARCH("BD",A3))

    Checks to see if A3 contains BD(TRUE)

    Changecase

    Check Cell

    MatchText 1

    MatchText 2

    ConnectStrings

    Remove

    Spaces

    Count

    Use ofText()

  • 8/8/2019 Text Formulas

    6/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth levelLet's say you want to create a single Full Name column by

    combining two other columns, First Name and Last Name. Tocombine first and last names, use the CONCATENATEfunction or the ampersand (&) operator.

    Example

    Connect the strings.

    A B

    1 First Name Last Name

    2 Nancy Davolio

    3 Andrew Fuller

    Formula Description (Result)

    =A2&" "&B2 Combines the names above,separated by a space (NancyDavolio)

    =B3&", "&A3Combines the names above,separated by a comma (Fuller,Andrew)

    =CONCATENATE(A2," ",B2)

    Combines the names above,

    separated by a space (NancyDavolio)

    Changecase

    Check Cell

    MatchText 1

    Match

    Text 2ConnectStrings

    RemoveSpaces

    Count

    Use ofText()

  • 8/8/2019 Text Formulas

    7/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth levelIn Excel, the Text function returns a valueconverted to text with a specified format.

    The syntax for the Text function is:

    =Text( value, format )

    value is the value to convert to text.format is the format to display the results in.

    TEXT FUNCTIONChangecase

    Check Cell

    MatchText 1

    Match

    Text 2ConnectStrings

    RemoveSpaces

    Count

    Use ofText()

    CONTINUE

    http://opt/scribd/conversion/tmp/scratch2410/slide9.xmlhttp://opt/scribd/conversion/tmp/scratch2410/slide9.xml
  • 8/8/2019 Text Formulas

    8/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth level

    Convert dates to the textfor the day of the week.

    A

    Date

    19-Feb-2010

    3-Jan-2010

    Formula Description (Result)

    =TEXT(A2, "dddd")

    Calculates the day of theweek for the date and returnsthe full name of the day ofthe week (Friday)

    =TEXT(A3, "ddd")

    Calculates the day of theweek for the date and returnsthe abbreviated name of theday of the week (Sun)

    Changecase

    Check Cell

    MatchText 1

    Match

    Text 2ConnectStrings

    RemoveSpaces

    Count

    Use ofText()

  • 8/8/2019 Text Formulas

    9/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth level

    Uses of Text ( )

    Based on the Excelspreadsheet above:

    =Text(A1, "$#,##0.00") would return "$7,678.87"

    =Text(A1, "0") would return "7679"

    =Text(A2, "0.0") would return "123.7"

    =Text(1277, "#,##0") would return "1,277"

    =Text(C1, "yyyy/mm/dd") would return "2003/12/31"

    =Text(C1, "mmm dd, yyyy") would return "Dec 31, 2003"

    Changecase

    Check Cell

    MatchText 1

    Match

    Text 2ConnectStrings

    RemoveSpaces

    Count

    Use ofText()

  • 8/8/2019 Text Formulas

    10/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth levelIn Excel, the Trim function returns a text valuewith the leading and trailing spaces removed.The syntax for the Trim function is:

    =Trim( text )text is the text value to remove the leading andtrailing spaces from.

    Trim FunctionChangecase

    Check Cell

    MatchText 1

    Match

    Text 2ConnectStrings

    RemoveSpaces

    Count

    Use ofText()

  • 8/8/2019 Text Formulas

    11/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth level

    Count how often a singlevalue occurs by using a

    function Use the COUNTIF function to perform thistask

    This function counts the number of cellswithin a range that meet a single criterionthat you specify.

    A B

    Salesperson Invoice

    Buchanan 15,000Buchanan 9,000

    Suyama 8,000

    Formula Description (Result)

    =COUNTIF(A2:A7,"Buchanan")

    Number of entries forBuchanan

    =COUNTIF(A2:A7,A4

    )

    Number of entries for

    Suyama

    Changecase

    Check Cell

    MatchText 1

    Match

    Text 2ConnectStrings

    RemoveSpaces

    Count

    Use ofText()

  • 8/8/2019 Text Formulas

    12/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth level

    - HELP -ISTEXT( )ISNUMBE

    R( )IF( )

    SEARCH( )

    TRIM( )

    COUNT( )

    v One of Excel's most useful features is that it

    allows users to create custom formulas to

    perform calculations on their data.

    v Excel also contains built-in formulas called

    functions that make it easy to perform common

    calculations on data.

    v Here you will find step by step tutorials and tips

    on how to use formulas and the common and

    less common functions available in Excel.

  • 8/8/2019 Text Formulas

    13/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth level

    ISTEXT( ) - HELP -

    Example :-

    =ISTEXT("abc") TRUE=ISTEXT(1000") TRUE

    =ISTEXT(100) FALSE

    What Excel's ISTEXT function does?

    The ISTEXT formula checks whether a value entered is textor not. If the formula validates a value as text, ISTEXTreturns "TRUE." If not, it returns a value of "FALSE.

    Syntax:-

    =ISTEXT(value)

    ISNUMBE

    R( )IF( )

    SEARCH( )

    TRIM( )

    COUNT( )

    BACK

  • 8/8/2019 Text Formulas

    14/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth level

    - HELP -

    In Excel, the If function returns one value if aspecified condition evaluates to TRUE, or anothervalue if it evaluates to FALSE.

    The syntax for the Iffunction is:

    If( condition, value_if_true, value_if_false )

    For Example :-

    =If(A1>10, "Larger", "Smaller")=If(A1=20, "Equal", "Not Equal")

    ISTEXT( )

    ISNUMBE

    R( )IF( )

    SEARCH( )

    TRIM( )

    COUNT( )

    BACK

    li k di l

  • 8/8/2019 Text Formulas

    15/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth level

    - HELP -

    Example :-

    =ISNUMBER ("abc") TRUE=ISNUMBER (1000") TRUE

    =ISNUMBER (100) FALSE

    What Excel's ISNUMBER function does?

    The ISNUMBER formula checks whether a value entered isnumber or not. If the formula validates a value as number,ISNUMBER returns "TRUE." If not, it returns a value of"FALSE.

    Syntax:-

    =ISNUMBER(value)

    ISTEXT( )

    ISNUMBE

    R( )IF( )

    SEARCH( )

    TRIM( )

    COUNT( )

    BACK

    Cli k di M l

  • 8/8/2019 Text Formulas

    16/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth level

    - HELP -What Excel's SEARCH function does?

    In Excel, the Search function returns the location ofa substring in a string.

    The search is NOT case-sensitive.

    Syntax:-

    =Search( text1, text2, start_position )

    text1 is the substring to search for in text2.text2 is the string to search.

    start_position is the position in text2 where thesearch will start.

    The first position is 1.If the Search function does not find a match, it will return a

    #VALUE! error.

    ISTEXT( )

    ISNUMBE

    R( )IF( )

    SEARCH( )

    TRIM( )

    COUNT( )

    BACK

    Cli k di M l

  • 8/8/2019 Text Formulas

    17/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth level

    - HELP -ISTEXT( )ISNUMBE

    R( )IF( )

    SEARCH( )

    TRIM( )

    COUNT( )

    BACK

    Cli k di M l

  • 8/8/2019 Text Formulas

    18/18

    Click to edit Master text stylesSecond level Third level Fourth level

    Fifth level

    - HELP -ISTEXT( )ISNUMBE

    R( )IF( )

    SEARCH( )

    TRIM( )

    COUNT( )

    BACK