Wednesday, 30 September 2015

2.1. LOOKUP & REFERENCE - VLOOKUP PART 2

Hello Excel-lent,

Happy 55th Independence!

We started off with VLOOKUP during our last session but today, we will discuss about the VLOOKUP's COUSINS and they are HLOOUP, MATCH, INDEX and CHOOSE. I so much like these guys because they work as a team and always compliment each other.  VLOOKUP is restricted to leftmost columns but MATCH, INDEX and CHOOSE help VLOOKUP to search for data both ways....

VLookup

The VLOOKUP (Vertical lookup) function looks for a value in the leftmost column of a table, and then returns a value in the same row from another column you specify.
1. Insert the VLOOKUP function shown below.
VLookup Function in Excel

Explanation: the VLOOKUP function looks for the ID (104) in the leftmost column of the range $E$4:$G$7 and returns the value in the same row from the third column (third argument is set to 3). The fourth argument is set to FALSE to return an exact match or a #N/A error if not found.
2. Drag the VLOOKUP function in cell B2 down to cell B11.
Copy Vlookup Function
Note: when we drag the VLOOKUP function down, the absolute reference ($E$4:$G$7) stays the same, while the relative reference (A2) changes to A3, A4, A5, etc.

HLookup

In a similar way, you can use the HLOOKUP (Horizontal lookup) function.
HLookup Function

Match

The MATCH function returns the position of a value in a given range.
Match Function
Note: Yellow found at position 3 in the range E4:E7. The third argument is optional. Set this argument to 0 to return the position of the value that is exactly equal to lookup_value (A2) or a #N/A error if not found.

Index

The INDEX function returns a specific value in a two-dimensional or one-dimensional range.
Index Function, Two-dimensional Range
Note: 92 found at the intersection of row 3 and column 2 in the range E4:F7.
Index Function, One-dimensional Range
Note: 97 found at position 3 in the range E4:E7.

Choose

The CHOOSE function returns a value from a list of values, based on a position number.
Choose Function

Most people are familiar with One-column VLOOKUP but in our next class, we will discuss on how you can do a two-column VLOOKUP. Don't miss it!
Wishing you a happy 55th Independence celebration.
Excel-lently yours,
Oladapo Sorinola
07014282477, 07062932708
BB Pin 52E9802D

Tuesday, 22 September 2015

2.1 Using Functions- LOOKUP & REFERENCE-VLOOKUP

Hello Excel-lent,

Let us start our session today with the VLOOKUP Function, basically because it is the most used of the lookup and Reference functions.

How the VLOOKUP Function Works
Excel's VLOOKUP function, which stands for "vertical lookup", can be used to look up specific information located in a table of data or database. VLOOKUP normally returns a single field of data as its output. How it does this is:

You provide a name or Lookup _value that tells VLOOKUP in which row or record of the data table to look for the desired information. You supply the column number - known as the Col_index_num - of the data you seek.

The function looks for the Lookup _value in the first column of the data table VLOOKUP then locates and returns the information you seek from another field of the same record using the supplied column number.

The VLOOKUP Function's Syntax and Arguments
A function's syntax refers to the layout of the function and includes the function's name, brackets, and arguments.

The syntax for the VLOOKUP function is:

= VLOOKUP (lookup_value, Table_array, Col_index_num, Range_lookup)

Lookup _value - (required) the value you want to find in the first column of the Table_array

Table_array - (required) this is the table of data that VLOOKUP searches to find the information you are after
- The Table_array must contain at least two columns of data
- The first column normally contains the lookup_value

Col_index_num - (required) the column number of the value you want found
- The numbering begins with the Lookup_value column as column 1
- If Col_index_num is set to a number greater than the number of columns selected in the range argument a #REF! error is returned by the function

Range_lookup - (optional) indicates whether or not the range is sorted in ascending order
- The data in the first column is used as the sort key
- A Boolean value - TRUE or FALSE are the only acceptable values
- If omitted, the value is set to TRUE by default
- If set to TRUE or omitted and an exact match for the Lookup _value is not found, the nearest match that is smaller in size or value is used as the search_key
- If set to TRUE or omitted and the first column of the range is not sorted in ascending order, an incorrect result might occur
- If set to FALSE, VLOOKUP only accepts an exact match for the Lookup _value

Let us discuss the diagram below. 



The table in the diagram above represents a company's employee database which shows employees Last Name, First Name, Department, Telephone Extension and Date Hired.

Given the Last Name only, you are required to find a staff's First Name, Department, Extension and Date Hired. Though Control + F button can help you locate one field at a time for less than 5 staffs conveniently but when you have a database of over 2,000 staffs, you are better off VLOOKUP.


