+ Reply to Thread
Results 1 to 1 of 1

Checking string text (find it hard to code, please help)

  1. #1
    Registered User
    Join Date
    03-26-2013
    Location
    france
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question Checking string text (find it hard to code, please help)

    Hi,
    I am currently facing an issue on how to code a VBA program.
    I will expose the problem and if someone can help me it would be very helpful

    I attached an Excel file with an example of the kind of data I need to analyse.

    I need to analyse each column but for simplicity, lets just concider there is only one.
    Look at the allocation column (red text) and we will have to take the Allocations one by one (let start with Apple)
    We need to find the corresponding Column (here it is Apple link) and the corresponding cells which is D2.

    Now the hard part start. The text in green (Apple-145) is some kind of ID, and the text under the green text is a parameter.
    We need to check within this cell, that for every ID, there is a parameter under it.

    For example, D2 is fine, because there is one parameter under each ID (Apple-145 got 1 - Fruit and Apple-168 got 2 -Sugar.
    The code should then have some kind of variable saying it is fine.

    Then the code go to the next Allocation, here it is Tree. The code try to find the column but ''Tree link'' is not here, so it is fine.

    THen the code look at the next Allocation ( ''Bottle") and look for the Bottle link column and the corresponding cell (here E2)
    Same code as for the Apple, but this time it should have one variable saying that there is a problem because Bottle-545 don't have anything parameter below before the next ID (Bottle-752) starts.

    Please help me if you can. I am pretty new to VBA and this problem just block me completely.

    Thanks in advance
    Lucas
    Attached Files Attached Files

+ 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] Formula Checking Match String/text
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-29-2014, 11:30 PM
  2. Find and extract text string from within another text string
    By huy_le in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-09-2013, 09:01 PM
  3. [SOLVED] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 PM
  4. Spell checking a VBA text String
    By rdk45 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-19-2012, 02:25 AM
  5. [SOLVED] Checking a text box to make sure a code exists in our SQL Server
    By Angelique Worrell in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-31-2006, 02:50 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