Share via

Data Validation - Custom formula: got error message saying "There's a problem with this formula"

Anonymous
2017-02-25T22:57:30+00:00

Hi,

I am trying to validate the email format in a cell (D14) using "Data Validation". But after selecting "Custom" and typed the formula in the formula's box, I got the message error from Excel saying "There's a problem with this formula".

The formula is below:

=AND(FIND(“@”,D14),Find(".",D14),ISERROR(FIND(" ", D14)))

I am using Windows 10 system and Excel 2016 (Office 365 Home).

Any help will be much appreciated.

Paulo

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

OssieMac 48,001 Reputation points Volunteer Moderator
2017-02-26T11:21:14+00:00

Yes. I understand that some regions use a semi colon in lieu of comma (and it is called a delimiter not a parameter). I am in Australia and we use commas.

There is some information on changing the delimiter at the following link but I suggest that you don't change your regional default because you do not know what else it might upset.

https://lockone.wordpress.com/2015/08/06/excel-now-using-semicolons-instead-of-commas-in-separating-formulas-fix-it-now/

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

6 additional answers

Sort by: Most helpful
  1. Anonymous
    2017-02-26T10:52:46+00:00

    The formula that I gave you definitely works because I tested it before and I have tested again.

    You have a bad character or syntax in there somewhere.

    Are you aware that to edit a formula in the field that you need to click in the field and press F2 to invoke "Edit Mode" otherwise as you move the cursor it thinks you are on the worksheet and inserts a cell (or range) address.

    Try the following to fix:

    • Highlight and Copy the following formula.

    =AND(FIND("@",D14),FIND(".",D14),ISERROR(FIND(" ", D14)))

    • Click on the required cell (D14)
    • Open Date Validation.
    • Position the cursor anywhere in the Formula field
    • Press F2 to invoke edit mode
    • Use right arrow to move cursor out past far right of formula
    • Press and hold the Back Space until the formula is totally deleted.
    • Use Ctrl and V to paste the new formula.

    Hi,

    Thank you for the heads up! I knew about the edit.

    What I did to solve the problem was to change the "," for the ";" and it worked. See the formula below:

    =AND(FIND("@";D14);FIND(".";D14);ISERROR(FIND(" ";D14)))

    To be honest, I don't know why and where to check in Excel to find this type of parameter ";" instead of ",".

    If you could clarify this, I would be glad!

    Kind regards,

    Paulo

    Was this answer helpful?

    0 comments No comments
  2. OssieMac 48,001 Reputation points Volunteer Moderator
    2017-02-26T04:15:09+00:00

    The formula that I gave you definitely works because I tested it before and I have tested again.

    You have a bad character or syntax in there somewhere.

    Are you aware that to edit a formula in the field that you need to click in the field and press F2 to invoke "Edit Mode" otherwise as you move the cursor it thinks you are on the worksheet and inserts a cell (or range) address.

    Try the following to fix:

    • Highlight and Copy the following formula.

    =AND(FIND("@",D14),FIND(".",D14),ISERROR(FIND(" ", D14)))

    • Click on the required cell (D14)
    • Open Date Validation.
    • Position the cursor anywhere in the Formula field
    • Press F2 to invoke edit mode
    • Use right arrow to move cursor out past far right of formula
    • Press and hold the Back Space until the formula is totally deleted.
    • Use Ctrl and V to paste the new formula.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2017-02-26T01:39:30+00:00

    You have sloping double quotes around the @ symbol. These have a different ascii value and not recognized by Excel.

    Copy the following and try.

    =AND(FIND("@",D14),FIND(".",D14),ISERROR(FIND(" ", D14)))

    Hi, 

    Thank you, but I tried your solution and the problem persists. See the screenshot.

    Was this answer helpful?

    0 comments No comments
  4. OssieMac 48,001 Reputation points Volunteer Moderator
    2017-02-26T01:19:22+00:00

    You have sloping double quotes around the @ symbol. These have a different ascii value and not recognized by Excel.

    Copy the following and try.

    =AND(FIND("@",D14),FIND(".",D14),ISERROR(FIND(" ", D14)))

    Was this answer helpful?

    0 comments No comments