Dear all
I have a excel sheet which has a long invoice list and column M has invoice the date. I like to work out aged debt for each invoice on a cell as "Current","31-60","61-90","91-120","121-150","151-180","181-210","211+".When I have type this fomula, it works up to "151-180" anything after that woulnd work. I tkink the formula is too long.
Is there a way to shorthen this formula or is there a way to create a Public Function so that I dont have to type a long formula?
=IF(TODAY()-M3<=30,"Current ",
IF(AND(TODAY()-M3>=31,TODAY()-M3<=60),"31-60",
IF(AND(TODAY()-M3>=61,TODAY()-M3<=90),"61-90",
IF(AND(TODAY()-M3>=91,TODAY()-M3<=120),"91-120",
IF(AND(TODAY()-M3>=121,TODAY()-M3<=150),"121-150",
IF(AND(TODAY()-M3>=151,TODAY()-M3<=180),"151-180",
IF(AND(TODAY()-M3>=181,TODAY()-M3<=210),"181-210",
IF(TODAY()-M3<=211,"211+”))))))))
thank you very much for your help in advance.
Bookmarks