#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 217
Default VLookUp

Hi all

I have created a VLookUp which works fine, however, because I want the data
returned to be exact and not return the closest figure, I have entered
'false' at the end of the formula. It works as expected, however, when it
cannot find an exact match it obviously returns 'N/A'.

How can I get it to return '0' instead, to make my report look better?

Thank you

Louise
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default VLookUp

Wrap your VLOOKUP formula in an IF statement, as

=IF(ISNA(YourVlookupFormula),0,YourVlookupFormula)

Vaya con Dios,
Chuck, CABGx3



"Louise" wrote:

Hi all

I have created a VLookUp which works fine, however, because I want the data
returned to be exact and not return the closest figure, I have entered
'false' at the end of the formula. It works as expected, however, when it
cannot find an exact match it obviously returns 'N/A'.

How can I get it to return '0' instead, to make my report look better?

Thank you

Louise

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 217
Default VLookUp

Sorry to 'sound' so stupid, does this mean I enter my formula twice??
THanks
Louise

"CLR" wrote:

Wrap your VLOOKUP formula in an IF statement, as

=IF(ISNA(YourVlookupFormula),0,YourVlookupFormula)

Vaya con Dios,
Chuck, CABGx3



"Louise" wrote:

Hi all

I have created a VLookUp which works fine, however, because I want the data
returned to be exact and not return the closest figure, I have entered
'false' at the end of the formula. It works as expected, however, when it
cannot find an exact match it obviously returns 'N/A'.

How can I get it to return '0' instead, to make my report look better?

Thank you

Louise

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default VLookUp

Exactly, enter everything except the equal signs from your formula, like this.

=IF(ISNA(VLOOKUP(A1,B3:C68,2,FALSE)),0,VLOOKUP(A1, B3:C68,2,FALSE))

I've substituted a fake VLOOKUP here, but this is the idea.......

Vaya con Dios,
Chuck, CABGx3



"Louise" wrote:

Sorry to 'sound' so stupid, does this mean I enter my formula twice??
THanks
Louise

"CLR" wrote:

Wrap your VLOOKUP formula in an IF statement, as

=IF(ISNA(YourVlookupFormula),0,YourVlookupFormula)

Vaya con Dios,
Chuck, CABGx3



"Louise" wrote:

Hi all

I have created a VLookUp which works fine, however, because I want the data
returned to be exact and not return the closest figure, I have entered
'false' at the end of the formula. It works as expected, however, when it
cannot find an exact match it obviously returns 'N/A'.

How can I get it to return '0' instead, to make my report look better?

Thank you

Louise

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 217
Default VLookUp

That worked a treat, never used it before.

Thank you.

"CLR" wrote:

Exactly, enter everything except the equal signs from your formula, like this.

=IF(ISNA(VLOOKUP(A1,B3:C68,2,FALSE)),0,VLOOKUP(A1, B3:C68,2,FALSE))

I've substituted a fake VLOOKUP here, but this is the idea.......

Vaya con Dios,
Chuck, CABGx3



"Louise" wrote:

Sorry to 'sound' so stupid, does this mean I enter my formula twice??
THanks
Louise

"CLR" wrote:

Wrap your VLOOKUP formula in an IF statement, as

=IF(ISNA(YourVlookupFormula),0,YourVlookupFormula)

Vaya con Dios,
Chuck, CABGx3



"Louise" wrote:

Hi all

I have created a VLookUp which works fine, however, because I want the data
returned to be exact and not return the closest figure, I have entered
'false' at the end of the formula. It works as expected, however, when it
cannot find an exact match it obviously returns 'N/A'.

How can I get it to return '0' instead, to make my report look better?

Thank you

Louise



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default VLookUp

You're welcome..........thanks for the feedback.

Vaya con Dios,
Chuck, CABGx3




"Louise" wrote:

That worked a treat, never used it before.

Thank you.

"CLR" wrote:

Exactly, enter everything except the equal signs from your formula, like this.

=IF(ISNA(VLOOKUP(A1,B3:C68,2,FALSE)),0,VLOOKUP(A1, B3:C68,2,FALSE))

I've substituted a fake VLOOKUP here, but this is the idea.......

Vaya con Dios,
Chuck, CABGx3



"Louise" wrote:

Sorry to 'sound' so stupid, does this mean I enter my formula twice??
THanks
Louise

"CLR" wrote:

Wrap your VLOOKUP formula in an IF statement, as

=IF(ISNA(YourVlookupFormula),0,YourVlookupFormula)

Vaya con Dios,
Chuck, CABGx3



"Louise" wrote:

Hi all

I have created a VLookUp which works fine, however, because I want the data
returned to be exact and not return the closest figure, I have entered
'false' at the end of the formula. It works as expected, however, when it
cannot find an exact match it obviously returns 'N/A'.

How can I get it to return '0' instead, to make my report look better?

Thank you

Louise

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default VLookUp


=IF(ISNA(YourVlookupFormula),0,YourVlookupFormula)

yes, you would put your formula in twice:

the "if" statement works like this

If (COMPARISON) ,(if its TRUE do this), (if its FALSE do this)

you could do =if (your lookup = 0, "", your lookup)




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 a Vlookup adamb2000 Excel Worksheet Functions 4 June 28th 06 10:54 PM
VLOOKUP Problem Ian Excel Discussion (Misc queries) 3 April 6th 06 06:47 PM
Using single cell reference as table array argument in Vlookup CornNiblet Excel Worksheet Functions 3 September 22nd 05 09:15 AM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM


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