0% found this document useful (0 votes)
58 views

Using Sumif Formula: Days Item Amount

This document demonstrates how to use the VLOOKUP and MATCH functions in Excel. VLOOKUP looks up values in a table and MATCH finds the location/position of a lookup value in a range. Examples shown include looking up a salesman's monthly sales using VLOOKUP with MATCH to return the correct column number, and using MATCH alone to return the position of a course name in a list. The document provides the syntax and arguments needed for both functions.

Uploaded by

babaloo sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views

Using Sumif Formula: Days Item Amount

This document demonstrates how to use the VLOOKUP and MATCH functions in Excel. VLOOKUP looks up values in a table and MATCH finds the location/position of a lookup value in a range. Examples shown include looking up a salesman's monthly sales using VLOOKUP with MATCH to return the correct column number, and using MATCH alone to return the position of a course name in a list. The document provides the syntax and arguments needed for both functions.

Uploaded by

babaloo sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 31

Using Sumif Formula

Days Item Amount


Monday Red T-shirt, Large 600
Monday Black Hat 450
Monday White Hat 530
Tuesday Blue T-shirt, Large 999
Tuesday White Hat 650
Wednesday Red T-shirt, Medium 950

Total Amount 4179 =SUM(all range)


Monday Total Amount 1580 =SUMIF(Days range,"Monday",Amount range)
=SUMIF(Range,Ceiteria,sum range)
White Hat 1180 =SUMIF(Item range,"White Hat",Amount range)
T-Shirt Total 2549 =SUMIF(Item range,"*T-shirt*",Amount range)

Purpose
Sum numbers in a range that meet supplied criteria
Return value
The sum of values supplied.
Syntax
=SUMIF (range, criteria, [sum_range])
Arguments
range - The range of cells that you want to apply the criteria against.
criteria - The criteria used to determine which cells to add.
sum_range - [optional] The cells to add together. If sum_range is omitted, the cells in range are added together inste
are added together instead.
Using Sumifs Formula
Emp. Name Region State Sales
Pratham North Punjab 25000
Amit West Goa 36000
Agit East Bihar 45500
Devender North Punjab 75000
Arjun West Gujarat 65200
Bablu North Haryana 55800
Pawan West Goa 75800
Haran East Jharkhand 65800
Karan West Goa 89650

Calculate the total sales whoes region North


and State Punjab 100000
Calculate the total sales whoes region West
and State Goa 201450
Calculate the total sales whoes region East and
State Bihar 45500
=SUMIFS(sum range,range1,criteria1,range2,criteria2)

=SUMIFS(sales range,Region range,"North",State


range,"Punjab")
Purpose
Sum cells that match multiple criteria
Return value
The sum of the cells that meet all criteria
Syntax
=SUMIFS (sum_range, range1, criteria1, [range2], [criteria2], ...)
Arguments
sum_range - The range to be summed.
range1 - The first range to evaulate.
criteria1 - The criteria to use on range1.
range2 - [optional] The second range to evaluate.
criteria2 - [optional] The criteria to use on range2.
Reg_No. Name of Sales Sales Sales
P_id Age Department
Person 2019 2020 2019+2020

100 213423 Pratham 22 Garment 52000 235000 287000


101 213423 Amit 25 Garment 65000 451000 516000
102 213423 Agit 23 Electronics 150000 139000 289000
103 213423 Devender 31 Electronics 230000 269000 499000
104 213423 Arjun 40 Garment 352000 378000 730000
105 213423 Bablu 45 Garment 412000 400000 812000
106 213423 Pawan 21 Electronics 500000 377000 877000
107 213423 Haran 25 Furniture 362000 285000 647000
108 213423 Karan 28 Furniture 252000 369000 621000

To use VLOOKUP, you supply 4 pieces of information, or "arguments":

The value you are looking for (lookup_value)


The range of cells that make up the table (table_array)
The number of the column from which to retrieve a result (column_index)
The match mode (range_lookup, TRUE = approximate, FALSE = exact)
Sales Person
P_id Age Department
2019 Name

105 45 412000

