+ Reply to Thread
Results 1 to 6 of 6

Look and return and sperate part numbers with

  1. #1
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Look and return and sperate part numbers with

    Hello All

    Please see attached to help understanding.

    I need a formula in COL B sheet1, that returns the part number in separate rows as I have manually done on sheet 2

    the data is constantly changing, 4-part numbers is the maximum that will ever appear in the list 72400104/72400105/72400106/72400107 in a the column at any one time, but, 3 could appear or 2 or even 1,


    Paul
    Attached Files Attached Files

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,216

    Re: Look and return and sperate part numbers with

    You in VBA Section so here's vba...

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Valued Forum Contributor
    Join Date
    06-27-2010
    Location
    sYRIA
    MS-Off Ver
    Excel 2013
    Posts
    669

    Re: Look and return and sperate part numbers with

    HI
    If respect the layout provided in Sheet1
    TRy
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Hi ! In case result must be in Sheet1 …


    According to the attachment a VBA starter to paste to the Sheet1 worksheet module :

    PHP Code: 
    Sub Demo1()
        
    Dim V(), WR&, L&, N&
            
    ReDim V(2 To Rows.Count1)
            
    Me.UsedRange.Value2
        
    For 2 To UBound(W)
            If 
    W(R1) > "" Then
                L 
    2
                V
    (L0) = W(R1)
                
    W(R2) = Split(W(R2), "/")
                For 
    0 To UBound(W(R2)):  V(N1) = W(R2)(N):  Next
                
    IF UBound(W(R2)) > 0 Then L UBound(W(R2))
            ElseIf 
    W(R2) > "" Then
                L 
    1
                V
    (L1) = W(R2)
            
    End If
        
    Next
            Range
    ("A2:B" L).Value2 V
    End Sub 
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !
    Last edited by Marc L; 03-15-2021 at 07:27 AM.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,586

    Re: Look and return and sperate part numbers with

    Here is the code
    Option Explicit
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Re: Look and return and sperate part numbers with

    thanks guys, is there no formula that can do this, reason being, this is part of a bigger spreadsheet and I can not modify the code

+ 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. [SOLVED] Formula to sperate First Name and Last name
    By rizmomin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-24-2020, 04:27 PM
  2. Matching Part names and Part Numbers
    By AM8DVP in forum Excel General
    Replies: 4
    Last Post: 04-04-2019, 11:32 AM
  3. If part of cell is equal part in array, return equal part
    By abrj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2019, 03:29 PM
  4. Replies: 6
    Last Post: 03-11-2019, 05:06 AM
  5. [SOLVED] Convert Part Descriptions to Part Numbers
    By Neuk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-23-2018, 09:56 AM
  6. Replies: 3
    Last Post: 08-07-2016, 05:00 PM
  7. [SOLVED] SUMPRODUCT or COUNTIFS to Return Sum of Numbers Meeting Year and Part Number?
    By d_striker in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-27-2013, 04:01 PM

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