+ Reply to Thread
Results 1 to 9 of 9

Vlookup if text is formatted in a certain way

  1. #1
    Registered User
    Join Date
    04-29-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    92

    Vlookup if text is formatted in a certain way

    I cannot figure this out. I have a LARGE spreadsheet with blanks and some junk in it. But if it has an account number I need it to pull over the value. The Account numbers are in the spreadsheet like this:
    '1010-01 So they are text and I am trying to come up with a formula that if is has this account number then put a value. I came up with this Formula but some of the text I am searching in has "-" so I want it to be more specific. But I tried to use "0000-00", ####-## and neither of these worked. I am at a loss... Please help!

    =IF(ISNUMBER(SEARCH("-",E11)),VLOOKUP(E11,Sheet1!A:E,4,FALSE),"")

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Vlookup if text is formatted in a certain way

    Can you post an example workbook with all the variations that you're looking for? It's far easier to come up with a solution if we know all the variables

  3. #3
    Registered User
    Join Date
    04-29-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    92

    Re: Vlookup if text is formatted in a certain way

    Here you go. It works great until you get to the bottom.
    Attached Files Attached Files

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Vlookup if text is formatted in a certain way

    Try it like this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Vlookup if text is formatted in a certain way

    I'm guessing you want to eliminate all of the #N/A errors. Try this:
    Please Login or Register  to view this content.
    Does that get the results you're expecting?

  6. #6
    Registered User
    Join Date
    04-29-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    92

    Re: Vlookup if text is formatted in a certain way

    I don't know why I didn't think of that... yes that works. I guess I need more coffee this morning! Thank you!

  7. #7
    Registered User
    Join Date
    04-29-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    92

    Re: Vlookup if text is formatted in a certain way

    ok now is there a quick way to add the subtotals formula or will I have to do it manually?

  8. #8
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Vlookup if text is formatted in a certain way

    You may be able to replace the final "" in AlKey's or my formula with your subtotals formula. There may be some additional tinkering needed, depending on the formula and how you expect it to be triggered.

  9. #9
    Registered User
    Join Date
    04-29-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    92

    Re: Vlookup if text is formatted in a certain way

    Just found out there is no formulas there so I will have to manually add... oh well Thanks!

+ 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. Convert formatted text to fixed text value (time)
    By steez in forum Excel General
    Replies: 2
    Last Post: 04-10-2015, 03:12 PM
  2. Vlookup and RGB Formatted cell acorrdingly.....
    By Extrude72 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-27-2014, 09:03 AM
  3. Extracting numbers and text from inconsistent text/number formatted string
    By Brandivil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2013, 01:46 PM
  4. Replies: 3
    Last Post: 09-19-2010, 02:23 AM
  5. Replies: 7
    Last Post: 07-31-2009, 10:49 AM
  6. Pasting HTML formatted text as plain text in Excel
    By JeffCutter in forum Excel General
    Replies: 1
    Last Post: 09-21-2007, 07:43 AM
  7. [SOLVED] Converting 'General' formatted cells to Text formatted cell using.
    By Zahid Khan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2005, 04:06 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