+ Reply to Thread
Results 1 to 5 of 5

IF function to find an item within a range.

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    IF function to find an item within a range.

    Hi all,

    I'd like an if function to display "Yes" when a postcode is found within a range of postcodes.

    For example if I have BT23 4RE in cell b1 and a range of postcodes from say cell a1:a76 which has BT23 4RE in it, it will display yes.
    Last edited by Steve-B; 03-10-2009 at 01:00 PM.

  2. #2
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Re: IF function to find an item within a range.

    I've tried
    Please Login or Register  to view this content.
    , yet when #n/a is returned for no match I can't get a false value to give "No".....

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,445

    Re: IF function to find an item within a range.

    Hi,

    Try this?

    =IF(ISERROR(MATCH(B3,$H$3:$H$66,0)),"No","Yes")
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Re: IF function to find an item within a range.

    Diolch yn fawr iawn....

    Cheers Sweep....

  5. #5
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Re: IF function to find an item within a range.

    I've since learned you can also use

    Please Login or Register  to view this content.
    ISNA can be used if #NA is the expected result.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1