Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default having a problem with IF and SEARCH

I am creating a formation sheet for soccer. I have 11 positions from which
they are pulling a name from a drop down menu from another workbook. I also
have a roster list on the page with the formation. What I want to do is make
it so that when I use a name from a drop down menu, it is "removed" from the
roster list, but if i change the name in the formation by using a different
player, the original name goes back into the roster list. the easiest way i
can think of to do this would be an IF statement in the roster part, but i
don't know how to make it search for a name in the formation part. I have
the formation part defined as name _352, so i am trying to search for "player
1" in "_352". If the name is used, then it would be blank in the roster list.

I was thinking something like
=IF((search(_352, player1)), "", player1))

but this doesn't work.

Any Help would be great. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default having a problem with IF and SEARCH

Maybe

=if(isnumber(search(_352,player1)),"",player1)


locke1990 wrote:

I am creating a formation sheet for soccer. I have 11 positions from which
they are pulling a name from a drop down menu from another workbook. I also
have a roster list on the page with the formation. What I want to do is make
it so that when I use a name from a drop down menu, it is "removed" from the
roster list, but if i change the name in the formation by using a different
player, the original name goes back into the roster list. the easiest way i
can think of to do this would be an IF statement in the roster part, but i
don't know how to make it search for a name in the formation part. I have
the formation part defined as name _352, so i am trying to search for "player
1" in "_352". If the name is used, then it would be blank in the roster list.

I was thinking something like
=IF((search(_352, player1)), "", player1))

but this doesn't work.

Any Help would be great. Thanks.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default having a problem with IF and SEARCH

Say we want to see if a name is in a list of names. Say A1 thru A30 contains:

James
John
Robert
Michael
William
David
Richard
Charles
Joseph
Thomas
Christopher
Daniel
Paul
Mark
Donald
George
Kenneth
Steven
Edward
Brian
Ronald
Anthony
Kevin
Jason
Matthew
Gary
Timothy
Jose
Larry
Jeffrey

The formula:

=IF(ISNA(MATCH("Malcolm",A1:A30,0)),"name not there","name there")

would tell you that Malcolm is not in the list.
--
Gary''s Student - gsnu200909


"locke1990" wrote:

I am creating a formation sheet for soccer. I have 11 positions from which
they are pulling a name from a drop down menu from another workbook. I also
have a roster list on the page with the formation. What I want to do is make
it so that when I use a name from a drop down menu, it is "removed" from the
roster list, but if i change the name in the formation by using a different
player, the original name goes back into the roster list. the easiest way i
can think of to do this would be an IF statement in the roster part, but i
don't know how to make it search for a name in the formation part. I have
the formation part defined as name _352, so i am trying to search for "player
1" in "_352". If the name is used, then it would be blank in the roster list.

I was thinking something like
=IF((search(_352, player1)), "", player1))

but this doesn't work.

Any Help would be great. Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default having a problem with IF and SEARCH

this really isn't doing what i need...

"Gary''s Student" wrote:

Say we want to see if a name is in a list of names. Say A1 thru A30 contains:

James
John
Robert
Michael
William
David
Richard
Charles
Joseph
Thomas
Christopher
Daniel
Paul
Mark
Donald
George
Kenneth
Steven
Edward
Brian
Ronald
Anthony
Kevin
Jason
Matthew
Gary
Timothy
Jose
Larry
Jeffrey

The formula:

=IF(ISNA(MATCH("Malcolm",A1:A30,0)),"name not there","name there")

would tell you that Malcolm is not in the list.
--
Gary''s Student - gsnu200909


"locke1990" wrote:

I am creating a formation sheet for soccer. I have 11 positions from which
they are pulling a name from a drop down menu from another workbook. I also
have a roster list on the page with the formation. What I want to do is make
it so that when I use a name from a drop down menu, it is "removed" from the
roster list, but if i change the name in the formation by using a different
player, the original name goes back into the roster list. the easiest way i
can think of to do this would be an IF statement in the roster part, but i
don't know how to make it search for a name in the formation part. I have
the formation part defined as name _352, so i am trying to search for "player
1" in "_352". If the name is used, then it would be blank in the roster list.

I was thinking something like
=IF((search(_352, player1)), "", player1))

but this doesn't work.

Any Help would be great. Thanks.

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
ISNUMBER & SEARCH problem DJ Excel Discussion (Misc queries) 4 August 5th 09 04:48 PM
Xl search problem Sekhar Excel Discussion (Misc queries) 1 December 16th 08 12:47 PM
Vlookup: Have problem. Not taking the object that i search... SupperDuck Excel Discussion (Misc queries) 1 November 15th 05 10:02 PM
Problem with search Manu Palao Excel Worksheet Functions 2 November 10th 04 05:31 PM
Problem with search anilsolipuram Excel Worksheet Functions 0 November 10th 04 04:37 PM


All times are GMT +1. The time now is 04:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"