+ Reply to Thread
Results 1 to 6 of 6

Search for phone number list in multiple cells and display an alert.

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    3

    Search for phone number list in multiple cells and display an alert.

    Hi,

    Example 1.xls

    I have a data sheet with various phone numbers of different personnel from various departments. Some of them are on the Do not call list and I want to display an alert if any of those "DO not call list" appears on one of the cells. I have attached an example file for better understanding. The file has 2 sheets namely "Data" and "Do Not call list". In Data sheet in cell c2 I need to display "Do not Call" if the numbers from "Do not call list" figure in any of the Phone numbers in fields E2,g2,I2,K2, M2,O2,Q2,S2,U2,W2,Y2,AA2, AC2,AE2,AG2 and so on. Any help would be appreciated. Thanks in advance.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: Search for phone number list in multiple cells and display an alert.

    Try this:

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Search for phone number list in multiple cells and display an alert.

    C2:

    Please Login or Register  to view this content.
    And copy down
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: Search for phone number list in multiple cells and display an alert.

    Here are the instructions for installing the macro if you are not familiar:

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button

  5. #5
    Registered User
    Join Date
    08-12-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Search for phone number list in multiple cells and display an alert.

    Hi,
    Thank you very much, its working like a charm.

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Search for phone number list in multiple cells and display an alert.

    Thanks for the feedback. Glad I could help out.

+ 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. Search for corresponding mobile phone number using email address
    By davisraye in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-21-2012, 10:52 AM
  2. comparing a phone number to an allowed list???
    By juzsp in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-20-2007, 12:00 PM
  3. Replies: 9
    Last Post: 07-04-2006, 06:50 PM
  4. [SOLVED] List Box-phone number associated
    By R P in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-16-2005, 08:39 AM

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