Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
DMDave
 
Posts: n/a
Default Help with TYPE function

The result of a formula in my WS is #N/A. I would like to replace that
with 0. The formula I tried is:
=IF(TYPE(C144)=(#N/A),0,(VLOOKUP(NetAdj!C144*7,'Labor
Guideline'!$A$3:$C$75,2)+((NetAdj!C144*7-VLOOKUP(NetAdj!C144*7,'Labor
Guideline'!$A$3:$C$75,1))*0.016))/7)

I have also tried replacing the (#N/A) in the above formula with the
number 7 (The number which Excel says is returned when the TYPE is
#N/A.
I continue to get the #N/A result.
I also tried the ERROR.TYPE function with no luck.

Anyone know what I may be doing wrong?

Thank You,
Dave
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Help with TYPE function

You could use:

=if(isna(c144),0,....


If you decide that you don't care what type of error it is, you could use:

=if(iserror(c144),0,...

And remember that vlookup()'s can return #n/a's, too. You may want to make sure
c144 is a nice number and see what just the =vlookup() evaluates to.

DMDave wrote:

The result of a formula in my WS is #N/A. I would like to replace that
with 0. The formula I tried is:
=IF(TYPE(C144)=(#N/A),0,(VLOOKUP(NetAdj!C144*7,'Labor
Guideline'!$A$3:$C$75,2)+((NetAdj!C144*7-VLOOKUP(NetAdj!C144*7,'Labor
Guideline'!$A$3:$C$75,1))*0.016))/7)

I have also tried replacing the (#N/A) in the above formula with the
number 7 (The number which Excel says is returned when the TYPE is
#N/A.
I continue to get the #N/A result.
I also tried the ERROR.TYPE function with no luck.

Anyone know what I may be doing wrong?

Thank You,
Dave


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
DMDave
 
Posts: n/a
Default Help with TYPE function

Dave
I have used both of the options you provided but its still returning
#N/A. I know that those formulas should work.
As for the VLOOKUP portion, That portion works fine if there is data
available for the lookup. Since there is no data shouldn't it just
return 0?
Is there maybe an Excel setting that I'm missing?

Dave Peterson wrote:
You could use:

=if(isna(c144),0,....


If you decide that you don't care what type of error it is, you could use:

=if(iserror(c144),0,...

And remember that vlookup()'s can return #n/a's, too. You may want to make sure
c144 is a nice number and see what just the =vlookup() evaluates to.

DMDave wrote:

The result of a formula in my WS is #N/A. I would like to replace that
with 0. The formula I tried is:
=IF(TYPE(C144)=(#N/A),0,(VLOOKUP(NetAdj!C144*7,'Labor
Guideline'!$A$3:$C$75,2)+((NetAdj!C144*7-VLOOKUP(NetAdj!C144*7,'Labor
Guideline'!$A$3:$C$75,1))*0.016))/7)

I have also tried replacing the (#N/A) in the above formula with the
number 7 (The number which Excel says is returned when the TYPE is
#N/A.
I continue to get the #N/A result.
I also tried the ERROR.TYPE function with no luck.

Anyone know what I may be doing wrong?

Thank You,
Dave


--

Dave Peterson


  #4   Report Post  
Posted to microsoft.public.excel.misc
DMDave
 
Posts: n/a
Default Help with TYPE function

Dave,
Nevermind, I missed a simple thing like calculate now.
Does Gray hair turn of certain memory cells in your brain? (g)

  #5   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben
 
Posts: n/a
Default Help with TYPE function

Try this formula

=IF(ISNA(VLOOKUP..),0,VLOOKUP(...))


IF(ISNA(VLOOKUP..),0,VLOOKUP(...))

On 7 May 2006 09:47:13 -0700, "DMDave" wrote:

Dave
I have used both of the options you provided but its still returning
#N/A. I know that those formulas should work.
As for the VLOOKUP portion, That portion works fine if there is data
available for the lookup. Since there is no data shouldn't it just
return 0?
Is there maybe an Excel setting that I'm missing?

Dave Peterson wrote:
You could use:

=if(isna(c144),0,....


If you decide that you don't care what type of error it is, you could use:

=if(iserror(c144),0,...

And remember that vlookup()'s can return #n/a's, too. You may want to make sure
c144 is a nice number and see what just the =vlookup() evaluates to.

DMDave wrote:

The result of a formula in my WS is #N/A. I would like to replace that
with 0. The formula I tried is:
=IF(TYPE(C144)=(#N/A),0,(VLOOKUP(NetAdj!C144*7,'Labor
Guideline'!$A$3:$C$75,2)+((NetAdj!C144*7-VLOOKUP(NetAdj!C144*7,'Labor
Guideline'!$A$3:$C$75,1))*0.016))/7)

I have also tried replacing the (#N/A) in the above formula with the
number 7 (The number which Excel says is returned when the TYPE is
#N/A.
I continue to get the #N/A result.
I also tried the ERROR.TYPE function with no luck.

Anyone know what I may be doing wrong?

Thank You,
Dave


--

Dave Peterson


Gord Dibben MS Excel MVP


  #6   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Help with TYPE function

I think gray is an indicator of loss of brain cells--not a cause. <vbg

DMDave wrote:

Dave,
Nevermind, I missed a simple thing like calculate now.
Does Gray hair turn of certain memory cells in your brain? (g)


--

Dave Peterson
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
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
multiple results display after filter function Morphyus C via OfficeKB.com Excel Worksheet Functions 1 August 11th 05 03:17 PM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
Is there a WorkDay() type function that count all days except tho. Dark Skunk Excel Worksheet Functions 8 February 15th 05 08:37 PM


All times are GMT +1. The time now is 06:06 AM.

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"