#NAME when creating formula

meppwc

Well-known Member
Joined
May 16, 2003
Messages
626
Office Version
  1. 365
Platform
  1. Windows
I keep getting #NAME when I put a formula into a cell

I am trying to create the following logic:
If cell I2 or cell K2 is not blank, then populate with the value of C2, else, leave blank
Here is my attempt at the formula below
=IF(OR(I2<>"",K2<>""),C2,””)

Help Please
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Do you really have slanted double-quotes, like shown below:
=IF(OR(I2<>"",K2<>""),C2,””)

Excel does NOT like slanted quotes. Try replacing them with the ones you have earlier in the formula, and see if that resolves it:
=IF(OR(I2<>"",K2<>""),C2,"")
 
Upvote 0
It's the quotation marks..
Look closely at the formula in your post, the 3rd set of quotes appear to be slanted to the right a little bit.
The first 2 look good. I would remove and retype those quote marks.
 
Upvote 0
wow, had not noticed the slants.............corrected and worked..............thanks, I will be more observant next time
 
Upvote 0
wow, had not noticed the slants.............corrected and worked..............thanks, I will be more observant next time
Yes, most often times from data copied in from somewhere else (as opposed to direct typing).
 
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,300
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top