How do i get rid of the N/A in this formula

Georgeo83

New Member
Joined
May 27, 2010
Messages
9
i have 2 columns 1 to override the v lookup in the rate table but if both of them are blank i keep getting N/A

thanks in advance




=IF(J147>0,VLOOKUP(J147,'Trade RATE Table'!C:H,6,0),IF(K147>0,VLOOKUP(K147,'Trade RATE Table'!C:H,6,0)))
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
You could try the IFERROR() function. If there is an error in evaluating the first argument (in this case the vlookup) it will calculate the 2nd argument instead.

=IFERROR(VLOOKUP(J147,'Trade RATE Table'!C:H,6,0),IFERROR(VLOOKUP(K147,'Trade RATE Table'!C:H,6,0),"Error")

in the place of "Error" you just have to figure out what you want the output to be if both are blank.
 
Last edited:
Upvote 0
Which cell contains this formula?

When I placed the formula in cell L1 and the lookup value in cell J147 or K147 it works fine; when I clear both J147 and K147, the formula returns the value "False". Are you sure it is pulling information from the correct locations?
 
Upvote 0
Different function, ISERROR returns a TRUE or FALSE value telling you if there is an error. IFERROR allows you to have a backup action if your function encounters an error.

Not "IFERROR" - should be "ISERROR".
 
Last edited:
Upvote 0
hi guys thank you for your reply
this formula is in L147 the k147 cell contains this formula =IF(ISNA(VLOOKUP(D147,'SAP EMP INFO'!D:J,7,0)),"-",VLOOKUP(D147,'SAP EMP INFO'!D:J,7,0)), you are right if i hAVE J and K 147 blank it will return as false
 
Upvote 0
i have 2 columns 1 to override the v lookup in the rate table but if both of them are blank i keep getting N/A

thanks in advance




=IF(J147>0,VLOOKUP(J147,'Trade RATE Table'!C:H,6,0),IF(K147>0,VLOOKUP(K147,'Trade RATE Table'!C:H,6,0)))

=IF(OR(N(J147),N(K147)),VLOOKUP(IF(N(J147),J147,K147),'Trade RATE Table'!C:H,6,0),"")

This can still yield #N/A if the lookup value is not available. If you are
on 2007 or later...

=IFERROR(VLOOKUP(IF(N(J147),J147,K147),'Trade RATE Table'!C:H,6,0),"")
 
Last edited:
Upvote 0
Is IFERROR new to 2007 and later? I hadn't heard of it before. I am (tragically and embarassingly) still working with 2003.
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,304
Members
452,904
Latest member
CodeMasterX

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top