close

I'm trying to use excel as a compliance tool. I have one cell, where the
name is manually typed in cell M17. For this example, let's say that the
name used is Ford. I then would like to compare quot;Fordquot; to several other
values. The other values I have are Ford Motor Company, Ford Credit Corp,
etc, etc. The list can be quite long. Is there a way to check if the if the
value in M17 matches any of the values in the list? Also is it possible that
it will flag it if it only has part of the word. For example, if the name is
Ford and checking against how can I get that to flag it eventhough it only
contains part of the values that are being checked.

The way I orginially tried to accomplish this was to write a nested if, such
as if(m17=s17, quot;CHECKquot;,if(m17=s18,quot;CHECKquot;,quot;quot;)). This obviously doesn't work
very well with long lists and doesn't solve my problem of flagging me if it
only contains part of the value being checked.

Any help would be immensely appreciated.

Thanks

Dave,
Use the FIND function. Put it in the column next to your list and
reference M17. Filter on that 2nd column

HTH,
--
Gary Brown

If this post was helpful, please click the ''Yes'' button next to ''Was this
Post Helpfull to you?''.quot;David Kinsleyquot; wrote:

gt; I'm trying to use excel as a compliance tool. I have one cell, where the
gt; name is manually typed in cell M17. For this example, let's say that the
gt; name used is Ford. I then would like to compare quot;Fordquot; to several other
gt; values. The other values I have are Ford Motor Company, Ford Credit Corp,
gt; etc, etc. The list can be quite long. Is there a way to check if the if the
gt; value in M17 matches any of the values in the list? Also is it possible that
gt; it will flag it if it only has part of the word. For example, if the name is
gt; Ford and checking against how can I get that to flag it eventhough it only
gt; contains part of the values that are being checked.
gt;
gt; The way I orginially tried to accomplish this was to write a nested if, such
gt; as if(m17=s17, quot;CHECKquot;,if(m17=s18,quot;CHECKquot;,quot;quot;)). This obviously doesn't work
gt; very well with long lists and doesn't solve my problem of flagging me if it
gt; only contains part of the value being checked.
gt;
gt; Any help would be immensely appreciated.
gt;
gt; Thanks

Hi,

Try the following:

=IF(ISNUMBER(FIND($B$25,B21)),quot;checkquot;,quot;No matchquot;)

$B$25 contanis the name string quot;Fordquot; (w/o quotes)
B21 contains Ford Motor Co. or any other name.

Now put the names from B22 onwards and just copy the formula down.

Regards,

Ashish Mathur

quot;David Kinsleyquot; wrote:

gt; I'm trying to use excel as a compliance tool. I have one cell, where the
gt; name is manually typed in cell M17. For this example, let's say that the
gt; name used is Ford. I then would like to compare quot;Fordquot; to several other
gt; values. The other values I have are Ford Motor Company, Ford Credit Corp,
gt; etc, etc. The list can be quite long. Is there a way to check if the if the
gt; value in M17 matches any of the values in the list? Also is it possible that
gt; it will flag it if it only has part of the word. For example, if the name is
gt; Ford and checking against how can I get that to flag it eventhough it only
gt; contains part of the values that are being checked.
gt;
gt; The way I orginially tried to accomplish this was to write a nested if, such
gt; as if(m17=s17, quot;CHECKquot;,if(m17=s18,quot;CHECKquot;,quot;quot;)). This obviously doesn't work
gt; very well with long lists and doesn't solve my problem of flagging me if it
gt; only contains part of the value being checked.
gt;
gt; Any help would be immensely appreciated.
gt;
gt; Thanks

Hi Gary,I don't know why, but it doesn't seem to solve my problem. Here is my list
that I am trying to compare to:
ford motor company
ford motor credit company
ford company
ford copr
general motors
general motors acceptance corp

here is my formula: =find(m17,S17:s:22,1)

Now when I put ford in, it returns a 1 value. If I put ford motor in, it
returns a 1 value, but if I put ford motor credit I get a #value error. Also
if I put general in I get the same error.

I'm not sure why this isn't working, can you explain?quot;Gary L Brownquot; wrote:

gt; Dave,
gt; Use the FIND function. Put it in the column next to your list and
gt; reference M17. Filter on that 2nd column
gt;
gt; HTH,
gt; --
gt; Gary Brown
gt;
gt; If this post was helpful, please click the ''Yes'' button next to ''Was this
gt; Post Helpfull to you?''.
gt;
gt;
gt; quot;David Kinsleyquot; wrote:
gt;
gt; gt; I'm trying to use excel as a compliance tool. I have one cell, where the
gt; gt; name is manually typed in cell M17. For this example, let's say that the
gt; gt; name used is Ford. I then would like to compare quot;Fordquot; to several other
gt; gt; values. The other values I have are Ford Motor Company, Ford Credit Corp,
gt; gt; etc, etc. The list can be quite long. Is there a way to check if the if the
gt; gt; value in M17 matches any of the values in the list? Also is it possible that
gt; gt; it will flag it if it only has part of the word. For example, if the name is
gt; gt; Ford and checking against how can I get that to flag it eventhough it only
gt; gt; contains part of the values that are being checked.
gt; gt;
gt; gt; The way I orginially tried to accomplish this was to write a nested if, such
gt; gt; as if(m17=s17, quot;CHECKquot;,if(m17=s18,quot;CHECKquot;,quot;quot;)). This obviously doesn't work
gt; gt; very well with long lists and doesn't solve my problem of flagging me if it
gt; gt; only contains part of the value being checked.
gt; gt;
gt; gt; Any help would be immensely appreciated.
gt; gt;
gt; gt; Thanks

全站熱搜
創作者介紹
創作者 software 的頭像
software

software

software 發表在 痞客邦 留言(0) 人氣()