+ Reply to Thread
Results 1 to 13 of 13

FIND the exact P/N in a multi P/N range of cells

  1. #1
    Registered User
    Join Date
    03-05-2011
    Location
    Barcelona, Spain
    MS-Off Ver
    Excel 2003
    Posts
    27

    FIND the exact P/N in a multi P/N range of cells

    Hi, all,

    The attached WB should clarifymy question.

    Thanks, Ben
    Attached Files Attached Files
    Last edited by Benjamin1; 08-20-2011 at 04:08 PM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: FIND the exact P/N in a multi P/N range of cells

    Try this macro.

    Please Login or Register  to view this content.
    Martin

  3. #3
    Registered User
    Join Date
    03-05-2011
    Location
    Barcelona, Spain
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: FIND the exact P/N in a multi P/N range of cells

    mrice,

    Appreciate your prompt reply.

    As this was only a short example of a much larger table I prefer a WS formula and not VB code.

    BTH,

    a) I assume you ment: Dim SearchString As String

    b) The proposed macro does not end up with the requested sum.

    Maybe a User defined function could serve me right if it could be merged into an Array formula like the one in my attached WB.

    Thanks, Ben
    Last edited by Benjamin1; 08-20-2011 at 04:28 PM.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: FIND the exact P/N in a multi P/N range of cells

    It would be better to have only a single part number in each cell -- that's the way Excel is designed to work.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    03-05-2011
    Location
    Barcelona, Spain
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: FIND the exact P/N in a multi P/N range of cells

    Thank you, shg,

    I know that but when the list was created it didn't bother anyone.

    Isn't there a way to accomplish my need with only a WS formula ?

    Ben

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: FIND the exact P/N in a multi P/N range of cells

    I would never say it's not possible, but I'd change the worksheet rather than write an ugly slow formula.

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

    Re: FIND the exact P/N in a multi P/N range of cells

    here you go ,but i agree one cell per bit of data,
    when the list was created it didn't bother anyone.
    well it obviously is now lol
    err this is flawed it finds ca, and , aa when it shouldnt, hmm back to the drawing board
    Attached Files Attached Files
    Last edited by martindwilson; 08-20-2011 at 05:30 PM.
    "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

  8. #8
    Registered User
    Join Date
    03-05-2011
    Location
    Barcelona, Spain
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: FIND the exact P/N in a multi P/N range of cells

    Thank you, Martin,

    This is a big!!! progress.

    I inserted the 3 "M" column cells into the formula and change it a bit.

    Now I have one array result with T/F exactly what I was looking for (without any helper columns) except of the CA and AA misscounting.

    If you will find a solution for that - I'm all set.

    Thanks a lot and pls don't let it fall off the drawing board.

    Ben
    Last edited by Benjamin1; 08-20-2011 at 06:32 PM.

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

    Re: FIND the exact P/N in a multi P/N range of cells

    Cant do anything at the mo my excel has gone mad!

  10. #10
    Registered User
    Join Date
    03-05-2011
    Location
    Barcelona, Spain
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: FIND the exact P/N in a multi P/N range of cells

    If I may quote Scarlett O'Hara:

    "...tomorrow is another day"

    Ben

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

    Re: FIND the exact P/N in a multi P/N range of cells

    here is the best i can do,by putting the helpers on another sheet which can be hidden/very hidden
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    03-05-2011
    Location
    Barcelona, Spain
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: FIND the exact P/N in a multi P/N range of cells

    Thanks.

    Will study this.

    Ben

  13. #13
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: FIND the exact P/N in a multi P/N range of cells

    Try clarifying the title, P/N could be anything
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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