#1   Report Post  
Jon1205
 
Posts: n/a
Default Conditional IF

I have this equation in the column E cells:

=IF(VLOOKUP(D3,$H$2:$I$17,2,FALSE)0,VLOOKUP(D3,$H $2:$I$17,2,FALSE)*C3,0)

What I am trying to do is if there is no data in column D cells, I want it
to enter a zero (0). It is currently returning the #N/A error, wich is the
same error if I only had the vlookup () equation.

I want it to return a zero (0) because at the bottom I am summing the
content wich will return #N/A if one cell contains that message.

Thanks for any help
  #2   Report Post  
Minitman
 
Posts: n/a
Default

Hey Hon,

Try this:

=IF(D3="",0,IF(VLOOKUP(D3,$H$2:$I$17,2,FALSE)0,VL OOKUP(D3,$H$2:$I$17,2,FALSE)*C3,0))

Assuming that D3 has nothing in it this would give you a 0 in E3.

HTH

-Minitman

On Thu, 28 Jul 2005 13:04:05 -0700, "Jon1205"
wrote:

I have this equation in the column E cells:

=IF(VLOOKUP(D3,$H$2:$I$17,2,FALSE)0,VLOOKUP(D3,$ H$2:$I$17,2,FALSE)*C3,0)

What I am trying to do is if there is no data in column D cells, I want it
to enter a zero (0). It is currently returning the #N/A error, wich is the
same error if I only had the vlookup () equation.

I want it to return a zero (0) because at the bottom I am summing the
content wich will return #N/A if one cell contains that message.

Thanks for any help


  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

=IF(ISNA(VLOOKUP(D3,$H$2:$I$17,2,FALSE)),0,VLOOKUP (D3,$H$2:$I$17,2,FALSE)*C3)

You can also use something like this to ignore the #N/A:

=SUMIF(E1:E10,"<#N/A")

Biff

"Jon1205" wrote in message
...
I have this equation in the column E cells:

=IF(VLOOKUP(D3,$H$2:$I$17,2,FALSE)0,VLOOKUP(D3,$H $2:$I$17,2,FALSE)*C3,0)

What I am trying to do is if there is no data in column D cells, I want it
to enter a zero (0). It is currently returning the #N/A error, wich is
the
same error if I only had the vlookup () equation.

I want it to return a zero (0) because at the bottom I am summing the
content wich will return #N/A if one cell contains that message.

Thanks for any help



  #4   Report Post  
Trevor Shuttleworth
 
Posts: n/a
Default

Try:

=IF(ISNA(VLOOKUP(D3,$H$2:$I$17,2,FALSE)),0,VLOOKUP (D3,$H$2:$I$17,2,FALSE)*C3)

Regards

Trevor


"Jon1205" wrote in message
...
I have this equation in the column E cells:

=IF(VLOOKUP(D3,$H$2:$I$17,2,FALSE)0,VLOOKUP(D3,$H $2:$I$17,2,FALSE)*C3,0)

What I am trying to do is if there is no data in column D cells, I want it
to enter a zero (0). It is currently returning the #N/A error, wich is
the
same error if I only had the vlookup () equation.

I want it to return a zero (0) because at the bottom I am summing the
content wich will return #N/A if one cell contains that message.

Thanks for any help



  #5   Report Post  
eider
 
Posts: n/a
Default

I think what you want is:
=IF(ISERROR(VLOOKUP(D3,$H$2:$I$17,2,FALSE)),0,VLOO KUP(D3,$H$2:$I$17,2,FALSE)*C3)

"Jon1205" wrote:

I have this equation in the column E cells:

=IF(VLOOKUP(D3,$H$2:$I$17,2,FALSE)0,VLOOKUP(D3,$H $2:$I$17,2,FALSE)*C3,0)

What I am trying to do is if there is no data in column D cells, I want it
to enter a zero (0). It is currently returning the #N/A error, wich is the
same error if I only had the vlookup () equation.

I want it to return a zero (0) because at the bottom I am summing the
content wich will return #N/A if one cell contains that message.

Thanks for any help

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
How do i create a conditional sum? tmiller708 Excel Worksheet Functions 2 May 5th 05 01:58 AM
Effect of Conditional Formatting, Data Validation Bill Sturdevant Excel Discussion (Misc queries) 1 January 25th 05 11:50 PM
Determine cells that drive conditional formatting? Nicolle K. Excel Discussion (Misc queries) 2 January 7th 05 01:08 AM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM
copy conditional format as ACTUAL format Dana Zulager Excel Discussion (Misc queries) 7 December 7th 04 11:02 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"