Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / February 2008

Tip: Looking for answers? Try searching our database.

Need help with Excel 2000 text-related functions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joan A - 03 Feb 2008 05:13 GMT
How do I search a range of text cells and return value(s) based on my findings?

From C18, I want to search C3:C14, said cells sometimes containing names, to
see if one particular name is there.  If it is, I want to leave C18 blank.  
If it isn't, I want to insert the name in C18.  

I've tried IF multiple ways and it either returns "FALSE" or "#VALUE!".

Help?
Tyro - 03 Feb 2008 05:35 GMT
Assuming A1 contains the name you are looking for put this formula in C18

=IF(ISNA(VLOOKUP(A1,C3:C14,1,0)),A1,"")

Tyro

> How do I search a range of text cells and return value(s) based on my
> findings?
[quoted text clipped - 7 lines]
>
> Help?
Joan A - 03 Feb 2008 18:40 GMT
Thanks, this worked!

But now, I'm wondering if I can add another IF in the same cell.  I only
want the first formula to run if the value in another cell equals something.  
For instance, if B16<>OFF, then run =IF(ISNA(VLOOKUP(A1,C3:C14,1,0)),A1,"").  
Or if it does equal OFF, then a blank cell overrides the formula you provided.

Clear as mud?

> Assuming A1 contains the name you are looking for put this formula in C18
>
[quoted text clipped - 13 lines]
> >
> > Help?
Tyro - 03 Feb 2008 19:18 GMT
=IF(B16<>"OFF",IF(ISNA(VLOOKUP(A1,C3:C14,1,0)),A1,""),"")

Tyro

> Thanks, this worked!
>
[quoted text clipped - 27 lines]
>> >
>> > Help?
David Biddulph - 03 Feb 2008 19:40 GMT
=IF(B16="OFF","",IF(ISNA(VLOOKUP(A1,C3:C14,1,0)),A1,""))
Signature

David Biddulph

> Thanks, this worked!
>
[quoted text clipped - 27 lines]
>> >
>> > Help?
T. Valko - 03 Feb 2008 22:36 GMT
Another one:

=IF(B16="OFF","",IF(COUNTIF(C3:C14,A1),"",A1))

Signature

Biff
Microsoft Excel MVP

> Thanks, this worked!
>
[quoted text clipped - 27 lines]
>> >
>> > Help?
Shane Devenshire - 03 Feb 2008 06:28 GMT
Hi Joan,

Suppose you are looking for the name Shane in the range C3:C14.  The formula
in cell C18 would read:

=IF(OR(C3:C14="Shane"),"Shane","")

This is an array formula so when enter it you hold down Ctrl+Shift+Enter.
To shorten this you can put the name you are searching for in another cell,
say A1, then the formula becomes

{=IF(OR(G2:G7=A1),A1,"")}

The outer {}'s are not typed but you will see them in the cell when you
press Ctrl+Shift+Enter.

Cheers,
Shane Devenshire

> How do I search a range of text cells and return value(s) based on my
> findings?
[quoted text clipped - 7 lines]
>
> Help?
Joan A - 03 Feb 2008 18:41 GMT
Thanks for your reply, but this didn't work.  Blank when there should have
been something, error message when there shouldn't have been anything.

> Hi Joan,
>
[quoted text clipped - 26 lines]
> >
> > Help?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.