SlideShare una empresa de Scribd logo
1 de 6
How I filter data with MS Excel’s
     VLOOKUP() function
        Anneke M. Batenburg
Rationale
This is what my raw
measurement data
usually look like, after I
export them from
Isodat.
This file includes six
peaks of each
chromatogram, whereas
I’m only interested in
one peak (sample peak)
per chromatogram.
Selecting the data I want
by hand is TEDIOUS.
Enter: VLOOKUP()
VLOOKUP searches for a value in the first column of
a table array and returns a value in the same row
from another column in the table array.

Syntax:
VLOOKUP(value_to_look_for, array_to_look_in,
column_number_to_return_value_from,
boolean_that_should_always_be_FALSE_in_my_ca
ses)

One complication: my data should have a first
column with lookup labels (value_to_look_for)
Create a lookup
     label
I create a first column
with a formula that
detects
• if the peak is a sample
   peak (based on
   retention time),
• and if yes, gives it a
   sequential number.

Ax=IF(AND(260 < Kx , Kx
< 625),
MAX(A$2:Ax)+1,"")
Create a sheet with
   selected data
 Now I create another
 sheet where I use
 VLOOKUP() to look up
 the data I want
 automatically.
 Like the filename of the
 chromatograms that
 yielded a sample peak.

 Ax=VLOOKUP(ROW()-1,
 ’SheetName'!A$2:Z$20
 7, 2, FALSE)
And I can look up
more data, as
desired.




                    Many more variations are
                    possible, like selecting only
                    the measurements that have
                    “NAT334” or “BLANK” in the
                    filename, or selecting only
                    measurements from a
                    particular measurement day...

Más contenido relacionado

La actualidad más candente

Map filter reduce in Python
Map filter reduce in PythonMap filter reduce in Python
Map filter reduce in PythonAdnan Siddiqi
 
Functional programming with_scala
Functional programming with_scalaFunctional programming with_scala
Functional programming with_scalaRaymond Tay
 
Gopher conbr golang e data science - oficial
Gopher conbr   golang e data science - oficialGopher conbr   golang e data science - oficial
Gopher conbr golang e data science - oficialRodrigo Pinheiro
 
Skiena algorithm 2007 lecture05 dictionary data structure trees
Skiena algorithm 2007 lecture05 dictionary data structure treesSkiena algorithm 2007 lecture05 dictionary data structure trees
Skiena algorithm 2007 lecture05 dictionary data structure treeszukun
 
Programming haskell chapter10
Programming haskell chapter10Programming haskell chapter10
Programming haskell chapter10Kousuke Ruichi
 
Collections - Maps
Collections - Maps Collections - Maps
Collections - Maps Hitesh-Java
 
Dynamic memory allocation and linked lists
Dynamic memory allocation and linked listsDynamic memory allocation and linked lists
Dynamic memory allocation and linked listsDeepam Aggarwal
 
MarcEdit Shelter-In-Place Webinar 7: Making Regular Expressions work for you ...
MarcEdit Shelter-In-Place Webinar 7: Making Regular Expressions work for you ...MarcEdit Shelter-In-Place Webinar 7: Making Regular Expressions work for you ...
MarcEdit Shelter-In-Place Webinar 7: Making Regular Expressions work for you ...Terry Reese
 
Introduction to Array ppt
Introduction to Array pptIntroduction to Array ppt
Introduction to Array pptsandhya yadav
 
A Presentation About Array Manipulation(Insertion & Deletion in an array)
A Presentation About Array Manipulation(Insertion & Deletion in an array)A Presentation About Array Manipulation(Insertion & Deletion in an array)
A Presentation About Array Manipulation(Insertion & Deletion in an array)Imdadul Himu
 
Python - Numpy/Pandas/Matplot Machine Learning Libraries
Python - Numpy/Pandas/Matplot Machine Learning LibrariesPython - Numpy/Pandas/Matplot Machine Learning Libraries
Python - Numpy/Pandas/Matplot Machine Learning LibrariesAndrew Ferlitsch
 

