Sl. # Topic: Logical Functions

You might also like

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 23

Sl.

# Topic
Logical Functions
Description
Data Validation Function
VLOOKUP
SUMIF, COUNTIF,AVERAGEIF
Information Functions
To Do
Excerise4-DataValidation
Excer-2Vlookup
Exer-3-SUMIF
Roll # Name Semester Marks LOOKUP( What , Where
1012221 Prakash 2 45 60
1012226 Gowry 4 45
1012222 Ron 2 60
1012222222 Niranjan 2 70
1012224 Neeraja 2 80
1012225 Kevin 3 90
1012221 Priya 5 99
1012225 Neerajan 2 100
1012223 Samson 3 101
1012223 Divya 4 102
1012223 Ajit 103

If the values in the LOOKUP_range are not sorted i


If the LOOKUP function cannot find an exact match
If the value is smaller than all of the values in the lo
LOOKUP( What , Where, where to select)
90

P_range are not sorted in ascending order, the LOOKUP function will return the incorrect valu
nnot find an exact match, it chooses the largest value in the lookup_range that is less than or
all of the values in the lookup_range, then the LOOKUP function will return #N/A.
the incorrect value.
hat is less than or equal to the value.
VLOOKUP(What value are you looking for,where do you want to search, w
approximate match?)

Roll # Name Semester Year Semester


1012221 Prakash 2 First 1
1012226 Gowry 8 2
1012222 Ron 2 3
1111212 Niranjan 8 4
1012224 Neeraja 2 5
1012225 Kevin 3 6
1111212 Niranjan 7 7
1012224 Neeraja 2 8
1012222 Ron 2
1111212 Niranjan 2
1012224 Neeraja 2
1012226 Gowry 3
1012222 Ron 3
1111212 Niranjan 3
1012224 Neeraja 3
1012222 Ron 3
1111212 Niranjan 3
1012224 Neeraja 3
1012226 Gowry 3

Read example below


you want to search, which column has the result, Should the value be

Year
First
First
Second
Second
Third
Third
Fourth
Fourth
Create a table with the following columns - Student Name, Roll number, Location, Gradu
Location Column should be a drop down with - 20 City names refered from a table with c
The column 'Graduate' should be a drop down and take only values - "yes/no"
'Score' column should not allow data entry value less than 40.
'Score' field should display a message - "Enter Value more than 40" when the cells in colu
Date of joining field should accept only Date
ber, Location, Graduate, Score, Date of Joining
d from a table with city names
- "yes/no" Bangalore
Chicago
when the cells in column are selected. Srinagar
Dusseldorf
Berlin
Delhi
Mumbai
Dubai
Lisbon
VLOOKUP(What value are you looking for,where do you want to search, which co
approximate match?)

Exercise - Use Vlookup to find values for project name and region using master data table

Project_ID From To Project Name Region


