Results 1 to 7 of 7

SUMIF and LOOP till the last row

Threaded View

  1. #1
    Registered User
    Join Date
    06-26-2009
    Location
    South Africa
    MS-Off Ver
    Excel 2003
    Posts
    74

    SUMIF and LOOP till the last row

    Hi

    How would one go about creating a macro that would sum values in column G based on a condition in F ( a "SUMIF" basically) until the end of the range?

    The condition would be so that the first blank cell in Column G (starting from column G9 ie Range("G9").End(xlDown).Offset(1,0) would contain the sum of everything above up until the word "Total" (or even the string of 5 characters from the left say "Total") appear in Column F - (the word Total appears a few times in column F, so it should detect the first applicable one)

    The idea would be to have this repeated / looped until the end of the data range

    Attached is an example and I hope what I have written makes sense

    As for the worksheets:

    "Final" is what it should look like (Blue Cells represent manual calculations)

    "Working" Sheet is where I have it up to now

    The sheet "Original" has a button that recreates everything up until where "Working" Sheet is

    Sheet ("Tenant History Schedule") is scrap sheet

    Thanks guys
    Attached Files Attached Files
    Last edited by georgeanaprop; 02-01-2010 at 02:26 AM.

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