Walter Jackson48 said:I’m not quite sure what you’re trying to achieve with this formula. I assume you were messaging someone privately and now you're replying here (unless I somehow missed your previous post)
=IF(F1="/";"1";IF(F1="//";"2";""))
Here is my goal with this formula:
If I type "/" or "//" into cell F1, I want cell K1 to display either a 1 or a 2.
The problem is, if I put the "/" inside quotation marks... I can't actually type the "/" character into the cell itself anymore.
I could technically enter it into the formula bar, but that isn't a practical solution for me.
To prove what I mean... try this... but read this part first.
1. Type a single "/" into a cell. Do this before you enter the aforementioned formula anywhere in Excel.
The character appears fine. Everything works.
2. But once the formula is entered and cell F1 is active—in this specific case—this happens:
When I try to type the "/" again, even without a formula present, the keystroke triggers an Excel shortcut... specifically, it opens the "File" menu. And the worst part? That behavior sticks. I have no idea how to disable it.
So, I have two questions...
1. Regarding the formula itself.
2. How do I stop typing Shift+7 or just "/" from triggering the "File" button via keyboard shortcuts?
Basically,
the standard way of typing "/" in Excel just doesn't work for me anymore.