#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Excel Vlookup HELP

I have a drop down menu that I use for parts and pricing. The problem I have
is on my quote sheet it won't let me add up all of my pricing because not all
fields are filled in some are blank and when they are blank the total is #N/A
not allowing you to add up #N/A mixed with numbers or it will come up #N/A.

=VLOOKUP(SHELVING!J22,Cost!A1:B16,2,FALSE)

Is there a way an emty cell can be equal to zero without having to add and
select zero from a drop down menu giving the zero a $.00 cost.
I hope you can understand what i am doing. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Excel Vlookup HELP

Use this=

IF(ISERROR(VLOOKUP(SHELVING!J22,Cost!A1:B16,2,FALS E)),0,(VLOOKUP(SHELVING!J22,Cost!A1:B16,2,FALSE)))

That way if it would normally have an error it will convert it to 0.


Ashley

" wrote:

I have a drop down menu that I use for parts and pricing. The problem I have
is on my quote sheet it won't let me add up all of my pricing because not all
fields are filled in some are blank and when they are blank the total is #N/A
not allowing you to add up #N/A mixed with numbers or it will come up #N/A.

=VLOOKUP(SHELVING!J22,Cost!A1:B16,2,FALSE)

Is there a way an emty cell can be equal to zero without having to add and
select zero from a drop down menu giving the zero a $.00 cost.
I hope you can understand what i am doing. Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Excel Vlookup HELP

Ashley

ISERROR will mask all errors.

Better to trap for NA only

See Biff's post for ISNA function


Gord Dibben MS Excel MVP

On Wed, 3 Sep 2008 14:16:05 -0700, Ashley1432
wrote:

Use this=

IF(ISERROR(VLOOKUP(SHELVING!J22,Cost!A1:B16,2,FAL SE)),0,(VLOOKUP(SHELVING!J22,Cost!A1:B16,2,FALSE)) )

That way if it would normally have an error it will convert it to 0.


Ashley

" wrote:

I have a drop down menu that I use for parts and pricing. The problem I have
is on my quote sheet it won't let me add up all of my pricing because not all
fields are filled in some are blank and when they are blank the total is #N/A
not allowing you to add up #N/A mixed with numbers or it will come up #N/A.

=VLOOKUP(SHELVING!J22,Cost!A1:B16,2,FALSE)

Is there a way an emty cell can be equal to zero without having to add and
select zero from a drop down menu giving the zero a $.00 cost.
I hope you can understand what i am doing. Thanks


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Excel Vlookup HELP

You can use something like this that will ignore the errors:

=SUMIF(A1:A10,"<1E100")

However, you will probably be better off preventing those errors in the
first place:

=IF(ISNA(VLOOKUP(SHELVING!J22,Cost!A1:B16,2,0)),0, VLOOKUP(SHELVING!J22,Cost!A1:B16,2,0))



--
Biff
Microsoft Excel MVP


" wrote
in message ...
I have a drop down menu that I use for parts and pricing. The problem I
have
is on my quote sheet it won't let me add up all of my pricing because not
all
fields are filled in some are blank and when they are blank the total is
#N/A
not allowing you to add up #N/A mixed with numbers or it will come up
#N/A.

=VLOOKUP(SHELVING!J22,Cost!A1:B16,2,FALSE)

Is there a way an emty cell can be equal to zero without having to add and
select zero from a drop down menu giving the zero a $.00 cost.
I hope you can understand what i am doing. Thanks



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
VLOOKUP Conversion from Excel 2003 to Excel 2007 Michael D. Ober Excel Worksheet Functions 2 November 22nd 07 02:37 PM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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