+ Reply to Thread
Results 1 to 4 of 4

Expanding ranges causing probs?

  1. #1
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161

    Expanding ranges causing probs?

    I have named ranges from rows D2 - X30, D31 - X50 and D51 - X80 (named first, second and third) at the bottom of these (from A80 downward) i have some formatted rows that can have data entered, when the AutoClose runs it sorts all the rows by date (the dates for all ranges appear in column A) but when a row is taken from the extra area (below A80) and sorted in date order and inserted into one of the named ranges (lets say FIRST) then the range expands but moves the other ranges out (i.e FIRST would now be D2 - X31 and SECOND would be D32 - X51) and this is causing problems with calulations that are taken from these cells, Is there anyway to cure this problem?

    The sorted inserted rows will always go in between 2 dates as the 3 ranges are sections of the year.

    Any thoughts or help will be greatfully recieved.

    Thanks,

    Simon

  2. #2
    Tushar Mehta
    Guest

    Re: Expanding ranges causing probs?

    Not that responding to this guarantees a satisfactory resolution to
    your problem...

    That's quite a mouthful you had to say all in one burst. Consider
    using more than a single sentence to describe the problem.

    That said, it is *possible* that the use of INDIRECT (or maybe OFFSET)
    will resolve your problem. But, without a clearer picture...

    --
    Regards,

    Tushar Mehta
    www.tushar-mehta.com
    Excel, PowerPoint, and VBA add-ins, tutorials
    Custom MS Office productivity solutions

    In article <[email protected]>,
    [email protected] says...
    >
    > I have named ranges from rows D2 - X30, D31 - X50 and D51 - X80 (named
    > first, second and third) at the bottom of these (from A80 downward) i
    > have some formatted rows that can have data entered, when the AutoClose
    > runs it sorts all the rows by date (the dates for all ranges appear in
    > column A) but when a row is taken from the extra area (below A80) and
    > sorted in date order and inserted into one of the named ranges (lets
    > say FIRST) then the range expands but moves the other ranges out (i.e
    > FIRST would now be D2 - X31 and SECOND would be D32 - X51) and this is
    > causing problems with calulations that are taken from these cells, Is
    > there anyway to cure this problem?
    >
    > The sorted inserted rows will always go in between 2 dates as the 3
    > ranges are sections of the year.
    >
    > Any thoughts or help will be greatfully recieved.
    >
    > Thanks,
    >
    > Simon
    >
    >
    > --
    > Simon Lloyd
    > ------------------------------------------------------------------------
    > Simon Lloyd's Profile: http://www.excelforum.com/member.php...fo&userid=6708
    > View this thread: http://www.excelforum.com/showthread...hreadid=497331
    >
    >


  3. #3
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Right here goes,

    in the ranges mentioned names can be entered, when entered a count is made on another sheet and depending on which range the name falls in it will count either 8 or 12 for each instance.

    When the ranges have a row inserted after sorting they expand (as they should) and it is possible that when a name is entered at the bottom of one of these ranges it will count wrong i.e if its in a range that should count 8 with the expansion it could now count 12 (as is happening). This count page works perfect its only the fact that the ranges are expanding to cover part of a range i named

    I have a sum formula on the count page that says if "Bloggs J" appears in FIRST range then make one count of 8 etc for all the names of people on my shift, their name may appear numerous times in the range(s).

    This is a holiday booking system for employees, so each day is booked as a seperate day consisting of a 12 hour booking or an 8 hour booking.

    I can supply the workbook if you give me your e-mail address but it wont be until wednesday when im back at work.

    Thanks,

    Simon

  4. #4
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Hi all,

    Sorry for replying to my own post but i wanted to get some response for my post below,

    Hope you can help!

    regards,

    Simon

+ Reply to Thread

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