Results 1 to 3 of 3

Macro to check sub totals

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-31-2008
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    149

    Macro to check sub totals

    Hello,

    Please see attached.

    I'd like a macro to total up all the values in column E, and then add that to the corresponding value in column C. If that total does not match the value in column D, then the macro should highlight the relevant code, as in the "After" section.
    So, for the first code "SPE997", 1&1&2&1 = 5, so SPE997 is not highlighted.
    There can be any number of codes (I've just used 3 in the example), but the last row to check will always be the last row with an entry in column B.

    I'd be glad of any help with this. Thanks in advance!
    Attached Files Attached Files
    Last edited by bd528; 06-08-2011 at 04:18 PM.

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