Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 318
Default Why Different results

Hello
THis is my formula
=IF(ISNA(IF(ISNA(VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)),VLOOKUP(D42,'ALL JDE HARMONIZATION
CODES'!$B$1:$D$27061,3,FALSE))),"",IF(ISNA(VLOOKUP ($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)),VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$B$1:$D$27061,3,FALSE),VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)))

This gives me the right answer but when there is no answer I get 3 different
results I get 0 or blank , (which is what I want) or #NA. Why three
different answers. What is wrong ? thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Why Different results

=IF(ISERROR(OR(VLOOKUP([vlookup1]),VLOOKUP([vlookup2])),"",IF(ISERROR(VLOOKUP([vlookup1]),VLOOKUP([vlookup2]),VLOOKUP([vlookup1])))

Dave
--
Brevity is the soul of wit.


"Wanna Learn" wrote:

Hello
THis is my formula
=IF(ISNA(IF(ISNA(VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)),VLOOKUP(D42,'ALL JDE HARMONIZATION
CODES'!$B$1:$D$27061,3,FALSE))),"",IF(ISNA(VLOOKUP ($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)),VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$B$1:$D$27061,3,FALSE),VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)))

This gives me the right answer but when there is no answer I get 3 different
results I get 0 or blank , (which is what I want) or #NA. Why three
different answers. What is wrong ? thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Why Different results

I think it should be
=IF(and(ISERROR(VLOOKUP([vlookup1]),iserror(VLOOKUP([vlookup2])),"",IF(ISERROR(VLOOKUP([vlookup1]),VLOOKUP([vlookup2]),VLOOKUP([vlookup1])))

"Dave F" wrote:

=IF(ISERROR(OR(VLOOKUP([vlookup1]),VLOOKUP([vlookup2])),"",IF(ISERROR(VLOOKUP([vlookup1]),VLOOKUP([vlookup2]),VLOOKUP([vlookup1])))

Dave
--
Brevity is the soul of wit.


"Wanna Learn" wrote:

Hello
THis is my formula
=IF(ISNA(IF(ISNA(VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)),VLOOKUP(D42,'ALL JDE HARMONIZATION
CODES'!$B$1:$D$27061,3,FALSE))),"",IF(ISNA(VLOOKUP ($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)),VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$B$1:$D$27061,3,FALSE),VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)))

This gives me the right answer but when there is no answer I get 3 different
results I get 0 or blank , (which is what I want) or #NA. Why three
different answers. What is wrong ? thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Why Different results

Why and? My understanding is that if VLOOKUP1 OR VLOOKUP2 return errors, he
wants a blank returned? Of course if that's incorrect, and the test is
whether BOTH vlookups return errors, then yes, AND is correct.

Dave
--
Brevity is the soul of wit.


"bj" wrote:

I think it should be
=IF(and(ISERROR(VLOOKUP([vlookup1]),iserror(VLOOKUP([vlookup2])),"",IF(ISERROR(VLOOKUP([vlookup1]),VLOOKUP([vlookup2]),VLOOKUP([vlookup1])))

"Dave F" wrote:

=IF(ISERROR(OR(VLOOKUP([vlookup1]),VLOOKUP([vlookup2])),"",IF(ISERROR(VLOOKUP([vlookup1]),VLOOKUP([vlookup2]),VLOOKUP([vlookup1])))

Dave
--
Brevity is the soul of wit.


"Wanna Learn" wrote:

Hello
THis is my formula
=IF(ISNA(IF(ISNA(VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)),VLOOKUP(D42,'ALL JDE HARMONIZATION
CODES'!$B$1:$D$27061,3,FALSE))),"",IF(ISNA(VLOOKUP ($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)),VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$B$1:$D$27061,3,FALSE),VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)))

This gives me the right answer but when there is no answer I get 3 different
results I get 0 or blank , (which is what I want) or #NA. Why three
different answers. What is wrong ? thanks

  #5   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Why Different results

His original isna() would only be true if both L1 and L2 returned errors
with your equation the "else" section would not need the iserror section
I still do not understand why he gets the three responses

"Dave F" wrote:

Why and? My understanding is that if VLOOKUP1 OR VLOOKUP2 return errors, he
wants a blank returned? Of course if that's incorrect, and the test is
whether BOTH vlookups return errors, then yes, AND is correct.

Dave
--
Brevity is the soul of wit.


"bj" wrote:

I think it should be
=IF(and(ISERROR(VLOOKUP([vlookup1]),iserror(VLOOKUP([vlookup2])),"",IF(ISERROR(VLOOKUP([vlookup1]),VLOOKUP([vlookup2]),VLOOKUP([vlookup1])))

"Dave F" wrote:

=IF(ISERROR(OR(VLOOKUP([vlookup1]),VLOOKUP([vlookup2])),"",IF(ISERROR(VLOOKUP([vlookup1]),VLOOKUP([vlookup2]),VLOOKUP([vlookup1])))

Dave
--
Brevity is the soul of wit.


"Wanna Learn" wrote:

Hello
THis is my formula
=IF(ISNA(IF(ISNA(VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)),VLOOKUP(D42,'ALL JDE HARMONIZATION
CODES'!$B$1:$D$27061,3,FALSE))),"",IF(ISNA(VLOOKUP ($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)),VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$B$1:$D$27061,3,FALSE),VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)))

This gives me the right answer but when there is no answer I get 3 different
results I get 0 or blank , (which is what I want) or #NA. Why three
different answers. What is wrong ? thanks



  #6   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Why Different results

a simpler equation would be
=if(isna(Vlookup1)),if(isna(Vlookup2)),"",Vlookup2 ),Vlookup1)
If 1 and 2 could give different results, Priority for 1 and 2 must be
watched this form would respond for Vlookup 1 as apreference

"bj" wrote:

I think it should be
=IF(and(ISERROR(VLOOKUP([vlookup1]),iserror(VLOOKUP([vlookup2])),"",IF(ISERROR(VLOOKUP([vlookup1]),VLOOKUP([vlookup2]),VLOOKUP([vlookup1])))

"Dave F" wrote:

=IF(ISERROR(OR(VLOOKUP([vlookup1]),VLOOKUP([vlookup2])),"",IF(ISERROR(VLOOKUP([vlookup1]),VLOOKUP([vlookup2]),VLOOKUP([vlookup1])))

Dave
--
Brevity is the soul of wit.


"Wanna Learn" wrote:

Hello
THis is my formula
=IF(ISNA(IF(ISNA(VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)),VLOOKUP(D42,'ALL JDE HARMONIZATION
CODES'!$B$1:$D$27061,3,FALSE))),"",IF(ISNA(VLOOKUP ($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)),VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$B$1:$D$27061,3,FALSE),VLOOKUP($D2,'ALL JDE HARMONIZATION
CODES'!$A$1:$D$27061,4,FALSE)))

This gives me the right answer but when there is no answer I get 3 different
results I get 0 or blank , (which is what I want) or #NA. Why three
different answers. What is wrong ? thanks

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
vlookup on pivot table results = #N/A Louis Excel Worksheet Functions 5 May 13th 23 07:43 PM
How can I output VBA function results (array's for example) to spreadsheet [email protected] Excel Worksheet Functions 2 January 11th 07 05:49 PM
Returning Numeric Results across a Single Row in Consecutive Cells Sam via OfficeKB.com Excel Worksheet Functions 8 July 16th 06 01:52 AM
abdualmohsn almedrahe abdualmohsn ahmad Excel Discussion (Misc queries) 1 November 19th 05 06:32 PM
Date stamp formula results? Tricky problem? mjp Excel Discussion (Misc queries) 0 November 18th 05 04:11 PM


All times are GMT +1. The time now is 06:42 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"