ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   nested vlookup needs to remove #name? (https://www.excelbanter.com/excel-discussion-misc-queries/138239-nested-vlookup-needs-remove-name.html)

[email protected]

nested vlookup needs to remove #name?
 
I have the following
=IF(VLOOKUP(I14,'ISSUES (2)'!$B:$M,12,FALSE)="M",
20,IF(VLOOKUP(I14,'ISSUES (2)'!$B:$M,12,FALSE)="H",
40,ifIF(VLOOKUP(I14,'ISSUES (2)'!$B:$M,12,FALSE)="L",12,0)))

if no match is found, i get #NAME?

how can i replace this with 0 if no match is found

Thanks in advance and happy easter.


Ron Coderre

nested vlookup needs to remove #name?
 
Assuming you pasted your formula correctly, you receive the #NAME error
because you double entered the last IF function.

ifIF should be IF

You might want to try this formula.

=IF(ISNUMBER(MATCH(I14,'ISSUES
(2)'!$B:$B,0)),SUMPRODUCT((VLOOKUP(I14,'ISSUES
(2)'!$B:$M,12,FALSE)={"M","H","L"})*{20,40,12}),0)

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


" wrote:

I have the following
=IF(VLOOKUP(I14,'ISSUES (2)'!$B:$M,12,FALSE)="M",
20,IF(VLOOKUP(I14,'ISSUES (2)'!$B:$M,12,FALSE)="H",
40,ifIF(VLOOKUP(I14,'ISSUES (2)'!$B:$M,12,FALSE)="L",12,0)))

if no match is found, i get #NAME?

how can i replace this with 0 if no match is found

Thanks in advance and happy easter.



Domenic

nested vlookup needs to remove #name?
 
Maybe...

=INDEX({12,20,40},MATCH(VLOOKUP(I14,'ISSUES
(2)'!$B:$M,12,FALSE),{"L","M","H"},0))

Or, to trap #N/A error values, define (Insert Name Define) BigNum as
9.99999999999999E+307, then try...

=LOOKUP(BigNum,CHOOSE({1,2},0,INDEX({12,20,40},MAT CH(VLOOKUP(I14,'ISSUES
(2)'!$B:$M,12,FALSE),{"L","M","H"},0))))

Hope this helps!

In article .com,
wrote:

I have the following
=IF(VLOOKUP(I14,'ISSUES (2)'!$B:$M,12,FALSE)="M",
20,IF(VLOOKUP(I14,'ISSUES (2)'!$B:$M,12,FALSE)="H",
40,ifIF(VLOOKUP(I14,'ISSUES (2)'!$B:$M,12,FALSE)="L",12,0)))

if no match is found, i get #NAME?

how can i replace this with 0 if no match is found

Thanks in advance and happy easter.



All times are GMT +1. The time now is 03:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com