Thread: if function
View Single Post
  #11   Report Post  
Matt D Francis
 
Posts: n/a
Default if function

Brilliant, if I actually understand the formula, I can see where else the
functions could be used. Thank-you.

Matt

"Bob Phillips" wrote:

Sorry, hit the button too soon.

The MONTH(A1)/3 takes the month of the given date, and divides by 3 to give
a value of .33,.66 or 1 for the first three months, 1.33, 1.66 or 2 for the
second 3 months, etc.

CEILING(val,1) takes it up to the nearest integer, 1,2, etc.

CHOOSE then uses that value to pick from the comma delimited list.

Example,

A1 contains 20th October

MONTH(A1) = 10
MONTH(A1)/3 = 3.33
CEILING(MONTH(A1)/3),1) = 4
CHOOSE then picks the 4th value, Q4



HTH


RP