ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   #N/A Error w/LOOKUP Function (https://www.excelbanter.com/excel-worksheet-functions/188830-n-error-w-lookup-function.html)

sony654

#N/A Error w/LOOKUP Function
 
The below function is producing exactly the result I want when I have a
value entered in the LOOKUP range. But, if no values entered in the LOOKUP
range t returns the #N/A error. How do I edit this function result to
display "-", or blank if a value is not entered in the LOOKUP range? Thanks
for your help. Sony

=LOOKUP(BigNum,CHOOSE(MATCH(TRUE,COUNTIF(INDIRECT( {"b122:af122","b116:af116","b110:af110","b104:af10 4","b98:af98","b92:af92","b86:af86","b80:af80","b7 4:af74","b68:af68","b62:af62","b56:af56"}),"<")0 ,0),$B$122:$AF$122,$B$116:$AF$116,$B$110:$AF$110,$ B$104:$AF$104,$B$98:$AF$98,$B$92:$AF$92,$B$86:$AF$ 86,$B$80:$AF$80,$B$74:$AF$74,$B$68:$AF$68,$B$62:$A F$62,$B$56:$AF$56))




--
Sony Luvy

T. Valko

#N/A Error w/LOOKUP Function
 
I would use another cell with this formula:

Assume this formula is in cell A1:

=COUNT($B$122:$AF$122,$B$116:$AF$116,$B$110:$AF$11 0,$B$104:$AF$104,
$B$98:$AF$98,$B$92:$AF$92,$B$86:$AF$86,$B$80:$AF$8 0,
$B$74:$AF$74,$B$68:$AF$68,$B$62:$AF$62,$B$56:$AF$5 6)

Then refer to that cell:

=IF(A1=0,"-",your_formula)


--
Biff
Microsoft Excel MVP


"sony654" wrote in message
...
The below function is producing exactly the result I want when I have a
value entered in the LOOKUP range. But, if no values entered in the
LOOKUP
range t returns the #N/A error. How do I edit this function result to
display "-", or blank if a value is not entered in the LOOKUP range?
Thanks
for your help. Sony

=LOOKUP(BigNum,CHOOSE(MATCH(TRUE,COUNTIF(INDIRECT( {"b122:af122","b116:af116","b110:af110","b104:af10 4","b98:af98","b92:af92","b86:af86","b80:af80","b7 4:af74","b68:af68","b62:af62","b56:af56"}),"<")0 ,0),$B$122:$AF$122,$B$116:$AF$116,$B$110:$AF$110,$ B$104:$AF$104,$B$98:$AF$98,$B$92:$AF$92,$B$86:$AF$ 86,$B$80:$AF$80,$B$74:$AF$74,$B$68:$AF$68,$B$62:$A F$62,$B$56:$AF$56))




--
Sony Luvy




muddan madhu

#N/A Error w/LOOKUP Function
 
if u are getting error #NA, then use =if(isna(formula),"-",formula)



On May 26, 10:00*am, "T. Valko" wrote:
I would use another cell with this formula:

Assume this formula is in cell A1:

=COUNT($B$122:$AF$122,$B$116:$AF$116,$B$110:$AF$11 0,$B$104:$AF$104,
$B$98:$AF$98,$B$92:$AF$92,$B$86:$AF$86,$B$80:$AF$8 0,
$B$74:$AF$74,$B$68:$AF$68,$B$62:$AF$62,$B$56:$AF$5 6)

Then refer to that cell:

=IF(A1=0,"-",your_formula)

--
Biff
Microsoft Excel MVP

"sony654" wrote in message

...



The below function is producing exactly the result I want *when I have a
value entered in the LOOKUP range. *But, if no values entered in the
LOOKUP
range t returns the #N/A error. *How do I edit this function result to
display "-", or blank if a value is not entered in the LOOKUP range?
Thanks
for your help. *Sony


=LOOKUP(BigNum,CHOOSE(MATCH(TRUE,COUNTIF(INDIRECT( {"b122:af122","b116:af116*","b110:af110","b104:af1 04","b98:af98","b92:af92","b86:af86","b80:af80","b 7*4:af74","b68:af68","b62:af62","b56:af56"}),"<") 0,0),$B$122:$AF$122,$B$116*:$AF$116,$B$110:$AF$11 0,$B$104:$AF$104,$B$98:$AF$98,$B$92:$AF$92,$B$86:$ AF$*86,$B$80:$AF$80,$B$74:$AF$74,$B$68:$AF$68,$B$6 2:$AF$62,$B$56:$AF$56))


--
Sony Luvy- Hide quoted text -


- Show quoted text -



Peo Sjoblom

#N/A Error w/LOOKUP Function
 
Did you try that with this particular formula?


--


Regards,


Peo Sjoblom



"muddan madhu" wrote in message
...
if u are getting error #NA, then use =if(isna(formula),"-",formula)



On May 26, 10:00 am, "T. Valko" wrote:
I would use another cell with this formula:

