Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Containsmiles
 
Posts: n/a
Default Help with Excel Formulas or Functions

Hi, I'm working on a project and I was wondering if anyone can help me. I
need to know the formula that I can use to input the age of each individuals,
those who are "under 55", "age 55", and "over 55". I tried to input the
formula for all three but it said that I enter too many arguments. Any help
would be appreciated.


  #2   Report Post  
Posted to microsoft.public.excel.misc
PDUK1
 
Posts: n/a
Default Help with Excel Formulas or Functions

Hi there

Can you post your formula?

Peter

"Containsmiles" wrote:

Hi, I'm working on a project and I was wondering if anyone can help me. I
need to know the formula that I can use to input the age of each individuals,
those who are "under 55", "age 55", and "over 55". I tried to input the
formula for all three but it said that I enter too many arguments. Any help
would be appreciated.


  #3   Report Post  
Posted to microsoft.public.excel.misc
Containsmiles
 
Posts: n/a
Default Help with Excel Formulas or Functions

I used the IF formula: =IF (A1....) but I'm lost. Is it possible to have
all three if's "under 55", "age 55", and "over 55" years of age?

"PDUK1" wrote:

Hi there

Can you post your formula?

Peter

"Containsmiles" wrote:

Hi, I'm working on a project and I was wondering if anyone can help me. I
need to know the formula that I can use to input the age of each individuals,
those who are "under 55", "age 55", and "over 55". I tried to input the
formula for all three but it said that I enter too many arguments. Any help
would be appreciated.


  #4   Report Post  
Posted to microsoft.public.excel.misc
shadestreet
 
Posts: n/a
Default Help with Excel Formulas or Functions


You can use a nested if statement

=if(a1=55,"Age 55",if(a1<55,"Under 55","over 55"))

Or if you want an error condition you can nest another if statement:

=if(a1=55,"Age 55",if(a1<55,"Under 55",if(a155,"Over 55","Error")))

FYI you can nest 7 if statements I believe, and if you need more you
can reference another cell that uses more if statements


--
shadestreet
------------------------------------------------------------------------
shadestreet's Profile: http://www.excelforum.com/member.php...fo&userid=7092
View this thread: http://www.excelforum.com/showthread...hreadid=544894

  #5   Report Post  
Posted to microsoft.public.excel.misc
Containsmiles
 
Posts: n/a
Default Help with Excel Formulas or Functions

I tried the formula but it didn't work. My data has like about 600
individuals. I was trying to do three different column of their ages: (1)
based on their present age, (2) their age in 12/31/2007, and (3) their age in
6/30/2009.

"shadestreet" wrote:


You can use a nested if statement

=if(a1=55,"Age 55",if(a1<55,"Under 55","over 55"))

Or if you want an error condition you can nest another if statement:

=if(a1=55,"Age 55",if(a1<55,"Under 55",if(a155,"Over 55","Error")))

FYI you can nest 7 if statements I believe, and if you need more you
can reference another cell that uses more if statements


--
shadestreet
------------------------------------------------------------------------
shadestreet's Profile: http://www.excelforum.com/member.php...fo&userid=7092
View this thread: http://www.excelforum.com/showthread...hreadid=544894




  #6   Report Post  
Posted to microsoft.public.excel.misc
Containsmiles
 
Posts: n/a
Default Help with Excel Formulas or Functions

I just played with the formula you gave and I got it. Thanks for your help.
=IF(I2=55,"Age 55",IF(I255,"over 55",IF(I2<55,"under 55")))

"shadestreet" wrote:


You can use a nested if statement

=if(a1=55,"Age 55",if(a1<55,"Under 55","over 55"))

Or if you want an error condition you can nest another if statement:

=if(a1=55,"Age 55",if(a1<55,"Under 55",if(a155,"Over 55","Error")))

FYI you can nest 7 if statements I believe, and if you need more you
can reference another cell that uses more if statements


--
shadestreet
------------------------------------------------------------------------
shadestreet's Profile: http://www.excelforum.com/member.php...fo&userid=7092
View this thread: http://www.excelforum.com/showthread...hreadid=544894


  #7   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Help with Excel Formulas or Functions

You can easily calculate the age with

=DATEDIF(A1,TODAY(),"y")

what do you want to do then?

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Containsmiles" wrote in message
...
Hi, I'm working on a project and I was wondering if anyone can help me. I
need to know the formula that I can use to input the age of each

individuals,
those who are "under 55", "age 55", and "over 55". I tried to input the
formula for all three but it said that I enter too many arguments. Any

help
would be appreciated.




  #8   Report Post  
Posted to microsoft.public.excel.misc
Containsmiles
 
Posts: n/a
Default Help with Excel Formulas or Functions

I solved it already. Thanks for your help. I used Datedif function before
but somehow it didn't apply to this scenario. Instead I used the following:
=IF(I2=55,"Age 55",IF(I255,"over 55",IF(I2<55,"under 55")))
Hey, looks like my Excel is improving thanks to the community board. Thanks
again.

"Bob Phillips" wrote:

You can easily calculate the age with

=DATEDIF(A1,TODAY(),"y")

what do you want to do then?

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Containsmiles" wrote in message
...
Hi, I'm working on a project and I was wondering if anyone can help me. I
need to know the formula that I can use to input the age of each

individuals,
those who are "under 55", "age 55", and "over 55". I tried to input the
formula for all three but it said that I enter too many arguments. Any

help
would be appreciated.





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
User-defined functions created in Excel 2000 fail in Excel 2003 goodguy Excel Discussion (Misc queries) 1 October 3rd 05 07:04 PM
Are there functions that perform robust statistics in Excel? froot_broot Excel Worksheet Functions 0 August 30th 05 10:18 PM
Help, Urgent Excel Formulas are not calculating maashoff Excel Discussion (Misc queries) 1 May 3rd 05 12:25 AM
I want Excel to allow cells with formulas and unrelated text blueboy Excel Discussion (Misc queries) 9 March 4th 05 12:22 AM
Suddenly cannot calculate functions or formulas in Excel Leon Hairie Excel Worksheet Functions 1 March 1st 05 04:26 PM


All times are GMT +1. The time now is 02:54 PM.

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

About Us

"It's about Microsoft Excel"