ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   MATCHING A VALUE IN A CELL TO A COLUMN OF VALUES IN ANOTHER SHEET (https://www.excelbanter.com/excel-discussion-misc-queries/255541-matching-value-cell-column-values-another-sheet.html)

carrach

MATCHING A VALUE IN A CELL TO A COLUMN OF VALUES IN ANOTHER SHEET
 
Hi,
I am haviang a problem with my workbook
My workbook contains several sheets
in the first sheet 'new clients' I have a column containing postcodeswhich
is added to daily
in the last sheet 'postcodes' I have a column containing a set list of
postcodes for certain areas of the country.
I want to check if the postcode entered in 'new clients' is listed in
'postcodes' and if it is put a 'yes' in the same row in 'new clients'.
I have tried lots of different formulas today but none are working.
help please

Mike H

MATCHING A VALUE IN A CELL TO A COLUMN OF VALUES IN ANOTHER SHEET
 
Hi

=IF(COUNTIF(postcodes!$A$1:$A$20,B1)0,"Yes","No")

This assumes the postode you have entered is in B1. Drag down as required
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"carrach" wrote:

Hi,
I am haviang a problem with my workbook
My workbook contains several sheets
in the first sheet 'new clients' I have a column containing postcodeswhich
is added to daily
in the last sheet 'postcodes' I have a column containing a set list of
postcodes for certain areas of the country.
I want to check if the postcode entered in 'new clients' is listed in
'postcodes' and if it is put a 'yes' in the same row in 'new clients'.
I have tried lots of different formulas today but none are working.
help please


David Biddulph[_2_]

MATCHING A VALUE IN A CELL TO A COLUMN OF VALUES IN ANOTHER SHEET
 
=IF(ISNUMBER(MATCH(A1,postcodes!A:A,0)),"yes","no" )
--
David Biddulph

carrach wrote:
Hi,
I am haviang a problem with my workbook
My workbook contains several sheets
in the first sheet 'new clients' I have a column containing
postcodeswhich is added to daily
in the last sheet 'postcodes' I have a column containing a set list of
postcodes for certain areas of the country.
I want to check if the postcode entered in 'new clients' is listed in
'postcodes' and if it is put a 'yes' in the same row in 'new clients'.
I have tried lots of different formulas today but none are working.
help please




David Biddulph[_2_]

MATCHING A VALUE IN A CELL TO A COLUMN OF VALUES IN ANOTHER SHEET
 
But Mike's COUNTIF solution makes more sense. I must have been asleep. :-(
--
David Biddulph

David Biddulph wrote:
=IF(ISNUMBER(MATCH(A1,postcodes!A:A,0)),"yes","no" )

carrach wrote:
Hi,
I am haviang a problem with my workbook
My workbook contains several sheets
in the first sheet 'new clients' I have a column containing
postcodeswhich is added to daily
in the last sheet 'postcodes' I have a column containing a set list
of postcodes for certain areas of the country.
I want to check if the postcode entered in 'new clients' is listed in
'postcodes' and if it is put a 'yes' in the same row in 'new
clients'. I have tried lots of different formulas today but none are
working. help please





All times are GMT +1. The time now is 05:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com