LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
nhwong
 
Posts: n/a
Default Complex lookup task for a newbies

Hi i have somedata that looks like this:

TrackerID Date Time Day Northing_Y Easting_X Speed_kmh
102 7/2/2004 23:00:27 Friday 3.133891782 101.6948749 50
102 7/2/2004 23:00:34 Friday 3.133070734 101.6943788 53
102 7/2/2004 23:00:41 Friday 3.132447929 101.6935176 64
102 7/2/2004 23:00:47 Friday 3.132242237 101.6924949 64
102 7/2/2004 23:00:54 Friday 3.131492808 101.6917019 61
102 7/2/2004 23:01:00 Friday 3.130511904 101.691408 68
102 7/2/2004 23:01:06 Friday 3.129463391 101.6911232 71
102 7/2/2004 23:01:12 Friday 3.12857015 101.690505 71
102 7/2/2004 23:01:18 Friday 3.127903227 101.6895991 71
102 7/2/2004 23:01:24 Friday 3.127185884 101.6887128 75
102 7/2/2004 23:01:30 Friday 3.126517815 101.6877932 71
102 7/2/2004 23:01:36 Friday 3.126013613 101.6867848 75

if the value of Northing_Y AND/OR Easting_X of any row matched the
criteria of the following table, that row is said to be belong to that
criteria and an ID of that criteria should be assign next to that row.

Criteria yLB yUB xLB xUB
*1 =3.137263 <3.138149
2 =3.136371 <3.137263
3 =3.135472 <3.136371
4 =3.134575 <3.135472
5 =3.133716 <3.134575
6 =3.13297 <3.133716
*7 <=3.13297 =101.693463
8 =101.692597 <101.693463
9 =3.131821 <101.692597
10 =3.13099 <3.131821
11 =3.130125 <3.13099
12 =3.129286 <3.130125

For example if a row's Northing_Y is =3.137263 AND <3.138149, then
it's ID is 1
If a row's Northing_Y is <=3.13297 AND it's Easting_X is =101.693463,
then it's ID is 7. And so on...

I have get rid of the = and <= from the criteria. However, i still
dont understand how to use the vlookup function to achieve what i need
after looking at the help from MSExcel. It's quite complicated to use
vlookup function in this situation as i have no experience in using
that function.

Can anyone help me on this issues? Thanks very much. (please forgive
my bad english..)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I lookup and return different values when the lookup value. kg Excel Discussion (Misc queries) 1 January 20th 05 12:53 AM
How to lookup data in a row and column Confused Excel Discussion (Misc queries) 5 January 10th 05 08:20 PM
complex lookup [email protected] Excel Discussion (Misc queries) 1 December 17th 04 02:01 PM
Another Lookup function, please Butch Excel Worksheet Functions 3 November 3rd 04 08:52 AM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


All times are GMT +1. The time now is 02:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"