Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Logical Functions


I am working on a spreadsheet for compensation
and I need help with the Add’t mths columns.
The spreadsheet should take Years of service
in column B and calculate additional months
(0,1 or 2 months) of severance base on years
of service. Below is an example of the
spreadsheet an as I said column E is what I
need help on to write a formula.

A B C D
1 Yrs.Serv Mths Sev. Severance $ Add't mths
2 21 12.5 $37,187.50 2
3 10 6 $21,750.00 1
4 6 3.02 $6,241.33 0


Column E add’t mths is where I need help.
I need that column to reflect the following:

IF A2 or = to 20 should show 2
IF A2 or = to 10 should show 1
IF A2 < 10 should show 0

I need all these options in one formula in cells
E2, E3, E4 and so on. Can you Help me?
FRN



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
PB PB is offline
external usenet poster
 
Posts: 4
Default Logical Functions


=If(A2<10,"0",If(A2<20,"1","2"))
of course you can format E2 as an integer, too.
PB

-----Original Message-----

I am working on a spreadsheet for compensation
and I need help with the Add't mths columns.
The spreadsheet should take Years of service
in column B and calculate additional months
(0,1 or 2 months) of severance base on years
of service. Below is an example of the
spreadsheet an as I said column E is what I
need help on to write a formula.

A B C D
1 Yrs.Serv Mths Sev. Severance $

Add't mths
2 21 12.5 $37,187.50 2
3 10 6 $21,750.00 1
4 6 3.02 $6,241.33 0


Column E add't mths is where I need help.
I need that column to reflect the following:

IF A2 or = to 20 should show 2
IF A2 or = to 10 should show 1
IF A2 < 10 should show 0

I need all these options in one formula in cells
E2, E3, E4 and so on. Can you Help me?
FRN



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from

http://www.ExcelForum.com/

.

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
logical functions Terri Farm[_2_] Excel Worksheet Functions 6 August 20th 09 06:50 AM
Logical functions If, And GK Excel Discussion (Misc queries) 2 November 21st 08 11:51 PM
Logical Functions Eden397 Excel Worksheet Functions 3 June 11th 07 04:08 PM
logical functions wiz546 Excel Worksheet Functions 1 February 1st 05 03:02 AM
Logical Functions FRN Excel Programming 1 November 4th 03 05:29 PM


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

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"