I’m sure there’s a very easy answer to this (and I don’t know that I have the excel chops to ask the “right” question, or google would give me the answer).
I have the following formula:
=DATE(YEAR(V1), MONTH(V1)+V2-1,8)
I’d like to be able to enter a number into a cell (say, 14) and have that formula run, except the number that I enter into the cell should replace the number 8 in the formula. So, again, entering 14, the formula that would execute would be:
=DATE(YEAR(V1), MONTH(V1)+V2-1, 14)
So to recap, the workflow is this:
- I enter the value ’14’ into cell A3.
- The above formula is executed
- The displayed value of A3 is something like 3/14/2012 (depending on my V1/V2 cell values)
Can I do this without VBA? (I’m a .NET programmer by trade, so VBA isn’t foreign to me, I just feel like Excel should be able to do this native without code).
No – because you are transferring a value in A3 via a formula into a new value within A3.
The code below will update A1:A5 when any of these cells are changed (all 5 if all are changed at once) with the result you ask for
Copy and paste the code below