+ Reply to Thread
Results 1 to 5 of 5

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 (see attached). 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.
    Attached Files Attached Files
    Last edited by Bjordion; 10-07-2011 at 10:30 AM.

  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

    To efficiently manage a list, you need to have clear labels for each piece of data, and a clear header row. See attached.
    Attached Files Attached Files
    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
    Registered User
    Join Date
    10-05-2011
    Location
    NYC
    MS-Off Ver
    Excel 2010 Professional Plus
    Posts
    44

    Re: Establishing a variable range based on data size

    Quote Originally Posted by tlafferty View Post
    To efficiently manage a list, you need to have clear labels for each piece of data, and a clear header row. See attached.
    How can I automatically assign the tenant ID# to each charge? This is an exported Excel file from third party software that I am working with, and the total length of the file is about 20,000 rows long. It would be a major chore to manually copy/paste ID#'s for each charge.

  4. #4
    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

    Here's what I think is the simplest way.
    First fill in all your blanks with your tenant ID as follows
    Select B:B, F5 (GoTo) > Special
    Select blank cells. Hit enter to go to B4 selected
    In the formula bar, type = then hold down CNTRL and hit the up arrow (should see =B3 in formula bar)
    CNTRL + ENTER to fill in all the blanks

    Then in H4
    =SUMIF(B:B, H3, C:C)
    Does that work for you?
    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

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

    Re: Establishing a variable range based on data size

    Quote Originally Posted by ChemistB View Post
    Here's what I think is the simplest way.
    First fill in all your blanks with your tenant ID as follows
    Select B:B, F5 (GoTo) > Special
    Select blank cells. Hit enter to go to B4 selected
    In the formula bar, type = then hold down CNTRL and hit the up arrow (should see =B3 in formula bar)
    CNTRL + ENTER to fill in all the blanks

    Then in H4
    =SUMIF(B:B, H3, C:C)
    Does that work for you?
    That worked brilliantly. Thank you!

+ 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