Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Stuart
 
Posts: n/a
Default vlook up and if formula

hi

im playing with a spreadsheet at the moment trying to use vlookup which i
have working

however, instead of when the vlookup value providing a value of n/a when
false, is there a way that i can use an if statement to return a value of "0"
(zero)

thanks

stuart
  #2   Report Post  
Leo Heuser
 
Posts: n/a
Default

Hi Stuart

One way:

=IF(ISERROR(Your formula),0,Your formula)

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Stuart" skrev i en meddelelse
...
hi

im playing with a spreadsheet at the moment trying to use vlookup which i
have working

however, instead of when the vlookup value providing a value of n/a when
false, is there a way that i can use an if statement to return a value of
"0"
(zero)

thanks

stuart



  #3   Report Post  
arno
 
Posts: n/a
Default

Hi Stuart,

however, instead of when the vlookup value providing a value of n/a
when false, is there a way that i can use an if statement to return a
value of "0" (zero)


you need your formula twice, eg.

=if(iserror(vlookup(a1,data,2,false)),0,vlookup(a1 ,data,2,false))

where 0 in the middle of the formula is what you want. sometimes I use
"not found", "---" or just "", depending on what is usefull in the
situation, 0 is fine, too.

arno


  #4   Report Post  
Duke Carey
 
Posts: n/a
Default

=if(isna(vlookup formula),0,vlookup formula)

"Stuart" wrote:

hi

im playing with a spreadsheet at the moment trying to use vlookup which i
have working

however, instead of when the vlookup value providing a value of n/a when
false, is there a way that i can use an if statement to return a value of "0"
(zero)

thanks

stuart

  #5   Report Post  
stuart
 
Posts: n/a
Default

thanks for everyone's help

stuart




"Stuart" wrote:

hi

im playing with a spreadsheet at the moment trying to use vlookup which i
have working

however, instead of when the vlookup value providing a value of n/a when
false, is there a way that i can use an if statement to return a value of "0"
(zero)

thanks

stuart



  #6   Report Post  
Leo Heuser
 
Posts: n/a
Default

You're welcome, Stuart :-)

LeoH



"stuart" skrev i en meddelelse
...
thanks for everyone's help

stuart



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
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


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