La actualidad más candente (17)

1.2 sql create and drop table
1.2 sql create and drop table1.2 sql create and drop table
1.2 sql create and drop table
 
Map filter reduce in Python
Map filter reduce in PythonMap filter reduce in Python
Map filter reduce in Python
 
Functional programming with_scala
Functional programming with_scalaFunctional programming with_scala
Functional programming with_scala
 
Excel
ExcelExcel
Excel
 
Array
ArrayArray
Array
 
General Data structures
General Data structuresGeneral Data structures
General Data structures
 
Gopher conbr golang e data science - oficial
Gopher conbr   golang e data science - oficialGopher conbr   golang e data science - oficial
Gopher conbr golang e data science - oficial
 
Skiena algorithm 2007 lecture05 dictionary data structure trees
Skiena algorithm 2007 lecture05 dictionary data structure treesSkiena algorithm 2007 lecture05 dictionary data structure trees
Skiena algorithm 2007 lecture05 dictionary data structure trees
 
Programming haskell chapter10
Programming haskell chapter10Programming haskell chapter10
Programming haskell chapter10
 
Collections - Maps
Collections - Maps Collections - Maps
Collections - Maps
 
R introduction v2
R introduction v2R introduction v2
R introduction v2
 
Dynamic memory allocation and linked lists
Dynamic memory allocation and linked listsDynamic memory allocation and linked lists
Dynamic memory allocation and linked lists
 
MarcEdit Shelter-In-Place Webinar 7: Making Regular Expressions work for you ...
MarcEdit Shelter-In-Place Webinar 7: Making Regular Expressions work for you ...MarcEdit Shelter-In-Place Webinar 7: Making Regular Expressions work for you ...
MarcEdit Shelter-In-Place Webinar 7: Making Regular Expressions work for you ...
 
Php + MySql Optimization
Php + MySql OptimizationPhp + MySql Optimization
Php + MySql Optimization
 
Introduction to Array ppt
Introduction to Array pptIntroduction to Array ppt
Introduction to Array ppt
 
A Presentation About Array Manipulation(Insertion & Deletion in an array)
A Presentation About Array Manipulation(Insertion & Deletion in an array)A Presentation About Array Manipulation(Insertion & Deletion in an array)
A Presentation About Array Manipulation(Insertion & Deletion in an array)
 
Python - Numpy/Pandas/Matplot Machine Learning Libraries
Python - Numpy/Pandas/Matplot Machine Learning LibrariesPython - Numpy/Pandas/Matplot Machine Learning Libraries
Python - Numpy/Pandas/Matplot Machine Learning Libraries
 

Destacado

THE EFFECT OF ORGANIC AEROSOL MATERIAL ON AEROSOL/O3 REACTIVITY
THE EFFECT OF ORGANIC AEROSOL MATERIAL ON AEROSOL/O3 REACTIVITYTHE EFFECT OF ORGANIC AEROSOL MATERIAL ON AEROSOL/O3 REACTIVITY
THE EFFECT OF ORGANIC AEROSOL MATERIAL ON AEROSOL/O3 REACTIVITYAnneke Batenburg
 
deltaD(H2) at the Cabauw tall tower in the Netherlands (INGOS meeting 2015)
deltaD(H2) at the Cabauw tall tower in the Netherlands (INGOS meeting 2015)deltaD(H2) at the Cabauw tall tower in the Netherlands (INGOS meeting 2015)
deltaD(H2) at the Cabauw tall tower in the Netherlands (INGOS meeting 2015)Anneke Batenburg
 
Temporal Scale-Spaces ScSp03
Temporal Scale-Spaces ScSp03Temporal Scale-Spaces ScSp03
Temporal Scale-Spaces ScSp03Daniel Fagerstrom
 
