+ Reply to Thread
Results 1 to 5 of 5

formula..that tells me if any given cell has "510"

  1. #1
    Registered User
    Join Date
    06-06-2005
    Location
    Minnesota, USA
    MS-Off Ver
    2016
    Posts
    18

    formula..that tells me if any given cell has "510"

    I have a cell that contains the following text:

    PDP-510dp
    DLPRP-1020
    PDP-560drp

    and other pieces of data similar to that.

    How can I write an equation that tells me if any given cell has "510" in it?

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: formula..that tells me if any given cell has "510"

    if you are just checking cell by cell
    =IF(ISERROR(FIND(510,A1)),"not found","found")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    06-06-2005
    Location
    Minnesota, USA
    MS-Off Ver
    2016
    Posts
    18

    Re: formula..that tells me if any given cell has "510"

    That worked great, what if I asked then to find multiple different pieces of information. Say 510, 520, 1080, etc.

    Don't you hate when you answer a question and then they continue the question with what they really needed to know? I know I can nest the equations, looking for a more complete answer than nesting multiple equations though.

  4. #4
    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

    Re: formula..that tells me if any given cell has "510"

    Don't you hate when you answer a question and then they continue the question with what they really needed to know?
    Chrisnelsonusa,

    We do so please don't do it again.

    PS. Please read the forum rules below as I had to amend you're title

    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 !!!

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: formula..that tells me if any given cell has "510"

    well youre stuck with nesting (unless someone cares to write a bit of code/udf)but you could reference other cell swith the values in to save re writing the equations.
    =IF(OR($D$1="",$E$1=""),"",IF(ISERROR(AND(FIND($D$1,A1),FIND($E$1,A1))),"not found","found"))
    where d1 and e1 contain the values that must both be in cell a1

+ 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