+ Reply to Thread
Results 1 to 10 of 10

comparing a phone number to an allowed list???

  1. #1
    Registered User
    Join Date
    02-20-2007
    Posts
    13

    Question comparing a phone number to an allowed list???

    Hi there,

    Im loosing my mind trying to work out how to do the following, if anyone could help I would be grateful.

    I have our company telephone accounts and im trying to highlight any numbers that are not on our approved dialling list. What I would like to happen (ideally) would be for a formula to look at the cell next to it and compare it with the approved numbers list, if it doesn’t appear on the list then it would do something to let me know, like put a big red X in the cell (if it could make me a cup of Tea instead that would be better).

    Can this even be done? (not the tea thing)

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Take a look at the attached, I'm working on the tea thing now!
    Attached Files Attached Files
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Excel 2007 makes tea and coffee.

    This link might help with your other problem

    http://www.cpearson.com/excel/duplic...tingDuplicates

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    02-20-2007
    Posts
    13
    Sorry, i guess it has been asked before.

    thanks for th quick reply though

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    No problem come back for more - thanks for the feedback

  6. #6
    Registered User
    Join Date
    02-20-2007
    Posts
    13
    well im back for more (already!!!)

    Thanks for the help with the last question, it worked a treat. Now that an X appears every time there is a number that’s not on my allow list, I need to put the duration of the call in another cell so I can add it all up.

    something like (I’m not very good with formulas so I will just say it)

    =IF(“business number”=X)then(copy/Paste “duration” to D1))

    Yes I know you will all have a good laugh at my “tell it how it is” formula, as I said, im not very good with excel.

    Can anyone convert my formula into something that excel will understand?

    I promises, no more questions… today.

  7. #7
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this in D1

    =IF(C1="X",A1,"") where C1 is column with X and A1 is duration, copy that down. The SUM to add it all up needs to be formatted to [hh:]mm:ss

  8. #8
    Registered User
    Join Date
    02-20-2007
    Posts
    13
    Wow, thanks again for the quick reply, worked perfect again!

    When I try and SUM the times I just get 00:00:00. I remembered to format the SUM cell [hh]:mm:ss (I even tried changing the other cells to that format but it’s not working.

    If I do (this is my excel level) =D1+D2+D3+D4 then it works, SUM the same cells and the result is always 00:00:00

    is there anything else that I may need to change?

    I feel so guilty taking up all your time

  9. #9
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Just try this for first, select one of the cells that is actually "time format" not "text format", then click on the Paintbrush icon, then select the cell with you total in.

    The problem you have is that the cells causing the problem are formatted to text and therefore will not sum.

  10. #10
    Registered User
    Join Date
    02-20-2007
    Posts
    13
    thanks oldchippy but its still not working.

    SUM works if I type in new times elsewhere in the sheet, do the relevant formatting then SUM them up but not on the imported data. Guess that’s my problem.

    *edit*
    Just double checked, If I just retype the same data over the old data then it works.

    *edit2*
    Guess what, all I have to do is F2 to edit the cell, not make any changes and press enter then it works! Now I suppose I have to go through the entire worksheet doing this?
    Last edited by juzsp; 02-20-2007 at 12:08 PM.

+ 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