Results 1 to 18 of 18

Trying to write a Loop to perform calculations within blank rows between populated rows

Threaded View

ObliviousAmI Trying to write a Loop to... 01-02-2014, 09:54 PM
rcm Re: Trying to write a Loop to... 01-02-2014, 10:39 PM
jolivanes Re: Trying to write a Loop to... 01-03-2014, 02:04 AM
JOHN H. DAVIS Re: Trying to write a Loop to... 01-03-2014, 11:59 AM
ObliviousAmI Re: Trying to write a Loop to... 01-03-2014, 02:06 PM
JOHN H. DAVIS Re: Trying to write a Loop to... 01-03-2014, 02:40 PM
ObliviousAmI Re: Trying to write a Loop to... 01-03-2014, 03:17 PM
JOHN H. DAVIS Re: Trying to write a Loop to... 01-03-2014, 03:28 PM
ObliviousAmI Re: Trying to write a Loop to... 01-03-2014, 04:11 PM
JOHN H. DAVIS Re: Trying to write a Loop to... 01-03-2014, 04:20 PM
ObliviousAmI Re: Trying to write a Loop to... 01-03-2014, 12:34 PM
ObliviousAmI Re: Trying to write a Loop to... 01-06-2014, 04:44 PM
JOHN H. DAVIS Re: Trying to write a Loop to... 01-06-2014, 04:45 PM
ObliviousAmI Re: Trying to write a Loop to... 01-15-2014, 01:35 PM
JOHN H. DAVIS Re: Trying to write a Loop to... 01-15-2014, 02:27 PM
ObliviousAmI Re: Trying to write a Loop to... 01-15-2014, 06:35 PM
  1. #5
    Registered User
    Join Date
    12-31-2013
    Location
    Sioux Falls, SD
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Trying to write a Loop to perform calculations within blank rows between populated row

    Good morning, John H Davis. I tried your code today, and the first loop (for column C) worked like a gem, then I found I needed to modify your second and third loops as the cells in columns F & G contain formulas instead of numeric values. Once I had done that, those loops worked beautifully, too. I found I also had to slightly modify your code in the final line of the last loop ("rcell.Value = rcell.Offset(-1).Value & " Combined Average") as my request hadn't been altogether clear. I needed to have the unique Rep Name from column A brought down to the first blank row (which your code does), but then I needed to have the next label placed in column B rather than concatenating the name & "Combined Average" both in column A, so I added "rcell.Offset(, 1).Value = "Combined Average"" which did exactly what I needed.

    My final question is this: How do I move columns A:E of each resultant row back to Sheet1 into the blank space that I've already placed beneath each unique Rep Name? Some of the cells (column C) contain formulas rather than numeric values, so I need to take that into consideration when the rows are transferred.

    Thanks again for the help, John. It was outstanding! I'm studying your code today to learn more from it so I don't have to ask so many questions! 'Preciate it. If you or anyone can help with this last bit, I'll be grateful.
    Last edited by ObliviousAmI; 01-03-2014 at 02:14 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to perform 'insert rows' instead of 'copy rows' using .copyrecordset (excel vba)
    By praful k in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2013, 06:06 AM
  2. [SOLVED] Perform calculations for multiple rows based on specific column text
    By justinmirsky in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 03-31-2013, 08:20 PM
  3. loop through rows for match insert blank rows with title
    By reeyu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-27-2012, 07:34 AM
  4. Deleting blank rows using loop and SpecialCells
    By mcraewhite in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2008, 05:42 PM
  5. Deleting blank rows using loop and SpecialCells
    By SOS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-05-2008, 09:40 AM

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