View Single Post
  #20   Report Post  
Posted to microsoft.public.excel.worksheet.functions
watermt watermt is offline
external usenet poster
 
Posts: 82
Default Validation List - adding new entries

Ron,
I finally got this figured out with the assistance of you and Gord. I
really appreciate your time Ron (and Gords). Apparently I was not enabling
the CTRL+SHIFT+ENTER command at the "right time". I was doing it before
typing in the code instead of after I had already typed the code.

You guys are fantastic and I am so glad that I found the Discussion Forum.
It's certainly educating me, and opening up a great number of more uses for
Excel in my daily work. Besides, I get to communicate with a lot of great
people!

Thanks fellas,
Mike

"Ron Coderre" wrote:

Hmmm....I started with a blank workbook...
€¢ Named a sheet: Data
€¢ Named a sheet Feb_09
€¢ Followed the instructions from my prior post
€¢ The dropdowns display the first value
€¢ I entered a non-listed value
€¢ The DV dropdowns showed the new item in the list

Some other issue must be muddying the waters.
Please let us know what you find.

Regards,

Ron Coderre
Microsoft MVP (Excel)

"watermt" wrote in message
...
Ron,
I follow your directions to the letter (I think!) but now when I enter a
new
Doc name the #N/A error message shows up in the list instead of the new
Docs
name.

I went to the help feature and they suggested since I am using an array
formula with the MATCH function that I make my rows equal for the Docs
list
and the RefferedBy list, which I did. Still getting a #N/A error.

Mike

"Ron Coderre" wrote:

Try this on your workbook:

Names in Workbook: Docs
Refers to:
=Data!$F$3:INDEX(Data!$F:$F,COUNTIF(Data!$F:$F,"?* ")+COUNT(Data!$F:$F)+2,1)

Names in Workbook: ReferredBy
Refers to: =Feb_09!$H$10:$H$43

Select the ReferredBy range (Feb_09!$H$10:$H$43)
Data.Validation
....Allow: list
....Source: Docs

On the Data sheet
F3: (the first value you want on the list)

The first ARRAY FORMULA (committed with CTRL+SHIFT+ENTER):
F4: =IF(SUMPRODUCT((ReferredBy<"")*
ISERROR(MATCH(ReferredBy,$F$3:F3,0)))<0,
INDEX(ReferredBy,MATCH(TRUE,ISERROR(IF(ISBLANK(Ref erredBy),
FALSE,MATCH(ReferredBy,$F$3:$F3,0))),0),1),"")

Copy that formula into F5 and down as far as you think you'll need.

Now test the input range.

That should work...Does it?

Regards,

Ron Coderre
Microsoft MVP (Excel)


"watermt" wrote in message
...
Gord,
I've tried to get the DataValFlexList.xls sample to work for me but
have
had
no luck. In the sample it refers to column B as List Items B2:B20; my
list
items (named Docs) to update is on a seperate worksheet named DATA.

Also in the sample it refers to column D as the User Input D2:D20; my
user
input (named Referred BY) to select and enter in on the worksheet named
Feb_09.

My range definitions are as follows:

Docs:
=DATA!$F$3:INDEX(DATA!$F:$F,COUNTIF(DATA!$F:$F,"?* ")+COUNT(DATA!$F:$F),1)

Referred BY: =Feb_09!$H$10:$H$43

From what I've offered here, can you tell me where I've made an error
or
where I've overlooked something in one of the formulas?

Much appreciated,
Mike


"Gord Dibben" wrote:

Howard

That won't add new items to the list.

Debra Dalgleish has a couple of methods in these download sample
workbooks.

http://www.contextures.on.ca/excelfiles.html#DV0038

http://www.contextures.on.ca/excelfiles.html#DV0012


Gord Dibben MS Excel MVP

On Thu, 19 Mar 2009 15:32:10 -0700, "L. Howard Kittle"
wrote:

Go to the second sheet and select the entire column(or enough of that
column
so you will never run out of rows) and name it, say MyList.

Now on the first sheet in the Data Valadation check List and in the
Source
box enter =MyList OK.

HTH
Regards,
Howard

"watermt" wrote in message
...
I have a Validation list (=PhysiciansLN) that lists the last names
of
physicians in our hospital. If a user of this Excel file does not
find
the
physicians last name in the =PhysiciansLN list is there a way that
I
can
allow the user to type the new last name and have that
automatically
added
to
the =PhysiciansLN list?

I was hoping to be able to add new last names to that list through
a
formula
or function?

Mike