=VLOOKUP(Lookup_value,Table_array,Col_index_No,0)
How to show multiple result for a singal lookup value
using VLOOKUP
P_id Salesman Age Department Sales
100 Pratham 22 Garment 52000
101 Amit 25 Garment 65000
102 Agit 23 Electronics 150000
103 Devender 31 Electronics 230000
104 Arjun 40 Garment 352000
105 Bablu 45 Garment 412000
106 Pawan 21 Electronics 500000
107 Haran 25 Furniture 362000
108 Karan 28 Furniture 252000

Note:- If you want to don't salect table arrey again and again
Salect all data in one time
Click Name Box
Type any table Name
Enter

Note:-If you want to add any column & row then how to update authomatic
Go to formula tab
Click name manager
Refers to:-add extra row and column and also change file name
P_id Sales Age Department

108 252000 28 Furniture

=VLOOKUP(lookup_value,sales,col_index_n.,0)
How to use double vlookup
Table-1 Table-2
ID Name Age Name Post Salary Location
101 Deepak 25 Vashu Manager 30000 Noida
102 Pratham 26 Deepak Accountent 25000 Delhi
103 Vashu 23 Vishal Asst. Manager 29000 Faridabad
104 Meenu 21 Pratham Manager 32000 Delhi
105 Vishal 28 Meenu Asst. Manager 28500 Noida

ID Name Salary
106 not found not found

=VLOOKUP(ID,table-1,2,0)
Note:- If you want to set own error(#N/A) messange.
=IFERROR(value,value_if_error)
=IFERROR(VLOOKUP(ID,table-1,2,0),"not found")
Dynamically updated Vlookup formula
ID Name Age DOJ Salary
101 Deepak 25 25-Mar-2015 30000
102 Pratham 26 10-Feb-2014 25000
103 Vashu 23 2-Apr-2015 29000 ID Name
104 Meenu 21 16-Apr-2014 32000 106 Arti
105 Vishal 28 25-Jun-2014 28500 =VLOOKUP(ID,Table,Col_index_No.,False)
106 Arti 30 15-Jul-2014 25000
107
Step-1 Apply Table Formate in data
Select table range
Click Formate as table in home tab
ok
Step-2 Create drop down list of ID No.
Select all ID Data range
formula tab and click Create from salection
Top Row
ok
Step-3 Data tab ID Cell click
Data Validation
Allow: List
Source: F3
ok
Using Double Lookup Value in Vlookup
Student Total Marks
Father Name Roll No. Class
Name Marks Obtained

Ajay Manoj Kumar Ajay Manoj Kumar 1 XII 500 460


Aman Nitesh Aman Nitesh 2 XII 500 480
Ajay Rahul Ajay Rahul 3 XII 500 470
Rohit Lalit Rohit Lalit 4 XII 500 390
Sachin Pawan Kumar Sachin Pawan Kumar 5 XII 500 400
Sachin Yogesh Sachin Yogesh 6 XII 500 380
Ritu Raj Gupta Ritu Raj Gupta 7 XII 500 385
Jyoti Yogender Jyoti Yogender 8 XII 500 370
Nidhi Bablu Sharma Nidhi Bablu Sharma 9 XII 500 410

Student Marks
Name Obtained
Ajay 460 =VLOOKUP(lookup_value,Table_array,Col_index_No,0)

Student Father Name Marks


Name Obtained
Ajay Rahul 470 =IFERROR(VLOOKUP(St. Name&"space"&Father N
Step-1 Helper column must be the first column in table
=St. Name&"space"&Father Name

_array,Col_index_No,0)

P(St. Name&"space"&Father Name,Table_array,Col_index_No,0),"Not Found")


Match Function
Ex.1 Name Enter Name Position
Pratham Agit 3
Amit
Agit =MATCH(lookup_value,lookup_array,0-exact match)
Devender
Arjun
Bablu
Pawan
Haran
Karan

Ex.2 B.Tech M.Tech BCA MCA MBA BBA

Course Name Position


BCA 3
Vlookup + Match Function
Salesman Jan Feb Mar Apr May Jun
Pratham 64011 52541 68483 58407 61668 59600
Amit 51989 63211 75055 74267 71518 71971
Agit 61400 60511 53088 53426 54852 66574
Devender 66240 53489 74384 77028 51984 50052
Arjun 51179 74304 51397 58696 55020 61094
Bablu 75698 66025 70854 54529 77145 75151
Pawan 62461 77271 77438 68021 62167 75266
Haran 68429 63262 59705 78722 69232 50820
Karan 69217 58989 55039 70716 58474 72953

Salesman May Salesman Apr


Agit 54852 Agit 53426

=VLOOKUP(Agit,All Table,Column no.,0) =VLOOKUP(Agit,All Table,MATCH(lookup_value,lookup_arrar,0),0)

5
=MATCH(lookup_value,lookup_arrar,0)
_value,lookup_arrar,0),0)
Index Function
Product ID Product Name Qty Rate Total
P001 Keyboard 20 120 2400
P002 Mouse 50 150 7500
P003 Hard Disk 60 500 30000
P004 RAM 50 250 12500
P005 Microphone 40 360 14400
P006 Speaker 30 180 5400

