Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default IF Formula to return monthly salaries

Hi Folks,
I'm having a senior moment here and would appreciate any help. I have
a formula to return a monthly salary in a budgeting sheet. It
compares three dates; a startdate (in K3), when the person started
work, the date at the end of a month(in V2), and a leavedate when they
left employment(in K3). It has to give "NS" (not started) in any
month before they were employed, their budgeted salary
(ROUND($O3/12,1) for each month employed, and "left" for any month
that they are no longer employed. By definition an employee cannot
have a leavedate without having a startdate, but it is possible for an
employee to have a short-term contract so that they have "NS", a few
month's salary and "left" within one financial year.
The formula that I have, correctly returns NS until I enter a
leavedate in cell K3 whereapon it returns a monthly salary even though
they have not started employment. Can anyone correct my formula so
that it gives the right return in each case. My mind seems to be
completely boggled.


= IF($K3="",IF($J3<$V$2,ROUND($O3/12,1),"NS"),IF($K3$V
$2,ROUND($O3/12,1),"left"))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default IF Formula to return monthly salaries

On Feb 5, 1:59*pm, Dave wrote:
I have a formula to return a monthly salary in a budgeting sheet. *It
compares three dates; a startdate (in K3), when the person started
work, the date at the end of a month(in V2), and a leavedate when they
left employment(in K3). *It has to give "NS" (not started) in any
month before they were employed, their budgeted salary
(ROUND($O3/12,1) for each month employed, and "left" for any month
that they are no longer employed.
[....]
= IF($K3="",IF($J3<$V$2,ROUND($O3/12,1),"NS"),IF($K3$V
$2,ROUND($O3/12,1),"left"))


I think you have the right idea. The problem is likely the extra
parenthesis after "NS". But I did not study your formula to see if
its logic fits your requirement. I think it can be simplified.
Assuming that J3, not K3, is the starting date, try:

=if(V2<$J3, "NS", if(or($K3="",V2<=$K3), round($O3/12,1), "left"))


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
Monthly Stock Return Volatility frank Excel Discussion (Misc queries) 6 February 21st 06 05:18 PM
How can i get top 5 salaries in a database [email protected] Excel Discussion (Misc queries) 1 February 18th 06 07:54 AM
using excell to caculated taxes due on salaries constance Excel Worksheet Functions 0 April 18th 05 10:37 PM
pmt function in Excel does not return correct monthly payment amou Harraman@Bangalore Excel Worksheet Functions 6 March 3rd 05 01:28 PM
How do you calculate rate of return on monthly cash flows Philly Fan Excel Worksheet Functions 1 February 16th 05 04:24 AM


All times are GMT +1. The time now is 04:19 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"