Forum Discussion
IF Function
- Apr 16, 2021
In P2:
=IF($J2=P$1,$L2,"")
If you use comma as decimal separator, it should be
=IF($J2=P$1$L2;"")
Fill down, then to the right (or vice versa).
- CottageCelebrationsApr 16, 2021Copper Contributor
Thanks, I tried yours too and the first one worked but the second formula filled the cell with the formula, not the number. I tried formatting the cell as a number and checking the box with the comma but didn't help.
- SergeiBaklanApr 17, 2021Diamond Contributor
As a comment, based on screenshot only, especially if it doesn't show what is in formula bar, quit often it's hard to understand what is the actual reason of the error. On this site we may only make some guesses. Hans indicated two possible reasons - wrong quotes and in your locale you shall use semicolons instead of commas. One of them works.
Bottom line - it's always better to provide small sample file which illustrates an issue. Answers will be more exact and received more fast.