Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 217
Default vlookup to include text

Hello

I wish to create a VLookUp which will return text when a match is found
rather than data from the lookup table. Can this be done?

Thank you.
Louise
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default vlookup to include text

This will return the text "My text" if a match is found (and blank if no match)

=IF(ISNA(VLOOKUP(C1,$A$1:$B$5,2,FALSE)),"","My text")

..... is this what is required?

"Louise" wrote:

Hello

I wish to create a VLookUp which will return text when a match is found
rather than data from the lookup table. Can this be done?

Thank you.
Louise

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 268
Default vlookup to include text

You can return text whether a match is found or not. For example
=IF(ISNA(VLOOKUP(D1,$A$1:$C$15,2,FALSE)),"No Match", "Match"), will return
the words No Match, if no match is found, and Match if a match is found.


"Louise" wrote:

Hello

I wish to create a VLookUp which will return text when a match is found
rather than data from the lookup table. Can this be done?

Thank you.
Louise

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 217
Default vlookup to include text

Excellent, thank you.
Louise

"Toppers" wrote:

This will return the text "My text" if a match is found (and blank if no match)

=IF(ISNA(VLOOKUP(C1,$A$1:$B$5,2,FALSE)),"","My text")

.... is this what is required?

"Louise" wrote:

Hello

I wish to create a VLookUp which will return text when a match is found
rather than data from the lookup table. Can this be done?

Thank you.
Louise

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

Worked great, thank you.

"kassie" wrote:

You can return text whether a match is found or not. For example
=IF(ISNA(VLOOKUP(D1,$A$1:$C$15,2,FALSE)),"No Match", "Match"), will return
the words No Match, if no match is found, and Match if a match is found.


"Louise" wrote:

Hello

I wish to create a VLookUp which will return text when a match is found
rather than data from the lookup table. Can this be done?

Thank you.
Louise



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 217
Default vlookup to include text

Worked great, thank you.
Louise

"Toppers" wrote:

This will return the text "My text" if a match is found (and blank if no match)

=IF(ISNA(VLOOKUP(C1,$A$1:$B$5,2,FALSE)),"","My text")

.... is this what is required?

"Louise" wrote:

Hello

I wish to create a VLookUp which will return text when a match is found
rather than data from the lookup table. Can this be done?

Thank you.
Louise

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 217
Default vlookup to include text

Works a treat. Just out of interest, what does ISNA mean??
Louise

"kassie" wrote:

You can return text whether a match is found or not. For example
=IF(ISNA(VLOOKUP(D1,$A$1:$C$15,2,FALSE)),"No Match", "Match"), will return
the words No Match, if no match is found, and Match if a match is found.


"Louise" wrote:

Hello

I wish to create a VLookUp which will return text when a match is found
rather than data from the lookup table. Can this be done?

Thank you.
Louise

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default vlookup to include text

Take a look at the "Information" functions:

ISNA Value refers to the #N/A (value not available) error value.

Simply, the value (match) cannot be found.

"Louise" wrote:

Works a treat. Just out of interest, what does ISNA mean??
Louise

"kassie" wrote:

You can return text whether a match is found or not. For example
=IF(ISNA(VLOOKUP(D1,$A$1:$C$15,2,FALSE)),"No Match", "Match"), will return
the words No Match, if no match is found, and Match if a match is found.


"Louise" wrote:

Hello

I wish to create a VLookUp which will return text when a match is found
rather than data from the lookup table. Can this be done?

Thank you.
Louise

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
wrapping text and vlookup Aaron Excel Worksheet Functions 6 December 11th 06 03:02 PM
Vlookup text conversion issue PamKT Excel Discussion (Misc queries) 2 August 28th 06 05:59 PM
Vlookup where text not exact Janicej Excel Discussion (Misc queries) 2 August 19th 06 08:57 PM
Return a text string when the result of VLOOKUP formula is #N/A jeremy nickels Excel Worksheet Functions 2 August 4th 06 05:26 PM
VLOOKUP first numerical value (not text) titushanke Excel Worksheet Functions 1 February 16th 05 02:52 PM


All times are GMT +1. The time now is 03:49 PM.

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"