LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
gg gg is offline
external usenet poster
 
Posts: 1
Default Date subtraction

I’m trying to create an equation that finds the difference between two dates. There are four columns: date, name, text1, text2; they are filtered by date, oldest to newest. I need to find out if name equals text2, then what is the date; then I need to search for the next time that name appears in the column and equals text1, and tell me that date. Then I want to know the difference in those two dates.

Here’s an example:
10/12/2011 Bill C PC
10/20/2011 Jane C NA
12/22/2011 Jane A NA
02/10/2012 Bill A NA

So, if row 1 contains Bill’s name in column 2 and PC in column 4, what is the date in column one? Then find the next row that contains Bill’s name and the letter A in column 3, find the date in that row, and give the difference between the two. Ideally it would return the difference as the number of days, so this would return 121.
 
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
Getting rid of +/- in date subtraction.. Mark Excel Worksheet Functions 4 February 4th 09 01:21 PM
Date Subtraction Newbie Excel Worksheet Functions 3 January 17th 09 06:16 PM
date subtraction [email protected] Excel Worksheet Functions 6 December 9th 08 02:13 PM
Date subtraction -How to not show negative when 2nd date not entered Edward[_2_] New Users to Excel 2 September 27th 07 03:03 PM
date subtraction kckar Excel Programming 0 July 18th 05 07:00 PM


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