+ Reply to Thread
Results 1 to 7 of 7

VBA code to search in a column and mark in another.

  1. #1
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    VBA code to search in a column and mark in another.

    Hi all !

    How do we solve the following problem with VBA:

    Find in column F, the third smallest value.
    Put an "X" in column A, in a row at the same name.
    Find in column F, the second smallest value.
    Put an "X" in column B, in a row at the same name.
    If the column C have an "X" (or maybe more) Not take into account the values ​​in this row.

    And if possible explain me (other VBA) how should I do if I want to find 2 values​​.
    EX. Find the column G, the second and fourth smallest value.

    Attach a photo and an example in excel.

    Thanks in advance and Merry Christmas!
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: VBA code to search in a column and mark in another.

    I found here a macro that puts an "X" when it finds a predetermined value. But to do the calculations ... not yet!
    Many thanks to all who have helped me.

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: VBA code to search in a column and mark in another.

    try this code without macro

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: VBA code to search in a column and mark in another.

    this is the file
    Attached Files Attached Files

  5. #5
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: VBA code to search in a column and mark in another.

    Thanks rcm for your quick answer.
    Apparently is what I want. I will see how it works in the original sheet (to implements the new columns). And I'll give you an answer.
    Thank you.

    Merry Christmas.

  6. #6
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: VBA code to search in a column and mark in another.

    Happy Holydays in Portugal from Guatemala!!!

  7. #7
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: VBA code to search in a column and mark in another.

    Hi rcm,

    I just finished to implement your formula in the original sheet (very easy, nothing hard to do).
    Great work. I did not know could be done without VBA.
    Many thanks mate. Many thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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