+ Reply to Thread
Results 1 to 12 of 12

Excel VBA checking column/row of data

  1. #1
    Forum Contributor
    Join Date
    07-17-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    183

    Excel VBA checking column/row of data

    Hi,

    I have a requirments in excel vba to evaluate and check the column data from other workbook. I would like to filter remarks for all "INTRANSIT" from my workingfile then If the data or tracking# is exist from the source file evaluate if transaction remarks is "Done" or if "Not yet" exist. If remarks from SourceFile is "Done" i will put "RECEIVED" or If "Not yet" i will put "INTRANSIT" in my Working file Remarks column. THank you in advance.



    Workbook WorkingFile:
    Tracking# Qty Model Remarks
    ---------------------------------------------------
    D-8840862402| 20 llll RECEIVED
    D-8840862402| 20 kkkk RECEIVED
    D-8840862411| 20 mmm INTRANSIT
    D-8840865000| 230 mmm INTRANSIT
    D-8840865000| 50 bbbb INTRANSIT
    D-8840862450| 20 bbbb INTRANSIT
    D-8840862450| 120 bbbb INTRANSIT


    SouceFile --- to evaluate if Done or Not Yet

    Tracking# Qty Model Remarks
    ----------------------------------------------------------
    D-8840862402| 20 llll Done
    D-8840862402| 20 kkkk Done
    D-8840862411| 20 mmm Not Yet
    D-8840865000| 230 mmm Not Yet
    D-8840865000| 50 bbbb Not Yet
    D-8840862450| 20 bbbb Not Yet
    D-8840862450| 120 bbbb Not Yet

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520
    Can you upload a small sample of the exact data structure of both files?
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Contributor
    Join Date
    07-17-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    183

    Re: Excel VBA checking column/row of data

    Thanks Mike for your prompt reply. attaching a sample data structure.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Excel VBA checking column/row of data

    Give this a try. Change the Const in the "" for your needs.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-17-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    183

    Re: Excel VBA checking column/row of data

    Hi Mike, Thank you very much. I try the codes and i notice that the column E of working file is overwrite even if the remarks is RECEIVED. Its possible that all the remarks with "RECEIVED" will be as ease and the "IN TRANSIT" will be evaluated to Sourcefile if Done or Not Yet. If Done the IN TRANSIT will be change to "RECEIVED" while if No Yet will be IN TRANSIT or as ease? Then in your codes the columns for working file and the columns for sourcefile should be the same structure of data, I'll give you another set of sample data with a little bit changes. This is a bit closer to actual data. Again, thanks for your time and effort.
    Attached Files Attached Files

  6. #6
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520
    Yes I forgot to reupload the code with the Received and In transit comments. I'm at work now for another 7 hours, I'll reupload it when I get to my computer.

  7. #7
    Forum Contributor
    Join Date
    07-17-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    183

    Re: Excel VBA checking column/row of data

    Thanks Mike. actually your codes is a little bit closer to my requirements.
    Btw, its possbile not to use all the columns from MyWorking file as reference liikup to Sourcefile. becuase some of the columns are not exist from the other workbook.
    Maybe we can use Tracking#, Model, Qty and type as reference.
    Last edited by Jovillanueva; 08-11-2014 at 11:16 PM.

  8. #8
    Forum Contributor
    Join Date
    07-17-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    183

    Re: Excel VBA checking column/row of data

    Hi Mike, do you have already the code for received and intransit comments? thanks.

  9. #9
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Excel VBA checking column/row of data

    Give this a try

    Please Login or Register  to view this content.

  10. #10
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Excel VBA checking column/row of data

    Give this a try

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    07-17-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    183

    Re: Excel VBA checking column/row of data

    Thank you mike. try this codes later and i'll give you the feddback.

  12. #12
    Forum Contributor
    Join Date
    07-17-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    183

    Re: Excel VBA checking column/row of data

    SOLVED. Thank you very much mike. its working now.

+ 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] EXCEL Formula to show howmany hits when checking list against data?
    By sem in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-14-2012, 10:14 PM
  2. Checking a column for everything else
    By Cmorgan in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-17-2011, 02:39 AM
  3. Checking Data in a column
    By thatguy911 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-09-2009, 04:51 PM
  4. Change font colors from Column A, checking Column G
    By Marco-Kun in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2009, 09:08 AM
  5. Checking column data
    By rszlp in forum Excel General
    Replies: 3
    Last Post: 09-22-2006, 05:12 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