+ Reply to Thread
Results 1 to 7 of 7

COUNTIF using park of text from a range of cells

  1. #1
    Registered User
    Join Date
    01-31-2010
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2013 Windows 7 / Excel 2008 Mac OSX
    Posts
    11

    Smile COUNTIF using park of text from a range of cells

    I'm using this formula to automate some work. When a list pasted into column N (a range in my formula) and it matches data in column B (a second range in my formula) then change the cell to show "Collected", If not show "Not Scheduled"

    Please Login or Register  to view this content.
    The problem i have is that the words in the list i paste in and the words in the list it compares them to are similar but not character by character correct. How can i get my formula to search for part of text across a range of cells and if it finds a match the list then change the cell to "Collected".

    For example the static list (column B) has "Dublin Road, Bray" but my pasted in list might only contain "Dublin, Bray" and tomorrow could have "Bray Dublin". When i manually input this data i use the find option in excel and type "Bray" and it highlights the cell for me. Its this find functionality i would like to integrate into the formula but i don't know how.

    As you can see in the screenshot below only some of the data from column N hilights column D because it matches character by character but a lot of the data wont trigger the D Cells because it doesn't recognise the location.

    Can somebody lend a hand?

    Sample excel file is uploaded at the end of this post as requested.
    excel3.png
    Attached Files Attached Files
    Last edited by rcanpolat; 01-22-2017 at 11:15 AM. Reason: uploaded sample file

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: COUNTIF using park of text from a range of cells

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-31-2010
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2013 Windows 7 / Excel 2008 Mac OSX
    Posts
    11

    Re: COUNTIF using park of text from a range of cells

    Sample file uploaded

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: COUNTIF using park of text from a range of cells

    You will almost certainly need VBA for this and (unlikely to be 100%) a clear set of rules for matching:

    Take

    Old Bray Road, Cabinteely in C2

    in N2

    Cabinteely, Eglinton

    in N3

    Cabinteely, N11, Centenary

    so Cabinteely is "potential" match: but is it correct??

  5. #5
    Registered User
    Join Date
    01-31-2010
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2013 Windows 7 / Excel 2008 Mac OSX
    Posts
    11

    Re: COUNTIF using park of text from a range of cells

    Quote Originally Posted by JohnTopley View Post
    You will almost certainly need VBA for this and (unlikely to be 100%) a clear set of rules for matching:

    Take

    Old Bray Road, Cabinteely in C2

    in N2

    Cabinteely, Eglinton

    in N3

    Cabinteely, N11, Centenary

    so Cabinteely is "potential" match: but is it correct??
    In this case the list i will be posting in will contain "Centenary" in one cell and "Eglinton" in another cell, Since they are both in the Cabinteely location they are guaranteed to be differentiated in the list. They might at times both have the word Cabinteely as part of their characters but they will always at least contain their unique location.

    Example:

    Centenary, Cabinteely
    Cabinteely, Eglinton
    Last edited by rcanpolat; 01-22-2017 at 11:47 AM.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: COUNTIF using park of text from a range of cells

    ... but there still the problem of rules:

    Dublin Road, Bray

    Bray Road, Cabinteely

    Dublin Road, Drogheda

    Dublin, Bray

    Bray, Dublin

    Given the above we need to match (at least) 2 of the "potential "fields" : we cannot simple delimit the fields by a comma .. should we ignore "road" in an address?

  7. #7
    Registered User
    Join Date
    01-31-2010
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2013 Windows 7 / Excel 2008 Mac OSX
    Posts
    11

    Re: COUNTIF using park of text from a range of cells

    Quote Originally Posted by JohnTopley View Post
    ... but there still the problem of rules:

    Dublin Road, Bray

    Bray Road, Cabinteely

    Dublin Road, Drogheda

    Dublin, Bray

    Bray, Dublin

    Given the above we need to match (at least) 2 of the "potential "fields" : we cannot simple delimit the fields by a comma .. should we ignore "road" in an address?
    Road can certainly be ignored.

    A list of what I always use the search when i do this job manually is as follows. This list is what i use the find option in excel is able to find the correct location. When i'm reading the list

    Centenary
    Nevin
    Kilmacanogue
    Parkway East
    Violet
    Three
    Balrothery
    Grosvenor
    Rathdown
    Manor
    Bull
    Ashtown
    Huntsman
    Eglinton
    Artane
    Dunshaughlin
    Belmont
    Estate
    Sundrive
    Martello
    Malahide
    Ninth Lock
    Ballybough
    Round Tower
    Carton
    Tymon
    Beechwood
    Boyne
    Deerpark
    Kill
    Beauford
    N4 West
    N4 East
    Rathcoole
    Trim
    West Pier
    Parkway West
    Mellifont

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 09-16-2016, 03:52 PM
  2. Calculate how many concurrent cars in a car park
    By ciacovou in forum Excel General
    Replies: 6
    Last Post: 01-22-2015, 02:22 PM
  3. [SOLVED] COUNTIF search range of cells for multiple specific text.
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2013, 06:38 PM
  4. Replies: 4
    Last Post: 01-31-2012, 01:08 PM
  5. Close File At Park
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-29-2008, 11:05 AM
  6. Excel Spreadsheet for Car Park Roster
    By teebird in forum Excel General
    Replies: 0
    Last Post: 04-03-2007, 06:48 PM
  7. Getting range of cells with specific text colour, then using in a COUNTIF formulae
    By cheekyflash in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2006, 08:58 PM

Tags for this Thread

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