Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to write a function formula

I need a formula that satisfies the following:
From an excel spreadsheet I have a colum that contains the ages of different
residences. The ages are 1) New (less than a year) 2) The rest has a range
from 1 to 100 years. I want to call this new column "Age". The column "K"
contains the data and the first row is #35. Wherever there is a NEW I want
to call it 0. Ages from 47 to 100 I want to call it 1. Ages from 30 to 46 I
want to call it 2. Finally ages from 0 to 29 I want to call it 3.
I think I need to revise first column "K" for the value of 0 for all "NEW".
Otherwise I will have problems with the designation of the three groups.

Thank you for your help,
Ramon Luis
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default How to write a function formula

With an age in A1, try:

=IF(A1="New",0,(A146)+(A129)*(A1<47)*2+(A1<30)*3 )

--
Gary''s Student - gsnu200781


"Raymond L" wrote:

I need a formula that satisfies the following:
From an excel spreadsheet I have a colum that contains the ages of different
residences. The ages are 1) New (less than a year) 2) The rest has a range
from 1 to 100 years. I want to call this new column "Age". The column "K"
contains the data and the first row is #35. Wherever there is a NEW I want
to call it 0. Ages from 47 to 100 I want to call it 1. Ages from 30 to 46 I
want to call it 2. Finally ages from 0 to 29 I want to call it 3.
I think I need to revise first column "K" for the value of 0 for all "NEW".
Otherwise I will have problems with the designation of the three groups.

Thank you for your help,
Ramon Luis

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do you write format results of a function within a function? sangee Excel Worksheet Functions 3 June 14th 07 12:45 AM
i need to write an IF function formula, how? maxwell New Users to Excel 1 June 6th 06 05:42 PM
How do I write a IF function formula? JulieA60 New Users to Excel 4 April 11th 06 11:11 PM
is there a way to write this function? Steve Excel Worksheet Functions 6 March 16th 05 02:48 PM
how do I write a vlookup function within an iserror function so t. JBLeeds Excel Worksheet Functions 2 March 16th 05 10:30 AM


All times are GMT +1. The time now is 01:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"