View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Dave L[_2_] Dave L[_2_] is offline
external usenet poster
 
Posts: 20
Default Trouble adding or subtracting from the current month

I'm trying to write a formula that will take the current month and subtract 3
from it and then display the full month name. This formula returns a 7 as
expected:
=MONTH(NOW())-3

But when I add the Text function to it so it returns "July" it always
displays "January" no matter what number i subtract:
=TEXT(MONTH(NOW())-3,"mmmm")

I can't just format the cell because this needs to be embedded into another
formula. How to i make it return the correct name of the month?