3120153588 12/23/2017 12/30/2018 Vlookup() UK & R
3120093504 12/30/2017 6/29/2018
3120163939 1/1/2018 3/30/2018
3120216619 2/1/2018 6/29/2018
3120197981 7/19/2017 8/27/2018
3120166986 1/2/2018 12/30/2018
3120180830 12/5/2017 12/30/2018
3120180829 1/23/2018 12/30/2018
3120180834 1/23/2018 12/30/2018
3120093072 12/23/2017 3/30/2018
3120134691 5/16/2017 12/30/2018
3120151857 1/29/2018 2/27/2018
3120197981 2/11/2012 8/27/2018
3120171377 1/28/2018 3/30/2018
3120060662 1/1/2018 3/30/2018
3120202228 2/7/2018 3/30/2018
3120166986 1/1/2018 12/30/2018
3120171377 1/29/2018 3/30/2018
3120180829 1/21/2018 12/30/2018
3120205006 1/29/2018 5/30/2018
3120194977 11/28/2017 3/30/2018
3120105201 2/6/2018 3/30/2018
3120166986 1/2/2018 12/30/2018
3120102547 1/1/2018 12/30/2018
3120215420 3/20/2017 6/29/2018
3120215416 1/28/2018 12/30/2018
3120176770 12/11/2016 3/30/2018
3120042567 12/21/2017 12/30/2018
3120151837 12/27/2017 12/30/2018
3120151835 12/29/2017 12/30/2018
3120215416 1/28/2018 12/30/2018
3120215579 6/27/2017 6/29/2018
3120178060 8/29/2017 9/29/2018
3120151835 12/29/2017 12/30/2018
3120155852 1/8/2018 3/30/2018
3120204204 5/28/2017 12/30/2018
3120151839 12/30/2017 12/30/2018
3120215428 9/1/2017 6/29/2018
3120180829 1/23/2018 12/30/2018
3120151853 12/27/2017 3/30/2018
3120042567 12/21/2017 12/30/2018
3120042567 12/21/2017 12/30/2018
3120161106 9/20/2016 6/29/2021
3120215579 6/28/2017 6/29/2018
3120151853 12/27/2017 3/30/2018
3120215568 2/24/2017 12/30/2018
3120042567 12/21/2017 12/30/2018
3120204130 1/21/2018 3/29/2018
3120201207 1/18/2018 12/30/2018
3120151835 12/29/2017 12/30/2018
3120153358 10/10/2017 4/29/2018
3120151835 12/29/2017 12/30/2018
3120159508 1/14/2018 3/30/2018
3120215563 1/26/2018 2/27/2018
3120201207 1/18/2018 12/30/2018
3120042567 12/22/2017 12/30/2018
3120202665 8/29/2017 2/27/2018
3120147286 12/21/2017 12/30/2018
3120176810 8/29/2017 9/29/2018
3120202665 8/29/2017 2/27/2018
3120155852 1/1/2018 3/30/2018
3120111571 1/14/2018 5/6/2018
3120213255 1/30/2018 2/27/2018
3120042567 12/22/2017 12/30/2018
3120153358 10/10/2017 4/29/2018
3120042567 12/24/2017 12/30/2018
3120048903 12/13/2017 12/30/2018
3120155852 12/15/2017 3/30/2018
3120121534 12/23/2017 6/29/2018
3120159704 4/26/2017 9/29/2018
3120181873 12/30/2017 12/30/2018
3120215563 1/29/2018 12/30/2018
3120216685 3/1/2018 12/30/2018
3120215416 2/21/2018 12/30/2018
3120213249 2/28/2018 3/30/2018
3120202228 4/15/2018 5/30/2018
3120155852 4/17/2018 6/28/2018
3120155852 4/10/2018 6/28/2018
3120060662 4/17/2018 5/30/2018
3120082043 4/16/2018 6/29/2018
3120155852 4/17/2018 6/28/2018
3120155852 4/17/2018 6/28/2018
3120049148 5/17/2018 6/29/2018
3120218938 5/16/2018 12/30/2018
3120218938 5/16/2018 12/30/2018
3120218938 5/16/2018 12/30/2018
3120177814 5/18/2018 12/30/2018
3120049148 5/16/2018 6/29/2018
3120145079 5/17/2018 7/30/2018
3120218938 5/16/2018 12/30/2018
3120177814 5/16/2018 12/30/2018
3120177814 5/21/2018 12/30/2018
3120199136 5/4/2018 12/30/2018
3120049148 5/18/2018 6/29/2018
3120177814 5/22/2018 12/30/2018
3120220876 5/22/2018 7/23/2019
3120213249 4/19/2018 5/18/2018
3120218938 5/16/2018 12/30/2018
3120049148 5/18/2018 6/29/2018
nt to search, which column has the result, Should the value be

master data table Master Table


