Results 1 to 7 of 7

Macro to run formula based on a range of data in some rows of a column

Threaded View

Pro Sherman Macro to run formula based... 05-28-2013, 05:18 PM
tehneXus Re: Macro to run formula ... 05-28-2013, 05:53 PM
Pro Sherman Re: Macro to run formula ... 05-29-2013, 10:38 AM
tehneXus Re: Macro to run formula ... 05-29-2013, 10:59 AM
Pro Sherman Re: Macro to run formula ... 05-29-2013, 01:10 PM
tehneXus Re: Macro to run formula ... 05-29-2013, 01:29 PM
Pro Sherman Re: Macro to run formula ... 05-29-2013, 02:33 PM
  1. #1
    Registered User
    Join Date
    05-28-2013
    Location
    Sarasota, FL
    MS-Off Ver
    Excel 2003
    Posts
    9

    Macro to run formula based on a range of data in some rows of a column

    I need to develop code for a macro (or better yet a private sub that does it all):
    Sample sheet attached.

    Some background.

    Rows are grouped (I have colored the groups to aid in understanding) by the value in Column E. (Tag 1). Each group can have from 1 to 8 duplicate values (Duplicate tag 1’s)

    What I am trying to do is create some formulas in Columns O,P,Q&R ON THE LAST ROW OF DATA FOR THAT TAG1). (real life examples are located in Row 2)

    For example: In Column O, I want to add the values for M for only those rows with that group’s tag number.

    I have manually inserted formulas in Cells O3,O10,015,019 &O21 just to demonstrate how I would like things to look in that particular column when I am done.

    It seems to me that the logic might be Keep track of the count of row E until the value changes to a non-duplicate and then use the result of that count to define the # rows in Column M to sum and display in the appropriate cell in Column O. A mouthful that is well beyond my level of expertise.

    Any suggestions would be greatly appreciated.
    Attached Files Attached Files

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