+ Reply to Thread
Results 1 to 4 of 4

Ignoring characters while formula looks for value

  1. #1
    Registered User
    Join Date
    09-12-2013
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    4

    Ignoring characters while formula looks for value

    I have stacked formulas that look for values via vlookup and index match functions.

    Sometimes the worksheet will have ( 100 ) separated into 3 columns (open parenthesis, number, closed parenthesis) and the formula will pull the first column containing the parenthesis. How can I write the formula to ignore the "(" and get to the "100"?

    The formula uses ISERROR to move forward, could I incorporate ISNUMBER also or is there a better way to do this?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Ignoring characters while formula looks for value

    Hard to understand.

    Click GO ADVANCED and use the paperclip icon to attach a sample workbook showing us sample data and manual mockup of the results you're trying to formulate.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    09-12-2013
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Ignoring characters while formula looks for value

    The workbook is set up with multiple worksheets. The first is a summary that pulls numbers from the rest of the worksheets via stacked vlookup and index/match formulas.

    The remaining worksheets have data populated from converted PDFs that do not always come out evenly, in other words, a value may be in cell D100 in one sheet, but on the next worksheet the same value is in cell D101, or E100.

    eg)
    Worksheet 2:

    | A | B | C | D | E |
    1 |Dist| | ( |100| ) |
    2
    3

    Worksheet 3:
    | A | B | C | D | E |
    1 |Dist| ( |100| ) | |
    2
    3

    Worksheet 4:
    | A | B | C | D | E |
    1
    2 | |Dist| ( |100| ) |
    3

    The formulas look for "Dist" and will search the range of cells in the proceeding columns for a corresponding value and if nothing is found it will move on to the next formula. Unfortunately, the formula will often return the "(". I am trying to write the formula so that it overlooks the "(" and instead returns the numerical value "100".

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Ignoring characters while formula looks for value

    Jerry asked for a sample workbook because when you type (or copy) your sample here, it is often hard to make out what you have. Plus no-one wants to retype your data or try to reconstruct what we think you have
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Ignoring leading characters while numbering rows
    By Sebo in forum Excel General
    Replies: 7
    Last Post: 08-04-2011, 06:27 PM
  2. Ignoring leading characters in a sort
    By tas666 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-21-2006, 03:45 AM
  3. Ignoring Certain Characters In a Cell Using VBA
    By Lil Pun in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2006, 08:22 PM
  4. Ignoring characters when sorting
    By amy153 in forum Excel General
    Replies: 0
    Last Post: 02-14-2006, 05:20 PM
  5. [SOLVED] I want to sort, ignoring all characters except numbers
    By wojo in forum Excel General
    Replies: 15
    Last Post: 07-08-2005, 05:05 PM

Tags for this Thread

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