Forum Discussion
mdemitchell
Oct 29, 2021Copper Contributor
Excel 365 formula to calculate MTD actual vs MTD Budget
I'm working with a YTD P&L and need to calculate a % variance between the latest month numbers and the monthly budget. How can I get the calculation cell to read the latest month entered? In the exa...
- Oct 30, 2021
Like I did in the attached version of your file, enter this formula in W5:
=LOOKUP(9.9E+307,J5:U5)-V5
mdemitchell
Nov 01, 2021Copper Contributor
This works very well! Thank you. If possible, can you run through the formula explaining each segment? For example, what does "9.9E+307" mean?
Twifoo
Nov 01, 2021Silver Contributor
9.9E+307 is the highest possible number in Excel. Because it cannot be found in the lookup_vector argument, LOOKUP returns the last number.