#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default matching values

I have a spreadsheet that contains data exported from a database
containing staff information. What I need to do is compare values to
see if they match and if so, to return the value "Yes". Sounds like a
straightforward IF(AND job, but it's not so simple.

For example, if C10 and E10 contains the value "Grade B" but D10
contains "Nurse Grade B", I want to recognise D10 as matching the
other values. I need to use cell references as I have 1500+ rows with
different job titles in them, so I guess wildcards are out of the
question.

Is there anyway I can refer to C10, D10 and E10 and get it to
recognise not only exact matches but partial ones like in my example
too? Am I making any sense???

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 340
Default matching values

You could try this array formula (ctrl+shift+enter to execute):

=IF(MAX(COUNTIF(C10:E10,"*"&C10:E10&"*"))=3,"Yes")

you may want to replace blanks in the range with e.g. "(blank)" or add
another condition for them.

On 13 Mar, 16:57, wrote:
I have a spreadsheet that contains data exported from a database
containing staff information. What I need to do is compare values to
see if they match and if so, to return the value "Yes". Sounds like a
straightforward IF(AND job, but it's not so simple.

For example, if C10 and E10 contains the value "Grade B" but D10
contains "Nurse Grade B", I want to recognise D10 as matching the
other values. I need to use cell references as I have 1500+ rows with
different job titles in them, so I guess wildcards are out of the
question.

Is there anyway I can refer to C10, D10 and E10 and get it to
recognise not only exact matches but partial ones like in my example
too? Am I making any sense???



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default matching values

You don't really need MAX(....

=IF(COUNTIF(C10:E10,"*"&C10:E10&"*")=3,"Yes")

ctrl+shift+enter, not just enter



"Lori" wrote:

You could try this array formula (ctrl+shift+enter to execute):

=IF(MAX(COUNTIF(C10:E10,"*"&C10:E10&"*"))=3,"Yes")

you may want to replace blanks in the range with e.g. "(blank)" or add
another condition for them.

On 13 Mar, 16:57, wrote:
I have a spreadsheet that contains data exported from a database
containing staff information. What I need to do is compare values to
see if they match and if so, to return the value "Yes". Sounds like a
straightforward IF(AND job, but it's not so simple.

For example, if C10 and E10 contains the value "Grade B" but D10
contains "Nurse Grade B", I want to recognise D10 as matching the
other values. I need to use cell references as I have 1500+ rows with
different job titles in them, so I guess wildcards are out of the
question.

Is there anyway I can refer to C10, D10 and E10 and get it to
recognise not only exact matches but partial ones like in my example
too? Am I making any sense???




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default matching values

Thank you so much. You guys rock!

- - -


Teethless mama wrote:
You don't really need MAX(....

=IF(COUNTIF(C10:E10,"*"&C10:E10&"*")=3,"Yes")

ctrl+shift+enter, not just enter



"Lori" wrote:

You could try this array formula (ctrl+shift+enter to execute):

=IF(MAX(COUNTIF(C10:E10,"*"&C10:E10&"*"))=3,"Yes")

you may want to replace blanks in the range with e.g. "(blank)" or add
another condition for them.

On 13 Mar, 16:57, wrote:
I have a spreadsheet that contains data exported from a database
containing staff information. What I need to do is compare values to
see if they match and if so, to return the value "Yes". Sounds like a
straightforward IF(AND job, but it's not so simple.

For example, if C10 and E10 contains the value "Grade B" but D10
contains "Nurse Grade B", I want to recognise D10 as matching the
other values. I need to use cell references as I have 1500+ rows with
different job titles in them, so I guess wildcards are out of the
question.

Is there anyway I can refer to C10, D10 and E10 and get it to
recognise not only exact matches but partial ones like in my example
too? Am I making any sense???





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 340
Default matching values

No problem, thanks for the comeback.

Think you do need max(...) though, otherwise only the first value is
compared.

On 14 Mar, 13:12, wrote:
Thank you so much. You guys rock!

- - -



Teethless mama wrote:
You don't really need MAX(....


=IF(COUNTIF(C10:E10,"*"&C10:E10&"*")=3,"Yes")


ctrl+shift+enter, not just enter


"Lori" wrote:


You could try this array formula (ctrl+shift+enter to execute):


=IF(MAX(COUNTIF(C10:E10,"*"&C10:E10&"*"))=3,"Yes")


you may want to replace blanks in the range with e.g. "(blank)" or add
another condition for them.


On 13 Mar, 16:57, wrote:
I have a spreadsheet that contains data exported from a database
containing staff information. What I need to do is compare values to
see if they match and if so, to return the value "Yes". Sounds like a
straightforward IF(AND job, but it's not so simple.


For example, if C10 and E10 contains the value "Grade B" but D10
contains "Nurse Grade B", I want to recognise D10 as matching the
other values. I need to use cell references as I have 1500+ rows with
different job titles in them, so I guess wildcards are out of the
question.


Is there anyway I can refer to C10, D10 and E10 and get it to
recognise not only exact matches but partial ones like in my example
too? Am I making any sense???- Hide quoted text -


- Show quoted text -





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
Matching values in two columns Rob Excel Discussion (Misc queries) 4 December 6th 06 04:44 AM
Matching Values shryockp Excel Worksheet Functions 1 July 26th 06 06:04 PM
matching values italiavb Excel Worksheet Functions 3 June 15th 06 11:34 AM
Matching numeric values. mohd21uk via OfficeKB.com Excel Discussion (Misc queries) 1 May 17th 06 02:40 PM
matching one value in a list of values David Kinsley Excel Worksheet Functions 3 January 27th 06 12:39 AM


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