Vlookup help please

Korimint

New Member
Joined
Feb 5, 2011
Messages
42
Why does this formula create and #N/A

=IF($A8="","",VLOOKUP($A8,'What needs made'!$C$2:$H$36,4,0))

But this one does not

=IF($A8="","",VLOOKUP($A8,'What needs made'!$C$2:$H$36,5,0))

Both are looking up a zero total, the second formula returns a zero, the first formula returns a "Blank space"

Do I have a formating error? Both are formated to be Numbers.

So confused!!

I am using excel 2010 & Windows 7

Thanks for the help!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
ive just tried both senarios on excel 2007 and got the ame result
a 0 for blank and a blank for a formula cell.

May require another if statement, do you want to return the blank or the 0?
 
Upvote 0
Why does this formula create and #N/A

=IF($A8="","",VLOOKUP($A8,'What needs made'!$C$2:$H$36,4,0))

But this one does not

=IF($A8="","",VLOOKUP($A8,'What needs made'!$C$2:$H$36,5,0))

Both are looking up a zero total, the second formula returns a zero, the first formula returns a "Blank space"

Do I have a formating error? Both are formated to be Numbers.

So confused!!

I am using excel 2010 & Windows 7

Thanks for the help!

Are you trying to say that:

a)

=IF($A8="","",VLOOKUP($A8,'What needs made'!$C$2:$H$36,4,0))

is expected to return a blank ("" or 0 a space char ?);

b)

=IF($A8="","",VLOOKUP($A8,'What needs made'!$C$2:$H$36,5,0))

is expected to return a 0.

But, with (a) you get #N/A, with (b) you don't.

Question: Does $A8 house the same value when you get #N/A and when you don't?
 
Upvote 0
ive just tried both senarios on excel 2007 and got the ame result
a 0 for blank and a blank for a formula cell.

May require another if statement, do you want to return the blank or the 0?

I would like it to return a 0 so my other calculations work :)

Thanks for the help!
 
Upvote 0
Are you trying to say that:

a)

=IF($A8="","",VLOOKUP($A8,'What needs made'!$C$2:$H$36,4,0))

is expected to return a blank ("" or 0 a space char ?);

b)

=IF($A8="","",VLOOKUP($A8,'What needs made'!$C$2:$H$36,5,0))

is expected to return a 0.

But, with (a) you get #N/A, with (b) you don't.

Question: Does $A8 house the same value when you get #N/A and when you don't?

I would like a) to return a 0 not a blank space

Yes $A8 houses the same value
 
Upvote 0
=IF($A8="","",IF(VLOOKUP($A8,'What needs made'!$C$2:$H$36,4,0)="",0,VLOOKUP($A8,'What needs made'!$C$2:$H$36,4,0)))

there is probably a better way
 
Upvote 0
=IF($A8="","",IF(VLOOKUP($A8,'What needs made'!$C$2:$H$36,4,0)="",0,VLOOKUP($A8,'What needs made'!$C$2:$H$36,4,0)))

there is probably a better way

Thanks, that at least helps me understand what I need to think :)

Thanks again for the help!
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,718
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top