Results 1 to 14 of 14

Loop counting and highlighting cells that are less than

Threaded View

  1. #1
    Registered User
    Join Date
    09-13-2012
    Location
    Maine
    MS-Off Ver
    Excel 2010
    Posts
    45

    Loop counting and highlighting cells that are less than

    I have been asked to go through an extensive excel worksheet and count which dates are before a certain day and give my supervisor a total. There are thousands of dates. I know I can have excel do this for me I just don't remember how. I would like some help with the most basic VBA commands to do this. The values are in column K and each value has two blank rows under it before the next value. If I wanted to write script to go through the column and any value that is less than 20111230 in column K put a red X in the cell in the next column how would I go about doing it? Also, if I could have a counter so that I don't then have to go through and count the X's. I was thinking making a command button then at the end of the script having a msg box show up with the total dates less than the above date. This is an small example what the dates look like. I coule really use some help on this one.

    20111002


    20111203


    20120523


    20120523


    20071104
    Last edited by cnash52; 09-13-2012 at 01:46 PM. Reason: Solved

Thread Information

Users Browsing this Thread

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

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