Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Computer Applications for Finance

Attaullah Shah
October 3, 2023

Contents
1 Text Functions 1
1.1 CONCATENATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 INDIRECT() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 Double Click Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4 Fill Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.5 How to create series of alphabets . . . . . . . . . . . . . . . . . . . . . . . 3
1.6 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.6.1 LEFT, RIGHT, LEN . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.6.2 MID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.6.3 Text to Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.7 Convert formulas to Values . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.8 How to Get rid of data after a given characters . . . . . . . . . . . . . . . 3
1.9 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

2 Split Text 4
2.1 Split on a single character . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2 Split on a word . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

1 Text Functions
1. =SEARCH()
2. =FIND()
3. =LEFT()
4. =RIGHT()
5. =MID()
6. =LEN()
7. =CONACT()
8. =UPPER()
9. =LOWER()
10. =PROPER()

1
1.1 CONCATENATE
We can join text from two or three cells in one using the CONCATENATE() function.
Suppose we have text https://dps.psx.com.pk/company/ in cell A1 and OGDC
in B1, to merge them in C1, we shall type:

=CONCATENATE(A1, B1)

If we need to add space, add it within double quotes, like this

=CONCATENATE(A1," ", B1)

1.2 INDIRECT()
The INDIRECT() function converts text to cell reference. For example, if we wish to
get values for cell reference A100, we would type:

=INDIRECT("A100")

1.3 Double Click Rules


1. Double click works only if there are values in the left column
2. It stops filling the values if it finds empty value in the left column
3. It stops filling the values if it finds a values in the given column

1.4 Fill Series


Fill series are a group of methods that can fill:
• number
• even numbers
• odd numbers

• text pattern
• Days
• Months

• Multiples
We need to type at least two values in the pattern, then select and drag those two
values to fill the series.

2
1.5 How to create series of alphabets
It cannot be done directly. However, can create an ASCII series from 65 upt to 90 for
capital letters, and convert them to alphabets using the CHAR() option. So= CHAR(65)
will return the capital letter A, = CHAR(66) will return B, and so on.

1.6 Exercises
1.6.1 LEFT, RIGHT, LEN
Write in cell A1 ”The quick brown fox jumped over the lazy dog” and :
1. Extract all text after the word ’fox’.

2. Extract the text before the word ’fox’.

3. Extract only 5 letters after the word ’fox’.

1.6.2 MID
Write text in C1 ”Mangoes are very expensive in UK, they cost Rs 2000 per kg”:
1. Extract the digits from the above sentence.

1.6.3 Text to Columns


1. Convert the following text to columns

A|B|C|D

2. Also this

A|B|C|D;1|2|3|4;M|J|K|L;100|200|300|400

3. Remove spaces from the following

A |B |C |D

1.7 Convert formulas to Values


Copy values -¿ Paste special - ¿ Paste as values

1.8 How to Get rid of data after a given characters


Use Text -to- Column, using the given characters as delimiter

3
Sentence word
The quick brown fox jumped over the lazy dog fox
This man is a legend with Excel. with
You ought to be kidding . ought
Excel is not for kids, you have to be serious. kids

1.9 Exercises
1. Load the PSX data
2. Extract dates by targeting the word ’ENDED’

3. Extract dates for FROM


4. Extract dates for TO

2 Split Text
2.1 Split on a single character
1. Select the text

2. Data
3. Text to Column
4. Delimited
5. Choose your delimiter

2.2 Split on a word


How to split each sentence on the given word

1. Find the end position of the word using the =SEARCH()+LEN()


2. Find the full length of the sentence
3. Find remaining letters after the given word

4. Extract these letters using RIGHT() function


5. Find the number of letters before the given word using SEARCH(B2,A2)-1)
6. Extract these letters using LEFT() function

You might also like