Don't miss out on the sessions, Join Excelgist today to receive excel discussions straight in your mail box and do share this post with your colleagues.

Excel with Excel!

Excel-lently yours,
Oladapo Sorinola
07014282477, 07062932708
BB Pin 52E9802D

Monday, 21 September 2015

2. Using Functions- LOOKUP & REFERENCE

Hello Excel-lent,

Today's traffic is what Prof. Wole Soyinka would call "mysterious millipede, moving towards a wailing wake-keep". Unfortunately, I cannot help you resolve these traffic issues within the metropolis but here I am to help you with the mostly used formulas in your everyday use of Microsoft Excel.

Someone recently asked in the Financial and Modelling group in Linkedin that " what function(s) of Excel do you use most?" and one word kept winning the day- VLOOKUP! 

In my years of excel experience as a data analyst, there is no way you can excuse yourself of the function "VLOOKUP" but you can garnish your data more and slice them deep and quicker with the introduction of other flavours like HLOOKUP, MATCH, INDEX, ROWS, COLUMNS, INDIRECT etc.

First, let us get to understand what each of these functions does.

ADDRESS      -    Returns a reference as text to a single cell in a worksheet
AREAS              -    Returns the number of areas in a reference
COLUMN      -    Returns the column number of a reference
COLUMNS      -    Returns the number of columns in a reference
HLOOKUP      -    Searches for a value in the top column of a table and then returns a value in the same                                     column from a row you specify in the table
HYPERLINK      -   Creates a shortcut that opens a document on your hard drive, a server, or the Internet
INDIRECT      -   Returns a reference indicated by a text value
MATCH              -   Returns the relative position of an item in an array
OFFSET              -   Returns a reference offset from a given reference
ROWS              -   Returns the number of rows in a reference
RTD                      -   Returns real-time data from a program that supports COM automation
GETPIVOTDATA -   Returns data stored in a PivotTable
CHOOSE       -   Chooses a value from a list of values
INDEX               -   Uses an index to choose a value from a reference or array
LOOKUP       -   Returns a value either from a one-row or one-column range or from an array
ROW               -   Returns the row number of a reference
TRANSPOSE      -    Returns the transpose of an array
VLOOKUP      -   Searches for a value in the leftmost column of a table and then returns a value in the                                       same row from a column you specify in the table

Interestingly, I use a combo of INDEX and MATCH to do the trick when I need to lookup towards the right which VLOOKUP cannot achieve.

Join me tomorrow as we begin to slice and dice your data with hundreds of Excel formulas and functions.

Join Excelgist today to receive excel discussions straight in your mail box and do share this post with your colleagues.

Excel with Excel!

Excel-lently yours,
Oladapo Sorinola
07014282477, 07062932708
BB Pin 52E9802D



Wednesday, 9 September 2015

7 Best new features in Excel 2013.


Hello Awesome,

Today is a special day, it is the 9th day of September, 2015. Special because you and I are alive to witness it. All praise be to God. 
Whilst using the 2013 version of the Excel spreadsheet, I have come to appreciate the additional features that makes it more user friendly and time saving. A quick example is the Power View, Sparklines, Slicer and Timeline functions shown below. As a data analyst, they make my day all the time. 

 
Almost everyone will find something to appreciate in Excel 2013. It's more functional and easy to use. Everyone's going to love Flash Fill. Experienced number crunchers will appreciate the new data model feature. Inexperienced users forced to get more out of the application than their experience really supports will appreciate Recommended Charts, Recommended PivotTables, and Quick Analysis. The emphasis seems to be on easy access to features that were, prior to 2013, a bit harder to implement. These are the 7 new features that I think will benefits most users.

1. Flash Fill

Perhaps the closest thing to magic Excel users will ever see in a workbook is Flash Fill. This feature anticipates formatting and data requirements by recognizing patterns so it can finish what you start. Figure A shows a typical use for Flash Fill. First, I transposed a record's name value into last name, first name order. While doing the same for the second record, Flash Fill recognized a pattern and suggested possible entries to complete the column. When Flash Fill displays this list, you have two choices: Press Enter to complete the list or press [Esc] to remove it. 
Flash Fill can complete this list for you (Figure A): 


Excel_New_Ftrs.FigA.png

2. Recommended Charts

Most users don't always know the best chart type for their data. Recommended Charts takes the guesswork out of the process. Simply click inside the data you want to chart, click the Insert tab, and click Recommended Charts to see a collection of suggested chart types, as shown in Figure B. Then, click a thumbnail to preview your data as that chart type. Double-click a thumbnail to embed the chart. Using this feature lets you work with confidence knowing the chart will highlight your data in a meaningful way.


Excel_New_Ftrs.FigB.jpg

