So I have a row that I have set to choose from a list (ex. Tom, Jerry, Sam)
Is there a way to make all the cells default to 'Sam' if a different value hasn't been selected yet? In effect I would see 'Sam' where a blank cell would be.
Thanks.
So I have a row that I have set to choose from a list (ex. Tom, Jerry, Sam)
Is there a way to make all the cells default to 'Sam' if a different value hasn't been selected yet? In effect I would see 'Sam' where a blank cell would be.
Thanks.
I'm assuming you mean, "When I start filling out data in one row, I'd like Sam's name to appear in a particular cell, but have a data validation list I can use when I get to that cell so I can choose another name if needed."
First, remove the data validation from those cells.
Next, let's assume column A is the first field for all rows and this data validation is over in say...column D. In D2, enter this:
=IF(A2="","","Sam")
Now copy that formula down the data set as far as needed. For all the rows that have no data in them yet, this column will remain blank. As soon as you later add the first value in column A, "Sam" will appear.
Now, highlight the entire column/dataset again and reapply your data validation list to it. Now you're ready to go.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks