As I understand the description you have now given, you are entering a new
row of data at the very bottom of the data, then sorting the data to get it
into the correct position.
If that is what you are doing, then there is no reason to expect excel to
change the defined name. Inserting data usually refers to selecting a row,
doing Insert=>Row. In that case, the ranges (such as you define them) will
adjust (regardless of what is entered in the space).
Your defined name has no understanding of the fact that it marks ranges of
dates - so when you sort in a date, there is no adjustment. To achieve
expansion under those conditions, you would need to build a formula that
determines the extent of the range based on the values in the cells.

Signature
Regards,
Tom Ogilvy
> Thanks for replying, i'm naming the ranges Hols1, Hols2 and Hols3 in
> this format =Holidays!$A$14:$AK$131 (this one is Hols1, the other two
[quoted text clipped - 12 lines]
> Hope you can help,
> Simon
Simon Lloyd - 27 Jan 2006 10:46 GMT
Tom, Thanks again for replying,
I have no idea how to build such a formula the formula on my count up
sheet is this
=COUNTIF(Hols1,E2)*8+COUNTIF(Hols2,E2)*12+COUNTIF(Hols3,E2)*8+F2
(although it does vary from cell to cell as it looks for names on
another sheet but it still looks for the named ranges) E2 shown here is
the name it is looking for in the named range (formula stored in G2) so
in the next cell down it will look at E3 etc. its when i sort a row in
to the named ranges that it no longer counts properly i.e instead of
counting in multiples of 8 it may count in 12's or vice versa!
Any ideas?
Simon

Signature
Simon Lloyd