+ Reply to Thread
Results 1 to 4 of 4

Match a part of a cell value

Hybrid View

  1. #1
    Registered User
    Join Date
    10-27-2014
    Location
    Mexico
    MS-Off Ver
    2010
    Posts
    2

    Match a part of a cell value

    Hello all!
    I want a macro that helps find the input of a Combobox (given by de user) on a column of excel until the cell has not just that input.
    For example if the given input is "1943" and the cell contains "1943 3302"

    For instance I just have this
    For i = 2 To 580
     If Cells(i, 8) = ComboBox1.Value Then
        TextBox1.Value = Cells(i, 7)
        TextBox2.Value = Cells(i, 9)
        TextBox3.Value = Cells(i, 11)
     End If
    Next
    But I don't know what to change, I know the equal "=" is what doesn't allow to match just a part of the cell value.

    I hope you can help me.
    Thank you
    Last edited by Leith Ross; 11-07-2014 at 03:53 PM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Match a part of a cell value

    Hello JazminA,

    Welcome to the Forum!

    To help you with this problem, you would need to post your workbook. We need to see how the data is arranged, what formulas you are using, etc. Otherwise, we are just guessing at what you need.

    Please provide before and after examples of your data along with any notes you would like to include.

    If your workbook contains any sensitive information, please redact that information before you post.

    How To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    10-27-2014
    Location
    Mexico
    MS-Off Ver
    2010
    Posts
    2

    Re: Match a part of a cell value

    Hello Leith Ross,

    I am allowed to share the workbook since it is private information from my work, but have already solved it!
    Thank you very much

    Regards,
    JazminA
    Last edited by JazminA; 11-20-2014 at 03:07 PM.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Match a part of a cell value

    Good to know that you found a solution to your problem. If so, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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. Match part of cell to a list of words - Does not work with large data set
    By sdsu2010 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2013, 06:41 PM
  2. Match part of cell to any value in range
    By mek22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2013, 06:09 PM
  3. How to match if cell contains some part of the string from other cells in other column?
    By kalucharan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2012, 05:40 AM
  4. Match or find text in part of a cell
    By muchado77 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2007, 02:27 AM
  5. If Match Part of Text Within Cell, Then Blank
    By SteveC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-11-2006, 10:20 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