Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Date Comparison Formula

Hello -

I am trying to set up a formula that compares 2 dates. My spreadsheet
is set up as shown below. If any of the dates between the DIST DATE
column and the DT DATE column fall within the month if DEC, then the
number populated in the DAILY REQ column should display in Column D.

Any suggestions?

A B C D E F
DT DATE DIST DATE DAILY REQ DEC JAN FEB
01/30/08 11/02/07 6.48 6.48 6.48
08/01/08
12/17/07 10/19/07 7.39 7.39
08/31/07 07/01/07 15.00
10/29/07

Thanks!

Sandi
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Date Comparison Formula

I suppose you want to fill in the formula for *all* of the months?

Try this:

Assuming:

A1:F1 are column headers
A2:Bn are dates
All month names are in the short name format (mmm).

Enter this formula in D2 (D1 = column header = DEC) and copy across then
down as needed.

=IF(COUNT($A2:$B2)<2,"",IF(SUMPRODUCT(--(TEXT(ROW(INDIRECT($B2&":"&$A2)),"mmm")=D$1)),$C2, ""))

--
Biff
Microsoft Excel MVP


"foofoo" wrote in message
...
Hello -

I am trying to set up a formula that compares 2 dates. My spreadsheet
is set up as shown below. If any of the dates between the DIST DATE
column and the DT DATE column fall within the month if DEC, then the
number populated in the DAILY REQ column should display in Column D.

Any suggestions?

A B C D E F
DT DATE DIST DATE DAILY REQ DEC JAN FEB
01/30/08 11/02/07 6.48 6.48 6.48
08/01/08
12/17/07 10/19/07 7.39 7.39
08/31/07 07/01/07 15.00
10/29/07

Thanks!

Sandi



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
Help With Formula For Date Comparison foofoo Excel Discussion (Misc queries) 6 September 8th 07 12:56 AM
Date comparison TomD Excel Discussion (Misc queries) 4 February 20th 07 10:37 PM
date comparison help CathyZ Excel Discussion (Misc queries) 5 May 4th 06 11:53 AM
Date comparison Darkdrew Excel Worksheet Functions 7 March 23rd 06 04:22 PM
Date comparison Jonibenj Excel Discussion (Misc queries) 6 October 23rd 05 08:34 PM


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