Spatio-Temporal Data Mining and Classification of Ships' Trajectories
Spatio-Temporal Data Mining and Classification of Ships' TrajectoriesSpatio-Temporal Data Mining and Classification of Ships' Trajectories
Spatio-Temporal Data Mining and Classification of Ships' TrajectoriesCentre of Geographic Sciences (COGS)
 
Hydrology measuring rain
Hydrology measuring rainHydrology measuring rain
Hydrology measuring rainSajjad Ahmad
 

Destacado (8)

ESRL/GMD 2012 poster
ESRL/GMD 2012 posterESRL/GMD 2012 poster
ESRL/GMD 2012 poster
 
THE EFFECT OF ORGANIC AEROSOL MATERIAL ON AEROSOL/O3 REACTIVITY
THE EFFECT OF ORGANIC AEROSOL MATERIAL ON AEROSOL/O3 REACTIVITYTHE EFFECT OF ORGANIC AEROSOL MATERIAL ON AEROSOL/O3 REACTIVITY
THE EFFECT OF ORGANIC AEROSOL MATERIAL ON AEROSOL/O3 REACTIVITY
 
deltaD(H2) at the Cabauw tall tower in the Netherlands (INGOS meeting 2015)
deltaD(H2) at the Cabauw tall tower in the Netherlands (INGOS meeting 2015)deltaD(H2) at the Cabauw tall tower in the Netherlands (INGOS meeting 2015)
deltaD(H2) at the Cabauw tall tower in the Netherlands (INGOS meeting 2015)
 
Egu2011 2599 presentation
Egu2011 2599 presentationEgu2011 2599 presentation
Egu2011 2599 presentation
 
Batenburg agu 2012_11_26
Batenburg agu 2012_11_26Batenburg agu 2012_11_26
Batenburg agu 2012_11_26
 
Temporal Scale-Spaces ScSp03
Temporal Scale-Spaces ScSp03Temporal Scale-Spaces ScSp03
Temporal Scale-Spaces ScSp03
 
Spatio-Temporal Data Mining and Classification of Ships' Trajectories
Spatio-Temporal Data Mining and Classification of Ships' TrajectoriesSpatio-Temporal Data Mining and Classification of Ships' Trajectories
Spatio-Temporal Data Mining and Classification of Ships' Trajectories
 
Hydrology measuring rain
Hydrology measuring rainHydrology measuring rain
Hydrology measuring rain
 

Vlookup presentation

  • 1. How I filter data with MS Excel’s VLOOKUP() function Anneke M. Batenburg
  • 2. Rationale This is what my raw measurement data usually look like, after I export them from Isodat. This file includes six peaks of each chromatogram, whereas I’m only interested in one peak (sample peak) per chromatogram. Selecting the data I want by hand is TEDIOUS.
  • 3. Enter: VLOOKUP() VLOOKUP searches for a value in the first column of a table array and returns a value in the same row from another column in the table array. Syntax: VLOOKUP(value_to_look_for, array_to_look_in, column_number_to_return_value_from, boolean_that_should_always_be_FALSE_in_my_ca ses) One complication: my data should have a first column with lookup labels (value_to_look_for)
  • 4. Create a lookup label I create a first column with a formula that detects • if the peak is a sample peak (based on retention time), • and if yes, gives it a sequential number. Ax=IF(AND(260 < Kx , Kx < 625), MAX(A$2:Ax)+1,"")
  • 5. Create a sheet with selected data Now I create another sheet where I use VLOOKUP() to look up the data I want automatically. Like the filename of the chromatograms that yielded a sample peak. Ax=VLOOKUP(ROW()-1, ’SheetName'!A$2:Z$20 7, 2, FALSE)
  • 6. And I can look up more data, as desired. Many more variations are possible, like selecting only the measurements that have “NAT334” or “BLANK” in the filename, or selecting only measurements from a particular measurement day...