Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default If(And Multiple Conditions

This is my spreadsheet:
C D H I J
Month Start Date End Date June July
5,821.83 1/1/08 5,821.83

I have a formula that looks at a start date and places the monthly salary
based on the start date in the appropriate month, and carries it forward for
the rest of the year. How do I incorporate an additional statement that also
looks at the "End Date" field, and will enter a zero in the last pay month,
and subsequent months for the rest of the year? My formula is:

=IF($C5="",0,IF($G5=--"6/30/2008",0,IF($G5<--"6/1/2008",$C5,IF(AND($G5<--"6/30/2008",$G5--"6/14/2008"),$C5/2,))))


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default If(And Multiple Conditions

Why the hard-coded dates? it is very difficult to determine what your data
looks like from that example.

--
__________________________________
HTH

Bob

"Micki" wrote in message
...
This is my spreadsheet:
C D H I J
Month Start Date End Date June July
5,821.83 1/1/08 5,821.83

I have a formula that looks at a start date and places the monthly salary
based on the start date in the appropriate month, and carries it forward
for
the rest of the year. How do I incorporate an additional statement that
also
looks at the "End Date" field, and will enter a zero in the last pay
month,
and subsequent months for the rest of the year? My formula is:

=IF($C5="",0,IF($G5=--"6/30/2008",0,IF($G5<--"6/1/2008",$C5,IF(AND($G5<--"6/30/2008",$G5--"6/14/2008"),$C5/2,))))




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default If(And Multiple Conditions

That's the only way I knew how to do it. It'd rather reference other cells.
Here's what I want. I someone has a start date of June 1, then enter a full
month's salry. If they have a start date of June 15, enter 1/2 mo. salary. If
however, sonone started January 1 and quit September 30, I want the monthly
salary to reflect $0 Oct - Dec.

"Bob Phillips" wrote:

Why the hard-coded dates? it is very difficult to determine what your data
looks like from that example.

--
__________________________________
HTH

Bob

"Micki" wrote in message
...
This is my spreadsheet:
C D H I J
Month Start Date End Date June July
5,821.83 1/1/08 5,821.83

I have a formula that looks at a start date and places the monthly salary
based on the start date in the appropriate month, and carries it forward
for
the rest of the year. How do I incorporate an additional statement that
also
looks at the "End Date" field, and will enter a zero in the last pay
month,
and subsequent months for the rest of the year? My formula is:

=IF($C5="",0,IF($G5=--"6/30/2008",0,IF($G5<--"6/1/2008",$C5,IF(AND($G5<--"6/30/2008",$G5--"6/14/2008"),$C5/2,))))





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
SUMPRODUCT or INDEX/MATCH for multiple conditions and multiple rec TravisB Excel Discussion (Misc queries) 21 March 16th 07 09:49 PM
How do I add multiple values that match multiple conditions? Joel Excel Discussion (Misc queries) 5 April 10th 06 01:32 PM
Multiple conditions and multiple return values Minerva Excel Worksheet Functions 3 February 16th 06 06:57 AM
Combining Text from multiple cells under multiple conditions KNS Excel Worksheet Functions 2 June 15th 05 11:00 PM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM


All times are GMT +1. The time now is 06:57 PM.

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"