Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default stuck with VLOOKUP


i am new user. i use VLOOkUP to match same items from 1 wksht with th
other. "=VLOOKUP($H12,SLOW,2,FALSE)" if item of sht1 of cell H1
matches item in another sht with its range NAMED "SLOW" it should sho
the value under the colume "2", in this case is "1", if not it shoul
show "0", but when there is no match it show "#NA" instead.

plshelp me.

thank

--
yimc
-----------------------------------------------------------------------
yimcw's Profile: http://www.excelforum.com/member.php...fo&userid=1591
View this thread: http://www.excelforum.com/showthread.php?threadid=27394

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default stuck with VLOOKUP


1. If you have the morefunc.xll add-in...

=IF(ISNA(SETV(VLOOKUP($H12,SLOW,2,0))),0,GETV())

2. If you add the V() function to your workbook...

=IF(ISNA(V(VLOOKUP($H12,SLOW,2,0))),0,V())

Public Function V(Optional vrnt As Variant) As Variant
'
' Stephen Dunn
' 2002-09-12
'
Static vrntV As Variant
If Not IsMissing(vrnt) Then vrntV = vrnt
V = vrntV
End Function

To add this to your workbook:

Activate Tools|Macro|Visual Basic Editor;
Activate Insert|Module;
Copy the UDF above and paste it in the pane entitled "...(code)".
Activate File|Close and Return to Microsoft Excel.


3. When Microsoft considers extending lookup functions with an optional
ReturnValue as proposed eons ago...

=VLOOKUP($H12,SLOW,2,0,0)

yimcw Wrote:
i am new user. i use VLOOkUP to match same items from 1 wksht with the
other. "=VLOOKUP($H12,SLOW,2,FALSE)" if item of sht1 of cell H12
matches item in another sht with its range NAMED "SLOW" it should show
the value under the colume "2", in this case is "1", if not it should
show "0", but when there is no match it show "#NA" instead.

plshelp me.

thanks



--
Aladin Akyurek
------------------------------------------------------------------------
Aladin Akyurek's Profile: http://www.excelforum.com/member.php...fo&userid=4165
View this thread: http://www.excelforum.com/showthread...hreadid=273944

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
HELP!! It's STuck ConfusedNHouston Excel Discussion (Misc queries) 1 June 16th 06 10:16 PM
stuck darkbearpooh1 Excel Worksheet Functions 7 February 10th 06 10:21 PM
stuck please help derekc[_8_] Excel Programming 2 May 19th 04 06:08 AM
Stuck! John[_78_] Excel Programming 7 February 25th 04 01:52 PM
Still Stuck Josh in Tampa Excel Programming 9 October 28th 03 05:15 AM


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