Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
RGB
 
Posts: n/a
Default check whether a date falls in a range

Hi! I need a formula which will check to see if a date is in a range between
two dates. To complecate further, if the date is in my range the formula must
then calculate a number to display based on a $ value (from elsewhere)
divided by a number of months (again from another speadsheet).

i have come up with;

=IF(B4=data!E2,(data!H2/data!F2),("")) AND IF(B4<=data!E5,(data!H2/data!F2
),(""))

Clearly this formula doesnt work! Does anybody have any ideas?

What I am trying to do is show customers annual contract amount divided into
an average monthly amount. Obviously each customer has different contract
start and end dates! - i need to see each customer as a different line item,
and future months as columns.

Many thanks
RGB
  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default check whether a date falls in a range

=IF(AND(B4=Data!E2,B4<=Data!E5),Data!H2/Data!F2,"")

Vaya con Dios,
Chuck, CABGx3



"RGB" wrote:

Hi! I need a formula which will check to see if a date is in a range between
two dates. To complecate further, if the date is in my range the formula must
then calculate a number to display based on a $ value (from elsewhere)
divided by a number of months (again from another speadsheet).

i have come up with;

=IF(B4=data!E2,(data!H2/data!F2),("")) AND IF(B4<=data!E5,(data!H2/data!F2
),(""))

Clearly this formula doesnt work! Does anybody have any ideas?

What I am trying to do is show customers annual contract amount divided into
an average monthly amount. Obviously each customer has different contract
start and end dates! - i need to see each customer as a different line item,
and future months as columns.

Many thanks
RGB

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
update cell only if now() falls in a given date range treyn1292 Excel Worksheet Functions 0 February 16th 06 08:54 PM
Return a specified date when it falls within a range.... Nokose451 Excel Discussion (Misc queries) 1 January 16th 06 10:06 PM
how to check if date falls within range Bharat Saboo Excel Worksheet Functions 4 December 30th 05 10:31 AM
HELP - Date Range In 1 Cell Calculation Adam Excel Worksheet Functions 6 September 19th 05 08:24 PM
How can I sum information in a list with a date range? Dave Excel Worksheet Functions 2 November 23rd 04 08:17 PM


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