3: Recommended PivotTables

This feature works similar to Recommended Charts, but generates a quick PivotTable. It's a great new feature for most users, because so many of us struggle with PivotTables. Click inside the data range (which must have header cells) and click the Insert tab. In the Tables group, click Recommended PivotTables to display the dialog shown in Figure C. Select a thumbnail and click OK to embed an effective PivotTable in a new sheet.


Excel_New_Ftrs.FigC.jpg

PivotTables are a simple as a few clicks and a choice—no more struggling with field lists and table frames!

4: Quick Analysis

Use Quick Analysis to quickly preview your data in meaningful ways. For instance, Quick Analysis offers a second new way to generate appropriate charting for your data. Select the data and then click the Quick Analysis icon at the bottom-right, as shown in Figure D. Click the Charts tab to view the suggested chart types. If you don't see this icon, check your settings:
  1. Click the File tab and choose Options from the left pane.
  2. Choose General in the left pane (the default).
  3. In the User Interface Options section, the Show Quick Analysis Options On Selection option should be checked. Enabled is the default, so you should see this icon unless someone has changed this setting.
  4. Click OK.


Excel_New_Ftrs.FigD.jpg

Let Excel choose the most appropriate chart type!

5: Timelines

A timeline lets you filter records in a PivotTable—it works similar to a slicer, but you'll filter by dates. For instance, Figure E shows a PivotTable and timeline. (I used the same data range used in #3.) Once you have a PivotTable arranged, adding the timeline is simple:
  1. With the PivotTable selected, click the contextual Analyze tab.
  2. In the Filter group, click Insert Timeline.
  3. In the resulting dialog, check the date field (in this case, that's Date) and click OK. Excel will embed the timeline alongside the PivotTable.


Excel_New_Ftrs.FigE.jpg

Use the new Timeline with a PivotTable, it is just interesting!
To use the timeline, just drag the scroll bar or click a tile to further filter personnel totals by specific months. In the upper-right corner, you can change to years, quarters, months, and days. To clear the timeline filter, click the Clear button in the upper-right corner.

6: Data Model and Relationships

Excel 2013's new integrated data model support is well beyond a simple recommendation tip like this. You'll want to study and familiarize yourself with all of the possibilities:
  • Create PivotTables based on multiple tables.
  • Create one-to-one and one-to many relations between tables.
  • Easily connect to OData, Windows Azure DataMarket, and SharePoint.
  • Drill down to detail levels in a PivotTable or PivotChart.
  • Drill up for a high-end view.

7: New functions

Users often overlook new functions in a new version. This time around, you'll want to pay attention, as 2013 has several new functions that even casual users will want to know about. For a complete list, read New functions in Excel 2013. My favorite is DAYS(), which returns the number of days between two dates. The simple expression End Date – StartDate will return the same results, but having a short function is self-documenting, handier and simple.

Which 2013 excel feature(s) do you love most? Kindly share your experience using the comment space. 


To learn more about how excel can help you at your work place, join now to subscribe for daily excel tips or call me on 07014282477, 07062932708.



Sorinola Oladapo
BB Pin 52E9802D

Friday, 4 September 2015

Quick weekend Poll

Hello Excel-lent,




Time for a quick weekend poll. What is your favorite tool for data analysis?


1. Formulas
2. Pivot Tables
3. Or both



Post your choice in the comments. Also mention the number of years Excel experience you have.




For ex, my answer is: Both (10 years)

Monday, 31 August 2015

Your September Secret gift....

Hello Excel-lent,

I am glad to welcome you to September, how time flies!

I read Pastor Jimi Tewe's BB broadcast today on "DO IT BIG!" and he mentioned that "by this time tomorrow, we will have only 4 months left in 2015 and although you have done many things and accomplished a number of your goals, there is one thing you are yet to do..."

"When 2015 started, didn't you say to yourself that your accomplishment this year will be mind-blowing? So, apart from you, whose mind has been "blown?"

"Friend, it's time to do it BIG! If you are in Abuja next week Saturday (Sept 12) by 10am, join him as he holds his BIGGEST event in Abuja at (NAF Conference Centre) and it is absolutely free. To register, click this link;


What really touched me about his broadcast was when he asked "apart from you, whose mind has been blown?" I asked myself this same question over and over again and really wanted to know if I had in any way "blown" your mind through "Excelgist"?

I have no intent of "blowing" your mind, but at Excelgist blog, I have one goal, "to make you awesome in Excel and charting" but if you have your mind blown up in the process, then you're are simply excel-lent!

My secret gift for you this September is to learn how to un-protect a locked excel worksheet or workbook. I call it a secret gift because it opens up what's been hidden for you to see!

Do you have a protected Excel worksheet that you want to have full access to? Simply upload this worksheet to Google Spreadsheets using the url;


After uploading, open the worksheet and download it using the File menu and check through the locked cells and columns....I hope this revelation blows your mind!

Welcome to September!

Excel-lently yours,

Oladapo Sorinola
07014282477, 07062932708
BB Pin 52E9802D




Thursday, 27 August 2015

1.5 -Working with the order of operations- "BODMAS"

Hello Excel-lent,

This topic brings back good old memories of our primary/elementary days in school when we were taught "Arithmetic" and a resounding "State and capital".... "Wow, things have changed!

Reciting through the "Times Table" was something I never liked then because of the long "Metric Arithmetical Tables"  that was more of a song....100 metre makes 1 kilometer, 365 days make 1 year, 366 days make 1 leap year and off course the long 2 times 1 two, 2 time 2 four, 2 time 3 six. I liked the State and capital more because of its rhythmic sequence, Sokoto- Sokoto, Ogun-Abeokuta, Niger-Minna, Plateau-Jos!....but today i am glad i did sang those songs using the book below in illustration 1. 

I almost forgot this- 30 days has September, April, June and November...

Illustration 1.

















Picture source: http://www.nairaland.com/389532/u-did-not-use-exercise

Moving to higher classes, we were then exposed to one of the mathematical rules that turned on my hatred for "Quantitative Aptitude", why because I failed like no man's business and not until i learnt the simple rules behind BODMAS that i began to pass with good grades. 

BODMAS is the simple rule guiding the order of mathematical operations and the simple truth why you get some mathematical calculations wrong is because you flaw this rule. Now, let's go back to class as I still remember how the blackboard of St. Bernadette's Primary School, Abeokuta looks like

"Operations" mean things like add, subtract, multiply, divide, squaring, etc. If it isn't a number it is probably an operation.
But, when you see something like...
7 + (6 × 52 + 3)
... what part should you calculate first?

Start at the left and go to the right?
Or go from right to left?
Calculate them in the wrong order, and you will get a wrong answer !
So, long ago people agreed to follow rules when doing calculations, and they are:

Order of Operations

Do things in Brackets First. Example:
yes 6 × (5 + 3)=6 × 8=
48
 
no 6 × (5 + 3)=30 + 3=
33
(wrong)
Exponents (Powers, Roots) before Multiply, Divide, Add or Subtract. Example:
yes 5 × 22=5 × 4=
20
 
no 5 × 22=102=
100
(wrong)
Multiply or Divide before you Add or Subtract. Example:
yes 2 + 5 × 3=2 + 15=
17
 
no 2 + 5 × 3=7 × 3=
21
(wrong)
Otherwise just go left to right. Example:
yes 30 ÷ 5 × 3=6 × 3=
18
 
no 30 ÷ 5 × 3=30 ÷ 15=
2
(wrong)

How Do I Remember It All ... ? BODMAS !

 
B
Brackets first
O
Orders (ie Powers and Square Roots, etc.)
DM
Division and Multiplication (left-to-right)
AS
Addition and Subtraction (left-to-right)

The Order of Operations in Excel Formulas

Spreadsheet programs such as Excel and Google Spreadsheets have a number of arithmetic operators that are used in formulas to carry out basic mathematical operations such as addition and subtraction.

If more than one operator is used in a formula, there is a specific order of operations that Excel and Google Spreadsheets follow in calculating the formula's result

The Order of Operations is:

Brackets "( ) "
Orders (Powers and Square Roots, offs)
Division
Multiplication
Addition
Subtraction

An easy way to remember this is to use the acronym formed from the first letter of each word in the order of operations:

B O D M A S
How the Order of Operations Works

1. Any operation(s) contained in round brackets will be carried out first. 
2. Second, any calculations involving exponents will occur. 
3. After that, Excel considers division or multiplication operations to be of equal importance and carries out these operations in the order they occur left to right in the formula.
4. The same goes for the next two operations – addition and subtraction. They are considered equal in the order of operations. Whichever one appears first in an equation, either addition or subtraction is the operation carried out first.

Changing the Order of Operations in Excel Formulas
Since round brackets are first in the list, it is quite easy to change the order in which mathematical operations are carried out simply by adding brackets around those operations we want to occur first.

As simple as this may sound, using it wrongly has caused many companies to suffer financial loss arising from using bad Financial Models that does not obey the BODMAS rule. As a matter of fact, some employees salary has been wrongly calculated (shortchanged) from wrong use of BODMAS whilst calculating tax, prorated leave allowances and other deductions!

Some experience can be the worst teacher...


Excel-lently yours,

Oladapo Sorinola
07014282477, 07062932708
BB Pin 52E9802D