Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IF Statements 1

Status
Not open for further replies.

scottpdann

Technical User
May 14, 2003
44
US
I created a formula comparing dates, divided it by 365, and it told me the year between the two dates. It is blank if there is no second date.

I need to create a formula where if this earlier # is >1.25 I want to list it as "former" , if it is greater than Zero, and 1.25 or less, it should say "Renew". If it is blank, then it should say "New".

Then, I need a totals formula to count the number in each group.

Any help would be appreciated. Thank you.

 
Are the dates you are comparing from the same or different fields? Please share your formula.

-LB
 
The date's are from the same field. I have the comparison down to a number. I need to get a formula based on the number.
 
if isnull({@yourformula}) then "New"
else if {@yourformula} > 1.25 then "former"
else "Renew"

Lisa
 
That did it. The else if semantics threw me.

How can I then count each type?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top