Product Name Rate Product ID


Mouse 150 P001

=INDEX(array,row_no,column_no)
=INDEX(all ragnge,Mouse,rate4)
Index + Match Function
Product ID P003 4 =MATCH(P003,Product ID Column,0)
Item Name/ Rate Item Name 1 =MATCH(Item Name,Item Name Row Select,0)

Item Name Is = Hard Disk =INDEX(D9:F15,4,1)

Item Name Product ID Rate


Keyboard P001 120
Mouse P002 150
Hard Disk P003 500
RAM P004 250
Microphone P005 360
Speaker P006 180
uct ID Column,0)
e,Item Name Row Select,0)

Product ID
Item Name
Rate
Use Subtotal Formula
Sr. No Item Company Qty Price Amount Use the SUBTOTAL function to ex
1 Mouse abc 100 100 10000 total. You can choose any one o
such as Sum
2 Keyboard xyz 150 120 18000
3 Hard Disk abc 123 500 61500 Total Qty
4 Mouse abc 250 120 30000 Total Amount
5 Keyboard xyz 140 150 21000 Total Item
6 Hard Disk xyz 160 600 96000 Average of Amount
7 Mouse xyz 152 150 22800 Maximum Amount
8 Keyboard abc 130 180 23400 Minimum Amount
9 Hard Disk abc 150 600 90000
10 Mouse xyz 170 150 25500 Step-1 Select all Data
11 Hard Disk abc 120 600 72000 Home tab
12 Mouse xyz 190 150 28500 Click Sort & Filter
Filter
Total Qty 1835
Total Amount 498700 Step-2 Click Sr. No.
Total Item 12 =SUBTOTAL(3,Item F4:It
Average of Amount 41558.33
Maximum Amount 96000
Minimum Amount 10000
SUBTOTAL function to exclude filtered or hidden rows when calculating a
ou can choose any one of the 11 functions that SUBTOTAL can calculate,
such as Sum, Average, Count or Max.
1835 =SUBTOTAL(9,qtyColumn)
ount 498700 =SUBTOTAL(9,qtyColumn)
m 12 =SUBTOTAL(3,Item Column)
of Amount 41558.33 =SUBTOTAL(1,Amt. Column)
m Amount 96000 =SUBTOTAL(4,Amt. Column)
m Amount 10000 =SUBTOTAL(5,Amt. Column)

Select all Data

Click Sort & Filter

Click Sr. No.


=SUBTOTAL(3,Item F4:Item)
Item ID Item Name Rate Qty Total

Item ID Item Name Rate Qty Total


P001 Keyboard 120 5 600
P002 Mouse 130 5 650
P003 Hard disk 1200 5 6000
P004 CPU 1240 5 6200
Using IFERROR formula
Name Hindi English Math Science SST Average

Pratham 54 89 63 35 60 60.2
Amit 75 54 97 88 61 75
Agit #DIV/0!
Devender #DIV/0!
Arjun #DIV/0!
Bablu #DIV/0!
Pawan #DIV/0!
Haran #DIV/0!
Karan #DIV/0!

Average =AVERAGE(hindi to sst)


Average with
iferror =IFERROR(AVERAGE(hindi to sst),"") Or =IFERROR(Value,"value_if_error)

Year Product Name Product Qty Total


Size
2016 T-Shirt L 20 2000

2016 Hat M 30 500


2017 T-Shirt L 50 6000
2016 T-Shirt M 40 6000

2016 Blazers L 30 8000


2017 Hat M 20 3000
2016 T-Shirt XL 10 2500
2017 Blazers XL 12 6500
2017 Blazers M 15 7000
2017 T-Shirt L 20 4500
Average with
iferror
60.2
75

R(Value,"value_if_error)

Year Quantity
Average
2018 #DIV/0!

Year Quantity
Average
2018 Not Valid
CountriesN Flage
ame Picture
India

Iran

New Zealand

Bangladesh

Austria

Afghanistan
CountriesN India
ame Step-1 Drop down list of Countries name.

Flage
Picture
Step-2 Copy any Picture and Paste as Picture in paste Picture Link

Step-3 Go to formula Tab and cick Defene Name

Name:- Picture

Refers to: =index(All Picture Cell


Range,match(Country Name Cell,Country Name
column range,0))
ure in paste Picture Link
Use Drop Down Function in Excel
State State and their City N
Andhra Pradesh Andhra Pradesh Bihar
Bihar Adoni Ara
Haryana Amaravati Baruni
Uttar Pradesh Anantapur Begusarai
Punjab Chandragiri Bettiah
Chittoor Bhagalpur
Dowlaiswaram Bihar Sharif
Eluru Bodh Gaya
Guntur Buxar
Kadapa Chapra
Kakinada Darbhanga
Kurnool Hajipur

State City Step-1 Select State column and A


Bihar Bhagalpur Go to Formula tab and click creat
Top Row
Ok

Step-2 Click State cell and go to d


Data Validation
Allow: List
Source: F3
ok

Step-3 Click City cell and go to da


Data Validation
Allow: List
Source: =indirect(State cell)
ok
ction in Excel
State and their City Name
Haryana Uttar Pradesh Punjab
Ambala Agra Amritsar
Bhiwani Aligarh Batala
Chandigarh Amroha Chandigarh
Faridabad Ayodhya Faridkot
Firozpur Jhirka Azamgarh Firozpur
Gurgaon Bahraich Gurdaspur
Hansi Ballia Hoshiarpur
Hisar Banda Jalandhar
Jind Bara Banki Kapurthala
Kaithal Bareilly Ludhiana
Karnal Basti Nabha

ep-1 Select State column and All state and city column select one by one
o to Formula tab and click create fro selection

ep-2 Click State cell and go to data tab


ata Validation

ep-3 Click City cell and go to data tab


ata Validation

ource: =indirect(State cell)


Name Class Hindi English Math Science Social Science Total
Pratham X 99 88 48 47 56 338
Amit X 95 91 81 40 89 396
Agit X 76 89 58 74 87 384
Devender X 56 54 87 77 58 332
Arjun X 52 72 61 43 70 298
Bablu X 97 35 73 90 51 346
Pawan X 99 66 86 88 73 412
Haran X 89 90 99 45 85 408
Karan X 82 50 88 65 48 333

Name Total
Devender 332
=HLOOKUP(Total,all table,5,0)
Step-1 click the subject cell
Go to data tab
Data validation
Allow: List
Source: All all subject range
ok
Match + Hlookup Function
Salesman Deepak Raj Aman Rohit Anil
Jan 24330 38529 26478 36911 31910
Feb 35353 25669 52153 26898 44784
Mar 32690 26628 41336 25665 30062
Apr 27736 24911 45629 44553 32881
May 49363 42261 46901 24367 35935
Jun 31598 39612 28193 29044 24903

Salesman Apr
Aman 45629

=MATCH(April,all month,0)
=HLOOKUP(aman,all table,MATCH(April,all month,0),0)

You might also like