Assume this formula is in cell A1:

=COUNT($B$122:$AF$122,$B$116:$AF$116,$B$110:$AF$11 0,$B$104:$AF$104,
$B$98:$AF$98,$B$92:$AF$92,$B$86:$AF$86,$B$80:$AF$8 0,
$B$74:$AF$74,$B$68:$AF$68,$B$62:$AF$62,$B$56:$AF$5 6)

Then refer to that cell:

=IF(A1=0,"-",your_formula)

--
Biff
Microsoft Excel MVP

"sony654" wrote in message

...



The below function is producing exactly the result I want when I have a
value entered in the LOOKUP range. But, if no values entered in the
LOOKUP
range t returns the #N/A error. How do I edit this function result to
display "-", or blank if a value is not entered in the LOOKUP range?
Thanks
for your help. Sony


=LOOKUP(BigNum,CHOOSE(MATCH(TRUE,COUNTIF(INDIRECT( {"b122:af122","b116:af116*","b110:af110","b104:af1 04","b98:af98","b92:af92","b86:af86","b80:af80","b 7*4:af74","b68:af68","b62:af62","b56:af56"}),"<") 0,0),$B$122:$AF$122,$B$116*:$AF$116,$B$110:$AF$11 0,$B$104:$AF$104,$B$98:$AF$98,$B$92:$AF$92,$B$86:$ AF$*86,$B$80:$AF$80,$B$74:$AF$74,$B$68:$AF$68,$B$6 2:$AF$62,$B$56:$AF$56))


--
Sony Luvy- Hide quoted text -


- Show quoted text -




sony654

#N/A Error w/LOOKUP Function
 
Biff, Thanks for your solution to qualifying b56. You have been very
helpful, now a couple times. I would like to qualify b56:af56, not just b56.
Changed my mind. The formula below returns an error. Can you please advise
how to fix? Thanks


=if($b$56:$af$56=0,""),COUNT($B$122:$AF$122,$B$116 :$AF$116,$B$110:$AF$110,$B$104:$AF$104,
$B$98:$AF$98,$B$92:$AF$92,$B$86:$AF$86,$B$80:$AF$8 0,
$B$74:$AF$74,$B$68:$AF$68,$B$62:$AF$62,$B$56:$AF$5 6))



--
Sony Luvy


"T. Valko" wrote:

I would use another cell with this formula:

Assume this formula is in cell A1:

=COUNT($B$122:$AF$122,$B$116:$AF$116,$B$110:$AF$11 0,$B$104:$AF$104,
$B$98:$AF$98,$B$92:$AF$92,$B$86:$AF$86,$B$80:$AF$8 0,
$B$74:$AF$74,$B$68:$AF$68,$B$62:$AF$62,$B$56:$AF$5 6)

Then refer to that cell:

=IF(A1=0,"-",your_formula)


--
Biff
Microsoft Excel MVP


"sony654" wrote in message
...
The below function is producing exactly the result I want when I have a
value entered in the LOOKUP range. But, if no values entered in the
LOOKUP
range t returns the #N/A error. How do I edit this function result to
display "-", or blank if a value is not entered in the LOOKUP range?
Thanks
for your help. Sony

=LOOKUP(BigNum,CHOOSE(MATCH(TRUE,COUNTIF(INDIRECT( {"b122:af122","b116:af116","b110:af110","b104:af10 4","b98:af98","b92:af92","b86:af86","b80:af80","b7 4:af74","b68:af68","b62:af62","b56:af56"}),"<")0 ,0),$B$122:$AF$122,$B$116:$AF$116,$B$110:$AF$110,$ B$104:$AF$104,$B$98:$AF$98,$B$92:$AF$92,$B$86:$AF$ 86,$B$80:$AF$80,$B$74:$AF$74,$B$68:$AF$68,$B$62:$A F$62,$B$56:$AF$56))




--
Sony Luvy





Peo Sjoblom

#N/A Error w/LOOKUP Function
 
So you want to check if all 31 cells from B56 to AF56 are 0


=IF(COUNTIF($B$56:$AF$56,0)=COLUMNS($B$56:$AF$56), "",COUNT($B$122:$AF$122,$B$116:$AF$116,$B$110:$AF$ 110,$B$104:$AF$104,$B$98:$AF$98,$B$92:$AF$92,$B$86 :$AF$86,$B$80:$AF$80,$B$74:$AF$74,$B$68:$AF$68,$B$ 62:$AF$62,$B$56:$AF$56))


--


Regards,


Peo Sjoblom




"sony654" wrote in message
...
Biff, Thanks for your solution to qualifying b56. You have been very
helpful, now a couple times. I would like to qualify b56:af56, not just
b56.
Changed my mind. The formula below returns an error. Can you please
advise
how to fix? Thanks


