+ Reply to Thread
Results 1 to 8 of 8

Extract Stock numbers on to a seperate Sheet excluding those numbers starting with a "U"

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,871

    Extract Stock numbers on to a seperate Sheet excluding those numbers starting with a "U"

    I have data on sheet "Data"

    I need to extract the data to sheet "Extract" using advanced Filter , where the stock numbers in Col C do not start with a U for E.G. UR31585


    I have set up the criteria in Col U on sheet "Extract" but all the data is extracted to sheet "Extract"

    I have manually extracted the data to sheet "extract" so you can see what I am trying to achieve


    It would be appreciated if someone can amend my criteria in Col "U" as this apppears to be set up incorrectly

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,168

    Re: Extract Stock numbers on to a seperate Sheet excluding those numbers starting with a "

    One option:

    =FILTER(Data!A2:D9,LEFT(Data!C2:C9,1)<>"U")

    Or are you saying you want to enter any letter in U2? If so, put just "U" (without quotes) in U2, then use this:

    =FILTER(Data!A2:D9,LEFT(Data!C2:C9,1)<>U2)

    If, however, you're wanting to put in "<>U*" or "=U", etc., don't think you can do that. You can use it as a variable for a value, but I don't think you can include the <> or =.

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,871

    Re: Extract Stock numbers on to a seperate Sheet excluding those numbers starting with a "

    Thanks Gregb11


    Thanks for your Formula. However , I get #Spill in A2

    Please check and correct

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,168

    Re: Extract Stock numbers on to a seperate Sheet excluding those numbers starting with a "

    Yes, that formula "SPILLS" into the other cells, so you need to delete all the other values in those cells.
    I've attached a copy.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Extract Stock numbers on to a seperate Sheet excluding those numbers starting with a "

    with Power Query

    BR Code Date Stock Number Branch
    998714
    24/02/2023
    BR13158 BR1
    998714
    24/02/2023
    BR31592 BR1
    998714
    24/02/2023
    BR31586 BR1
    998715
    24/02/2023
    BR31601 BR1
    998715
    24/02/2023
    BR31572 BR1
    998715
    24/02/2023
    BR31541 BR1


    you can define which characters (from the beginning) you want to exclude, eg. U or UR and so on...

    Please Login or Register  to view this content.
    Last edited by sandy666; 03-01-2023 at 06:44 AM. Reason: update

  6. #6
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,871

    Re: Extract Stock numbers on to a seperate Sheet excluding those numbers starting with a "

    Thanks GregB11

    Now I know to clear the data with the filter formula first

  7. #7
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,871

    Re: Extract Stock numbers on to a seperate Sheet excluding those numbers starting with a "

    Thanks Sandy

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Extract Stock numbers on to a seperate Sheet excluding those numbers starting with a "

    You are welcome

+ 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. Listing Range of Numbers, Given "Starting Number + x"
    By your in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-18-2023, 08:27 AM
  2. how to extract the numbers on a specific row with ("0.000") 3 decimals
    By lotfi benmansour in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2022, 03:19 PM
  3. [SOLVED] Extract all numbers after second ":" in a cell and list them in a column
    By lynnsong986 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-20-2019, 02:46 AM
  4. [SOLVED] Count syntax for dividing # of "positive numbers" by "total numbers"
    By synses in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-18-2013, 09:06 PM
  5. Replies: 2
    Last Post: 01-27-2013, 12:20 AM
  6. [SOLVED] "how to search missing numbers in a single cell "from a min/max numbers library.."
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-22-2012, 04:58 PM
  7. Extract only text and numbers from a range that includes 0's and ""
    By emricki in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-26-2011, 04:19 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