+ Reply to Thread
Results 1 to 5 of 5

Thread: Split Range

  1. #1
    Registered User
    Join Date
    12-22-2008
    Location
    Canada
    Posts
    3

    Split Range

    I've never had this problem before but I'll do my best to explain it.

    I was multiplying 2 ranges in an formula to get a cell's value. The first was a set of user inputs and the second was an array of constants. Recently I needed to add another field in the middle of the user inputs which subsequently broke the range.

    So I had:
    Code:
    {=SUM(H12:H21*B141:B150)}
    Now I inserted a row so Excel changed it to

    Code:
    {=SUM(H12:H22*B141:B150)}
    Except I now need to exclude H13. I have absolutely no idea how to do this properly. Any help would be greatly appreciated.
    Last edited by marksimpson884; 12-22-2008 at 10:02 PM.

  2. #2
    Forum Moderator shg's Avatar
    Join Date
    06-21-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007
    Posts
    25,131
    Regular formula: =H12 * B141 + SUMPRODUCT(H14:H22, B142:B150)
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-22-2008
    Location
    Canada
    Posts
    3
    Alright, thanks that's half of it I just realized. I have another where its in an if statement....

    Code:
    {=SUM(IF(H12:H22>(B8:B17+B5*E132:E141),(B8:B17+B5*E132:E141),I12:I22)*B141:B150)}
    If it were possible to break up a range this would be so much easier...Depending on how hard this one is I might just give up and rewrite the entire workbook using vlookup and a hidden sheet.

  4. #4
    Forum Moderator shg's Avatar
    Join Date
    06-21-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007
    Posts
    25,131
    Umm ... why not insert the column to the left of the range instead of in the middle?
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    12-22-2008
    Location
    Canada
    Posts
    3
    Well I'm thinking about that. More likely what I'll do is insert it before the range. There was a specific order to these (ascending in cost) but I guess I can sacrifice that for having a workbook that isn't a nightmare to update.

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.2.0