+ Reply to Thread
Results 1 to 5 of 5

Using left Function to extract data based on several Criteria

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

    Using left Function to extract data based on several Criteria

    I have data in Col A. I have tried to use the IF Function combined with the left function to that where 199, 200, F10, appears in Col A then Shirts COS to be extracted , otherwise a blank

    See my formula below

    I have also attached sample data



    Please Login or Register  to view this content.

    it would be appreciated if someone could assist me

  2. #2
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: Using left Function to extract data based on several Criteria

    The formula in your example is a Circular Reference, it's on Col B, looking at itself.

    Changing it to;

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Seems to work as you describe?

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Using left Function to extract data based on several Criteria

    Please try at B1

    =IF(OR(LEFT(A1,3)={"199","200","F10"}),"SHIRT COS","")

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

    Re: Using left Function to extract data based on several Criteria

    Thanks. I amended it, but it only extracts "Shirt Cos" where code in Col A contains 199 in the fist 3 characters, but not where first three characters is 200 or F10

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

    Re: Using left Function to extract data based on several Criteria

    Thanks for your help, your formula works perfectly

+ 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] if formula based on several criteria to extract data based on conditions
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-17-2018, 12:46 PM
  2. Replies: 6
    Last Post: 06-26-2017, 09:04 PM
  3. Replies: 0
    Last Post: 05-02-2016, 07:59 AM
  4. Replies: 3
    Last Post: 12-18-2014, 10:27 AM
  5. [SOLVED] Extract certain data based on two criteria
    By sam-0987 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-05-2013, 01:23 AM
  6. [SOLVED] Extract data based on 1 criteria
    By TexasRhode in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-06-2012, 06:08 PM
  7. Replies: 2
    Last Post: 11-25-2005, 06:20 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