Comma (,) in logic formulas causes error!

New Contributor

Hi everyone,

I am a new starter in Excel. I was training on custom commands in the data validation setting of a cell. I wrote the following formula for a sample cell:


the excel shows me an error comment that seems the comma is not valid. How it can be? it is correct and usual?


5 Replies


Do you use comma as decimal separator? If so, use semicolon ; between arguments of a function:



Thanks for your reply. I did this before, but the lfirst logic term does not work and Excel just sense the second term. Even more, when I come back to the formula I find the semicolumn has been shifted to the cell number betweein the letter and the number which make the cell address.


Do you perhaps use R1C1 notation? If you click in the top left cell of a worksheet and look at the address box on the left hand side of the formula bar, do you see A1 or R1C1?

No this is A1. The switch of the R1C1 in options is off.


In that case, the formula should work:


Does the problem persist if you quit and restart Excel? If you restart your computer?