Vlookup presentation

572 views

Published on

Example of how I use MS Excel's VLOOKUP() function to filter my data.

1 Comment
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total views
572
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
19
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

Vlookup presentation

  1. 1. How I filter data with MS Excel’s VLOOKUP() function Anneke M. Batenburg
  2. 2. RationaleThis is what my rawmeasurement datausually look like, after Iexport them fromIsodat.This file includes sixpeaks of eachchromatogram, whereasI’m only interested inone peak (sample peak)per chromatogram.Selecting the data I wantby hand is TEDIOUS.
  3. 3. Enter: VLOOKUP()VLOOKUP searches for a value in the first column ofa table array and returns a value in the same rowfrom 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_cases)One complication: my data should have a firstcolumn with lookup labels (value_to_look_for)
  4. 4. Create a lookup labelI create a first columnwith a formula thatdetects• 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. 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. 6. And I can look upmore data, asdesired. 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...

×