Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 107
Default need a search/find/lookup function

I need a function to determine if value "A" exists in range B1:B10. If A
exists in B1:B10, return "C". If A doesn't exist in B1:B10, return "D."

I have tried using lookup, I've tried index and match, I've tried
search/find. I can't make any of those do what I want it to.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default need a search/find/lookup function

Try something like this...

=IF(COUNTIF(B1:B10,"A"),"C","D")

--
Biff
Microsoft Excel MVP


"Jenn" wrote in message
...
I need a function to determine if value "A" exists in range B1:B10. If A
exists in B1:B10, return "C". If A doesn't exist in B1:B10, return "D."

I have tried using lookup, I've tried index and match, I've tried
search/find. I can't make any of those do what I want it to.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default need a search/find/lookup function

On Fri, 5 Feb 2010 18:03:01 -0800, Jenn wrote:

I need a function to determine if value "A" exists in range B1:B10. If A
exists in B1:B10, return "C". If A doesn't exist in B1:B10, return "D."

I have tried using lookup, I've tried index and match, I've tried
search/find. I can't make any of those do what I want it to.


Case insensitive:
=IF(COUNTIF(B1:B10,"*A*"),"C","D")

Case sensitive:
=IF(SUMPRODUCT(--ISNUMBER(FIND("A",B1:B10))),"C","D")

--ron
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 506
Default need a search/find/lookup function

=IF(COUNTIF(B2:B11,"A")=1,"C","D")

OR

=IF(ISNA(VLOOKUP("A",B2:B11,1,FALSE)),"D",IF(VLOOK UP("A",B2:B11,1,FALSE)="A","C","D"))

OR

=IF(ISNUMBER(MATCH("A",B2:B11,0)),"C","D")


Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Jenn" wrote:

I need a function to determine if value "A" exists in range B1:B10. If A
exists in B1:B10, return "C". If A doesn't exist in B1:B10, return "D."

I have tried using lookup, I've tried index and match, I've tried
search/find. I can't make any of those do what I want it to.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default need a search/find/lookup function

=CHAR(68-(COUNTIF(B1:B10,"A")0))


"Jenn" wrote:

I need a function to determine if value "A" exists in range B1:B10. If A
exists in B1:B10, return "C". If A doesn't exist in B1:B10, return "D."

I have tried using lookup, I've tried index and match, I've tried
search/find. I can't make any of those do what I want it to.

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
Search / Find Function Harry C. Excel Worksheet Functions 6 June 16th 09 05:40 PM
Find / Search Function Andrew Excel Discussion (Misc queries) 1 October 12th 08 08:25 PM
Search, find or lookup defined text in text string zzxxcc Excel Worksheet Functions 9 September 6th 07 09:37 PM
Find & Search Function drvortex Excel Worksheet Functions 6 June 16th 06 08:34 PM
HOW TO USE FIND OR SEARCH FUNCTION TO FILL DATA hsg Excel Worksheet Functions 2 November 18th 04 07:24 AM


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