Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default #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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default #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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default #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 -


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default #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 -



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default #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






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default #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






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default #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







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
error using LOOKUP function Horatio J. Bilge, Jr. Excel Discussion (Misc queries) 3 November 19th 07 07:37 PM
Error in lookup function hellotroy Excel Worksheet Functions 0 September 18th 05 11:51 PM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM
Lookup Function Error Jacinthe Excel Worksheet Functions 2 March 10th 05 07:37 AM
Vlookup & Lookup function error Beginner Excel Worksheet Functions 9 January 11th 05 12:37 AM


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