View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John C[_2_] John C[_2_] is offline
external usenet poster
 
Posts: 1,358
Default Validation based on three conditions

you do? Heck, I don't, I think my brain is losing something every day :)
--
John C


"vezerid" wrote:

Thanks for the tip John. You learn a new thing every day...

On Oct 15, 6:14 pm, John C <johnc@stateofdenial wrote:
Nice 1. But since it is DV, even though *array*, you don't need to hit the
CTRL+SHIFT to enter, works just fine without it.
--
John C

"vezerid" wrote:
In DV Custom enter the following *array* formula:


=(SUM(LEN($B$7:$F$7))=1)*ISNUMBER(MATCH("X",$B$7:$ F$7,0))


Since it is an array formula press Shift+Ctrl+Enter rather than just
enter or clicking the OK button.


HTH
Kostis Vezerides


On Oct 15, 4:56 pm, wrote:
Hi


My data is in range B7:F8. Row 7 and 8 is merged (B7/B8, C7/C8 ... E7/
E8) is merged. Therefore in all I have five cells.


I want an input "X" or "x" in one of those five cells. (Only one
input, more than one is not allowed)


If anyone gives two inputs
OR
if anyone types anything besides "X" or "x"
OR
if anyone types anything of length more than one character


It should give a validation error box with a message.


Can someone give a formula to enter in the validation box?