Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 186
Default how can i use the ISNA and Vlookup funtions in a macro?

I would like to use the Vlookup function in a macro, and the ISNA function.
Can this be done?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default how can i use the ISNA and Vlookup funtions in a macro?

You can but you don't have to...

=if(isna(vlookup(This, InThat, 2,false)), "Not Found", vlookup(This, InThat,
2,false))

or you can use CountIf

=if(countif(InThat, This)=0, "Not Found", vlookup(This, InThat, 2,false))

I prefer the second method, but it is up to you...
--
HTH...

Jim Thomlinson


"Jack" wrote:

I would like to use the Vlookup function in a macro, and the ISNA function.
Can this be done?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 186
Default how can i use the ISNA and Vlookup funtions in a macro?

Thanks
i was trying to use a macro to cut down on the size of the file and the
number of cells with the long formula

i will try the countif

"Jim Thomlinson" wrote:

You can but you don't have to...

=if(isna(vlookup(This, InThat, 2,false)), "Not Found", vlookup(This, InThat,
2,false))

or you can use CountIf

=if(countif(InThat, This)=0, "Not Found", vlookup(This, InThat, 2,false))

I prefer the second method, but it is up to you...
--
HTH...

Jim Thomlinson


"Jack" wrote:

I would like to use the Vlookup function in a macro, and the ISNA function.
Can this be done?

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
I need help with a IF(ISNA with vlookup LAB Excel Worksheet Functions 5 July 14th 08 11:28 PM
Vlookup funtions Kel Excel Worksheet Functions 3 August 21st 06 09:44 PM
vlookup, IF, and ISNA MMBOLI Excel Discussion (Misc queries) 2 August 17th 06 04:53 PM
Vlookup and forecast funtions vijaya Excel Programming 0 November 16th 05 03:31 PM
if isna and vlookup together tina Excel Worksheet Functions 2 January 20th 05 01:06 PM


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