You would have seen this in a lot of online forms. It mandates you to first fill a particular field before you can enter something in the next field.
You can create the same setting in Excel as well. For example, if A1 is empty, then the user should not be able to enter anything in A2.