ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   If/Or/VLookup Formula (https://www.excelbanter.com/excel-programming/328117-if-vlookup-formula.html)

Phil Hageman[_4_]

If/Or/VLookup Formula
 
The VLookup portion of this formula works. I tacked on the OR portion and
cant get things to operate. If cell T40 is zero, or has a (legitimate)
#DIV/0! Error, I want cell T40 blank, otherwise execute the VLookup.

=(IF(OR(T40=0,ISERROR,""),VLOOKUP(T40,$AT$8:$AU$12 ,2)))


Dave Peterson[_5_]

If/Or/VLookup Formula
 
Maybe...

=(IF(OR(T40=0,ISERROR(t40)),"",VLOOKUP(T40,$AT$8:$ AU$12,2)))

Phil Hageman wrote:

The VLookup portion of this formula works. I tacked on the OR portion and
cant get things to operate. If cell T40 is zero, or has a (legitimate)
#DIV/0! Error, I want cell T40 blank, otherwise execute the VLookup.

=(IF(OR(T40=0,ISERROR,""),VLOOKUP(T40,$AT$8:$AU$12 ,2)))


--

Dave Peterson

kassie

If/Or/VLookup Formula
 
=IF(OR(ISERROR(T40),T40=0,T40=""),"",VLOOKUP(T40,$ AT$8:$AU$12,2))

"Phil Hageman" wrote:

The VLookup portion of this formula works. I tacked on the OR portion and
cant get things to operate. If cell T40 is zero, or has a (legitimate)
#DIV/0! Error, I want cell T40 blank, otherwise execute the VLookup.

=(IF(OR(T40=0,ISERROR,""),VLOOKUP(T40,$AT$8:$AU$12 ,2)))


Phil Hageman[_4_]

If/Or/VLookup Formula
 
Kassie and Dave,

Thanks for your answer - both formulas worked. Appreciate the help.

Phil

"Kassie" wrote:

=IF(OR(ISERROR(T40),T40=0,T40=""),"",VLOOKUP(T40,$ AT$8:$AU$12,2))

"Phil Hageman" wrote:

The VLookup portion of this formula works. I tacked on the OR portion and
cant get things to operate. If cell T40 is zero, or has a (legitimate)
#DIV/0! Error, I want cell T40 blank, otherwise execute the VLookup.

=(IF(OR(T40=0,ISERROR,""),VLOOKUP(T40,$AT$8:$AU$12 ,2)))



All times are GMT +1. The time now is 02:23 PM.

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