LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default formulas that matches data and subtract dates

Assuming that the source data is already/always in pairs from row2 down, eg:

Detroit 1Pa 06-04-2004
Detroit 1Pa 23-06-2004
Detroit 1Pb 01-08-2004
Detroit 1Pb 05-11-2004
Miami 1Pa 06-04-2004
Miami 1Pa 23-06-2004
Chicago 1Pb 01-08-2004
Chicago 1Pb 05-11-2004
etc

Then perhaps this might suffice in D2, copied down:
=IF(OR(A2="",B2=""),"",IF(MOD(ROW(),2)=1,C2-C1,""))
to return the number of days
between the 2 events on every "2nd event" line
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Sting17" wrote:
Can you reformulate to make it read the first two letter of the pairing code:
"1P" of the "1Pa"? I can have:

Detroit 1Pa 01/01/01
Detroit 1Pb 03/01/01

These would be paired events even thought the letter"a" and "b" are
different. So basiically, it would be everything that was "Detroit" and "1P"
that I would want to apply the calculation to. Possible? Thanks.

 
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
Line chart or scatter chart?? rmellison Charts and Charting in Excel 17 February 10th 10 11:03 AM
Ideas for simplifying cell formulas Takeadoe Excel Discussion (Misc queries) 4 May 12th 06 02:16 AM
VLOOKUP calendar dates Stanley Excel Discussion (Misc queries) 5 January 19th 06 05:00 PM
Help with data not getting plotted Scott Ehrlich Excel Discussion (Misc queries) 2 January 25th 05 05:17 AM
Help with data not getting plotted Scott Ehrlich Charts and Charting in Excel 1 January 23rd 05 05:15 PM


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