#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default LOOKUP function

if the exact lookup_value is not found, it will approximate to the nearest
figure below the requested value.
For Example:
Code Name Qty.
10 Ali 3434
11 Vahid 356
13 Farid 67
14 Mohammad 324
15 Farbod 785

In "Code" column, "12" does not exist.
When I Lookup column "Code", it will be as follow:
Code Name Qty.
10 Ali 3434
11 Vahid 356
12 Vahid 356 <------- (This row is the same as "11")
13 Farid 67
14 Mohammad 324
15 Farbod 785

I want to have empty cells or zero when there is not "12".

Please help me.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default LOOKUP function

Use VLOOKUP(). Refer help for details and syntax

=IF(ISNA(VLOOKUP(10,A1:C6,2,0)),"",VLOOKUP(10,A1:C 6,2,0))

To retrun the 3rd column (Qty)
VLOOKUP(10,A1:C6,3,0)

If this post helps click Yes
---------------
Jacob Skaria


"Arfa" wrote:

if the exact lookup_value is not found, it will approximate to the nearest
figure below the requested value.
For Example:
Code Name Qty.
10 Ali 3434
11 Vahid 356
13 Farid 67
14 Mohammad 324
15 Farbod 785

In "Code" column, "12" does not exist.
When I Lookup column "Code", it will be as follow:
Code Name Qty.
10 Ali 3434
11 Vahid 356
12 Vahid 356 <------- (This row is the same as "11")
13 Farid 67
14 Mohammad 324
15 Farbod 785

I want to have empty cells or zero when there is not "12".

Please help me.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default LOOKUP function

If you have Excel 2007, you can use IfError

=IFERROR(VLOOKUP(10,A1:C6,2,TRUE),"")

--
__________________________________
HTH

Bob

"Arfa" wrote in message
...
if the exact lookup_value is not found, it will approximate to the nearest
figure below the requested value.
For Example:
Code Name Qty.
10 Ali 3434
11 Vahid 356
13 Farid 67
14 Mohammad 324
15 Farbod 785

In "Code" column, "12" does not exist.
When I Lookup column "Code", it will be as follow:
Code Name Qty.
10 Ali 3434
11 Vahid 356
12 Vahid 356 <------- (This row is the same as "11")
13 Farid 67
14 Mohammad 324
15 Farbod 785

I want to have empty cells or zero when there is not "12".

Please help me.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default LOOKUP function

Many Thanks.
I use Excel 2003.

"Bob Phillips" wrote:

If you have Excel 2007, you can use IfError

=IFERROR(VLOOKUP(10,A1:C6,2,TRUE),"")

--
__________________________________
HTH

Bob

"Arfa" wrote in message
...
if the exact lookup_value is not found, it will approximate to the nearest
figure below the requested value.
For Example:
Code Name Qty.
10 Ali 3434
11 Vahid 356
13 Farid 67
14 Mohammad 324
15 Farbod 785

In "Code" column, "12" does not exist.
When I Lookup column "Code", it will be as follow:
Code Name Qty.
10 Ali 3434
11 Vahid 356
12 Vahid 356 <------- (This row is the same as "11")
13 Farid 67
14 Mohammad 324
15 Farbod 785

I want to have empty cells or zero when there is not "12".

Please help me.





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default LOOKUP function

Arfa, does that means you have resolved the issue ?


"Arfa" wrote:

Many Thanks.
I use Excel 2003.

"Bob Phillips" wrote:

If you have Excel 2007, you can use IfError

=IFERROR(VLOOKUP(10,A1:C6,2,TRUE),"")

--
__________________________________
HTH

Bob

"Arfa" wrote in message
...
if the exact lookup_value is not found, it will approximate to the nearest
figure below the requested value.
For Example:
Code Name Qty.
10 Ali 3434
11 Vahid 356
13 Farid 67
14 Mohammad 324
15 Farbod 785

In "Code" column, "12" does not exist.
When I Lookup column "Code", it will be as follow:
Code Name Qty.
10 Ali 3434
11 Vahid 356
12 Vahid 356 <------- (This row is the same as "11")
13 Farid 67
14 Mohammad 324
15 Farbod 785

I want to have empty cells or zero when there is not "12".

Please help me.





Reply
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
Combining Lookup function and Sum function Cameron Excel Worksheet Functions 2 July 13th 09 02:19 AM
LOOKUP FUNCTION? (LOOKUP VALUE BEING A TIME RENERATED FROM A FORMU JCC Excel Discussion (Misc queries) 5 June 26th 09 09:15 PM
Excel Data Validation/Lookup function does function correcty Kirkey Excel Worksheet Functions 2 May 25th 09 09:22 PM
how to combine an IF Function with a lookup function to determine [email protected] Excel Worksheet Functions 1 December 5th 06 06:09 AM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM


All times are GMT +1. The time now is 11:07 PM.

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

About Us

"It's about Microsoft Excel"