Project_ID Project_Name Account_Name Region
3120215420 Apollo Telsa New UK & R
3120215416 Astro Telsa New UK & R
3120178060 Aurora Telsa New UK & R
3120155852 Barcelona Telsa New UK & R
3120215428 Barney Telsa New UK & R
3120204130 Barracuda Telsa New UK & R
3120153358 Batman Telsa New UK & R
3120159508 Bender Telsa New UK & R
3120202665 Bigfish Telsa New UK & R
3120176810 Bladerunner Telsa New UK & R
3120111571 Bongo Telsa New UK & R
3120159704 Bordeaux Telsa New UK & R
3120121534 Bride of Buster Telsa Securities (Eur UK & R
3120215579 Bulldozer Telsa Securities (USAUK & R
3120215568 Bullwinkle Telsa Securities (USAUK & R
3120215563 Camelot Telsa Securities (USAUK & R
3120048903 Canary Telsa Securities (USAUK & R
3120151857 Cinnamon Telsa Services (India)UK & R
3120151837 Cold Fusion Telsa Services (India)UK & R
3120151835 Colossus Telsa Services (India)UK & R
3120151839 Colusa Telsa Services (India)UK & R
3120151853 Constantine Telsa Services (India)UK & R
3120145079 Crusader ICICI Bank Limited UK & R
3120204204 Cyclone ING Bank UK & R
3120216685 Dagwood ING Belgium NV USA
3120049148 Darwin The Northern Trust USA
3120082043 Deepmind UBS Business SolutioUSA
3120153588 dejaVu Pearson Shared ServiUK & R
3120161106 Diesel AT&T Inc. USA
3120216619 Duracell Comcast Cable Commu USA
3120180830 Duraflame EmblemHealth USA
3120180829 Durango EmblemHealth USA
3120180834 Eagle EmblemHealth USA
3120181873 Echo Lake DL Insurance ServiceUK & R
3120194977 Fireball Gard AS UK & R
3120218938 Firefly Gard AS UK & R
3120176770 Firestorm Metlife Insurance Li UK & R
3120205006 Firetruck AIG Synergy USA
3120213255 Flamingo Chubb INA Holdings IUSA
3120220876 Fusion Guidewire Software IUSA
3120102547 Galactica Manulife Financial USA
3120163939 Gemini-64 Massachusetts Mutual USA
3120093072 Green Jade Massachusetts Mutual USA
3120060662 Hades Massachusetts Mutual USA
3120202228 Honeycomb Massachusetts Mutual USA
3120105201 HotJava Massachusetts Mutual USA
3120197981 Hydra Nationwide Mutual USA
3120134691 Indigo ROINS Financial ServiUSA
3120177814 Irongate QEA Internal UK & R
3120093504 Ivory AbbVie Inc. USA
3120166986 Jaguar SELFRIDGES RETAIL LUK & R
3120171377 Liquid Sky SELFRIDGES RETAIL LUK & R
3120213249 Lorax Ace Hardware CorporUSA
3120042567 Mad Hatter Loblaws Inc. USA
3120147286 Malibu Loblaws Inc. USA
3120199136 Mango McDonald's CorporatUSA
3120201207 Mercury Wyndham Vacation USA
Verticle_ID
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
BFS
COMM
COMM
COMM
HEALTHCARE
HEALTHCARE
HEALTHCARE
INSURANCE
INSURANCE
INSURANCE
INSURANCE
INSURANCE
INSURANCE
INSURANCE
INSURANCE
INSURANCE
INSURANCE
INSURANCE
INSURANCE
INSURANCE
INSURANCE
INSURANCE
INTERNAL
LSCIENCES
RETAIL
RETAIL
RETAIL
RETAIL
RETAIL
T&H
T&H
Determine the following

City Student Score Course


Bangalore Tracy 90 Arts How many students scored 90
Bangalore Tom 80 Science
Pune Jaya 96 Science Total Scores for Arts
Pune Steve 55 Arts
Bangalore Mohan 60 Arts Average Scores for Science
Bangalore Janice 52 Science
Pune Ketan 99 Arts
Pune Tara 82 Arts
Bangalore Marie 67 Science
Bangalore Gopal 90 Science
Bangalore Jaykar 83 Arts
Pune Lata 89 Arts
Pune Meghana 60 Science
Bangalore Arti 63 Science
Bangalore Kartik 59 Arts
use '=countif()'

use '=SUMIF()'

use '=AVERAGEIF()
Function Syntax
ISBLANK =ISBLANK (value)
ISNUMBER =ISNUMBER (value)
ISTEXT =ISTEXT(value)
ISEVEN =ISEVEN(value)
ISODD =ISODD(value)
ISERROR =ISERROR (value)
Purpose
Test if a cell is empty
Test cell for numeric value
Test cell for a text value
Test if value in cell is even
Test if value in cell is odd
Test for any error - #N/A, #VALUE!, #REF!,
#DIV/0!, #NUM!, #NAME?, or #NULL!

You might also like