=if($b$56:$af$56=0,""),COUNT($B$122:$AF$122,$B$116 :$AF$116,$B$110:$AF$110,$B$104:$AF$104,
$B$98:$AF$98,$B$92:$AF$92,$B$86:$AF$86,$B$80:$AF$8 0,
$B$74:$AF$74,$B$68:$AF$68,$B$62:$AF$62,$B$56:$AF$5 6))



--
Sony Luvy


"T. Valko" wrote:

I would use another cell with this formula:

Assume this formula is in cell A1:

=COUNT($B$122:$AF$122,$B$116:$AF$116,$B$110:$AF$11 0,$B$104:$AF$104,
$B$98:$AF$98,$B$92:$AF$92,$B$86:$AF$86,$B$80:$AF$8 0,
$B$74:$AF$74,$B$68:$AF$68,$B$62:$AF$62,$B$56:$AF$5 6)

Then refer to that cell:

=IF(A1=0,"-",your_formula)


--
Biff
Microsoft Excel MVP


"sony654" wrote in message
...
The below function is producing exactly the result I want when I have
a
value entered in the LOOKUP range. But, if no values entered in the
LOOKUP
range t returns the #N/A error. How do I edit this function result to
display "-", or blank if a value is not entered in the LOOKUP range?
Thanks
for your help. Sony

=LOOKUP(BigNum,CHOOSE(MATCH(TRUE,COUNTIF(INDIRECT( {"b122:af122","b116:af116","b110:af110","b104:af10 4","b98:af98","b92:af92","b86:af86","b80:af80","b7 4:af74","b68:af68","b62:af62","b56:af56"}),"<")0 ,0),$B$122:$AF$122,$B$116:$AF$116,$B$110:$AF$110,$ B$104:$AF$104,$B$98:$AF$98,$B$92:$AF$92,$B$86:$AF$ 86,$B$80:$AF$80,$B$74:$AF$74,$B$68:$AF$68,$B$62:$A F$62,$B$56:$AF$56))




--
Sony Luvy







T. Valko

#N/A Error w/LOOKUP Function
 
Or, you could use the slightly shorter array formula** :

=IF(AND($B$56:$AF$56=0),"",COUNT(.....))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Peo Sjoblom" wrote in message
...
So you want to check if all 31 cells from B56 to AF56 are 0


=IF(COUNTIF($B$56:$AF$56,0)=COLUMNS($B$56:$AF$56), "",COUNT($B$122:$AF$122,$B$116:$AF$116,$B$110:$AF$ 110,$B$104:$AF$104,$B$98:$AF$98,$B$92:$AF$92,$B$86 :$AF$86,$B$80:$AF$80,$B$74:$AF$74,$B$68:$AF$68,$B$ 62:$AF$62,$B$56:$AF$56))


--


Regards,


Peo Sjoblom




"sony654" wrote in message
...
Biff, Thanks for your solution to qualifying b56. You have been very
helpful, now a couple times. I would like to qualify b56:af56, not just
b56.
Changed my mind. The formula below returns an error. Can you please
advise
how to fix? Thanks


=if($b$56:$af$56=0,""),COUNT($B$122:$AF$122,$B$116 :$AF$116,$B$110:$AF$110,$B$104:$AF$104,
$B$98:$AF$98,$B$92:$AF$92,$B$86:$AF$86,$B$80:$AF$8 0,
$B$74:$AF$74,$B$68:$AF$68,$B$62:$AF$62,$B$56:$AF$5 6))



--
Sony Luvy


"T. Valko" wrote:

I would use another cell with this formula:

Assume this formula is in cell A1:

=COUNT($B$122:$AF$122,$B$116:$AF$116,$B$110:$AF$11 0,$B$104:$AF$104,
$B$98:$AF$98,$B$92:$AF$92,$B$86:$AF$86,$B$80:$AF$8 0,
$B$74:$AF$74,$B$68:$AF$68,$B$62:$AF$62,$B$56:$AF$5 6)

Then refer to that cell:

=IF(A1=0,"-",your_formula)


--
Biff
Microsoft Excel MVP


"sony654" wrote in message
...
The below function is producing exactly the result I want when I have
a
value entered in the LOOKUP range. But, if no values entered in the
LOOKUP
range t returns the #N/A error. How do I edit this function result to
display "-", or blank if a value is not entered in the LOOKUP range?
Thanks
for your help. Sony

=LOOKUP(BigNum,CHOOSE(MATCH(TRUE,COUNTIF(INDIRECT( {"b122:af122","b116:af116","b110:af110","b104:af10 4","b98:af98","b92:af92","b86:af86","b80:af80","b7 4:af74","b68:af68","b62:af62","b56:af56"}),"<")0 ,0),$B$122:$AF$122,$B$116:$AF$116,$B$110:$AF$110,$ B$104:$AF$104,$B$98:$AF$98,$B$92:$AF$92,$B$86:$AF$ 86,$B$80:$AF$80,$B$74:$AF$74,$B$68:$AF$68,$B$62:$A F$62,$B$56:$AF$56))




--
Sony Luvy









All times are GMT +1. The time now is 01:18 PM.

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