Link to home
Create AccountLog in
Avatar of Bill Golden
Bill GoldenFlag for United States of America

asked on

Excel Spreadsheet Formula

On my SETUP! Worksheet, I have four cells (T30, T31, T32, and T33) I want to designate for placing an X, and only an X, in any one, but not more than one, of the four cells.
Then, on my Worksheet1, Worksheet2, Worksheet3, etc. I want cells K4, K5, K6 or K7 to indicate the X placed in cells T30, T31, T32, and T33 on the SETUP! Worksheet, respectively.
I have attached the workbook.
ASKER CERTIFIED SOLUTION
Avatar of James Elliott
James Elliott
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of Steve
How about a validation list above the cell...
This will allow for a drop down list of values (1 to 4) or actual list of titles (T1,T2 etc)

See attached for example.
U--EE.xlsb
Avatar of Bill Golden

ASKER

It works but I am having trouble integrating it into my worksheet.  I am just getting started with VBA and there are already 5 Private Sub Worksheets and when I append your VBA code to any of those I get a compiler error regarding an ambiguous name detected.  I am not familiar with how to create another pane (I am sure that is not the correct word) to place your code in.
If you upload your spreadsheet I'll do it for you.

Or Steve's Non-VBA validation list solution might work better for you?
No matter which Sheet (Code) I add the routine to, I get a compiler error "ambiguous name detected"

I think I managed to add the workbook this time.
JE-Master-WithTabNamingandPageCountB.xls
Steve, you idea is interesting, but not really necessary with this spreadsheet.  It will help me greatly with one I have to design this weekend.  Thanks,
You already had change event so I added the code to it. When you pasted my code, it duplicated a change event.

This should work.
JE-Master-WithTabNamingandPageCountB.xls
One last fix.  Can you return a capital X even when they enter a small case x?
And, prevent someone from entering anything besides an "X"
Did the validation thing on the X. Used Steve's solution in another place. Thanks guys.