Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Help needed for Excel formula using if, iserr, match and vlookup!

Hi
I need help with the following formula:
=if(=iserr(=match(a2,LIST,0))=0,=vlookup(a2,DATA,1 ),0)
Excel says there is something wrong with my formula but won't say what.

What is it doing?
I have a list of data in columns B, C and D that are unique to the value in
A. Basically on Sheet 2 cell B2 I want to lookup a value (in A2) from the
selected range (LIST on Sheet1 ie: A2:A100) and if it is there, then I want
the cell (B2) to return the corresponding value from column 1 in the range
DATA (A2:D100). if it is not there then I want it to return a value of n/a or
"#n/a" (anything to indicate it isn't there).

I have moved over from Lotus 123 (cause I found it difficult to use) and the
formula I use (sucessfully) in 123 is:
@if(@iserr(@match(a2,$list,0))=0,@vlookup(a2,$data ,1),0)

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Help needed for Excel formula using if, iserr, match and vlookup!

Try it like this:

=if(iserror(match(a2,LIST,0)),"n/a",vlookup(a2,DATA,1,0))

I assume that LIST and DATA are named ranges that you have defined. If
you haven't then you will have to put the range references in
explicitly like this:

=if(iserror(match(a2,Sheet1!$A$2:$A$100,0)),"n/a",vlookup(a2,Sheet1!$A
$2,$D$100,1,0))

You might want to change the column number for the returned data - all
this is doing (with column number of 1) is returning the same value
that you have just looked up, and there is little point in defining a
table of 4 columns in your formula if you are only using the first
one.

Hope this helps.

Pete

On Feb 12, 9:48*am, midget wrote:
Hi
I need help with the following formula:
=if(=iserr(=match(a2,LIST,0))=0,=vlookup(a2,DATA,1 ),0)
Excel says there is something wrong with my formula but won't say what.

What is it doing?
I have a list of data in columns B, C and D that are unique to the value in
A. Basically on Sheet 2 cell B2 I want to lookup a value (in A2) from the
selected range (LIST on Sheet1 ie: A2:A100) and if it is there, then I want
the cell (B2) to return the corresponding value from column 1 in the range
DATA (A2:D100). if it is not there then I want it to return a value of n/a or
"#n/a" (anything to indicate it isn't there).

I have moved over from Lotus 123 (cause I found it difficult to use) and the
formula I use (sucessfully) in 123 is:
@if(@iserr(@match(a2,$list,0))=0,@vlookup(a2,$data ,1),0)


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
re done Match formula needed bill gras Excel Worksheet Functions 3 November 30th 09 06:40 AM
match formula needed bill gras Excel Worksheet Functions 2 November 29th 09 06:12 AM
Match, VLookup possible formula needed Roibn L Taylor Excel Discussion (Misc queries) 7 January 23rd 09 02:33 AM
Complicated lookup/match formula help needed! Jason[_11_] Excel Worksheet Functions 2 March 21st 08 12:39 AM
Need for ISERR and ISNA Makes formula too Long [email protected] Excel Worksheet Functions 6 November 19th 07 09:14 PM


All times are GMT +1. The time now is 08:23 AM.

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"