LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Data Validation and Name Range

Tom Ogilvy wrote:
I think you would need to build a contiguous list (no blank cells) in another
range to do this. As I recall, Named ranges with complex formulas don't work
well in data validation.

you can use a formula like

=IF(COUNTA($F$1:$F$50)=ROW(),OFFSET($F$1,SMALL(IF ($F$1:$F$50<"",ROW($F$1:$F$50)),ROW())-1,0),"")

to get a list with no blanks.

This is an array formula and would be entered with Ctrl+Shift+enter rather
than just enter. then drag fill down the column (entered in G1 and filled
down in the example)

Then your dynamic range would be

Name: List1

Refersto: =Offset(Sheet1!$G$1,0,0,counta(Sheet1!$G$1:$G$50), 1)

where G1 and down is where you formula is placed.


Tom,
Thanks it works! Now I have to see where and how to use it. I was
having problems with it until I reread your post and noticed the
Ctrl+Shift=Enter that I missed before. This part I did not understand.
Now that I have it working I am going to see if I can have the list
change as I change budget years. Since each budget has different line
items. I currently use
=SUMIF(INDIRECT("'Budget"&RIGHT(YEAR($I$1),2)&"'!A :A"),$B11,INDIRECT("'Budget"&RIGHT(YEAR($I$1),2)&" '!D:D"))
to get the money and expenses for that year..now if I can make the range
of items change to reflect that budget year would be nice, but not
necessary.

Thanks
Harry
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation Data using Validation Table cell range..... Dermot Excel Discussion (Misc queries) 16 January 5th 10 09:35 PM
Data Validation to range names for Chart Source Data Candyman Charts and Charting in Excel 1 September 3rd 09 07:27 PM
Data Validation and Name Range Harry Stevens Excel Worksheet Functions 2 May 21st 07 06:59 PM
Data Validation range Nigel Excel Discussion (Misc queries) 2 December 15th 05 10:33 AM
Range Name in Data Validation Paige Excel Programming 2 December 1st 05 06:48 PM


All times are GMT +1. The time now is 02:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"