+ Reply to Thread
Results 1 to 3 of 3

Establishing a variable range based on data size

  1. #1
    Registered User
    Join Date
    10-05-2011
    Location
    NYC
    MS-Off Ver
    Excel 2010 Professional Plus
    Posts
    44

    Establishing a variable range based on data size

    I am working with an Excel file that lists each tenant's ID# in column B. Below each tenant ID# is a list of charge amounts for that tenant in column C, one charge per row. The number of charges varies for each tenant from month to month, and the row location of each tenant's ID# also will vary from month to month.

    Example: In January, tenant A ID# is in cell B4, charges are in C6 through C17. Tenant B ID# is in cell B19, charges are in C21 through C25. In February, tenant A ID# is in cell B7, charges are in C9 through C16. Tenant B ID# is in cell B18, charges are in C20 through C30.

    This information is located in one tab. Ultimately I want to extract the sum of charges for each tenant and list them in another tab.

    Any and all help will be greatly appreciated.

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Establishing a variable range based on data size

    A couple of approaches could be tried. My guess is that a pivot table won't work, but we could give it a shot. If not, a macro can be developed. Can you post a sample workbook?
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Establishing a variable range based on data size

    As per TL, a sample workbook would help immensely. If ID is in B4 and charges start in C6, what's in C4 and C5? So is column B blank between ID's? If so, the simplest solution would be to fill in Col B with the right ID's (which can be done quickly in a number of ways) and then there are lots of options open to you (depending on the rest of your data set up) like pivot tables and SUMIFs.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

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