Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Calculating date and placing the value in the right date range col

I want to calculate a date and then place the date value in the correct
column. Columns will be date ranges.
For example, I calculate a date to be 7/15/09. I have columns with 2 week
ranges such as:
Column A B
C
6/29/09 - 7/12/09 7/13/09 - 7/26/09 7/27/09 -
8/9/09

I want the 7/15/09 date value placed under the B column at the current row
position.
Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Calculating date and placing the value in the right date range col

I think you need a macro. don't know how you are caculating the date.
worksheets like this usually put the start date in row 1 and end date in row
2 to make the calculation a little simplier

Column A B
C
6/29/09 7/13/09
7/27/09
7/12/09 7/26/09
8/9/09



"GeorgeL" wrote:

I want to calculate a date and then place the date value in the correct
column. Columns will be date ranges.
For example, I calculate a date to be 7/15/09. I have columns with 2 week
ranges such as:
Column A B
C
6/29/09 - 7/12/09 7/13/09 - 7/26/09 7/27/09 -
8/9/09

I want the 7/15/09 date value placed under the B column at the current row
position.
Any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Calculating date and placing the value in the right date range col

It is not helpful having the top row with text such as 6/29/09 - 7/12/09
I just used the start dates in A1:D1
29-Jun-09 13-Jul-09 27-Jul-09 10-Aug-09
15-Jul-09My 'calculated date' of 15/July/2009 is in G1
In A2 I have the formula =IF(AND($G$1=A1,$G$1<B1),$G$1,"")
This is copied across to D2
I had to format row 2 as dates otherwise I got a value of 40009 in B2


If you want both start and end dates then place them in two rows

29-Jun-09 13-Jul-09 27-Jul-09 10-Aug-09
12-Jul-09 26-Jul-09 9-Aug-09 23-Aug-09
15-Jul-09Now
my formula in A3 is =IF(AND($G$1=A1,$G$1<=A2),$G$1,"")

best wishes
--
Bernard Liengme
MVP Excel
http://people.stfx.ca/bliengme

"GeorgeL" wrote in message
...
I want to calculate a date and then place the date value in the correct
column. Columns will be date ranges.
For example, I calculate a date to be 7/15/09. I have columns with 2 week
ranges such as:
Column A B
C
6/29/09 - 7/12/09 7/13/09 - 7/26/09
7/27/09 -
8/9/09

I want the 7/15/09 date value placed under the B column at the current row
position.
Any ideas?


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 Please calculating date range - Other posts didn't help Iona Excel Worksheet Functions 6 September 12th 08 10:59 PM
Calculating Salary based on Date Range beachrog Excel Worksheet Functions 2 October 25th 07 04:58 PM
Calculating data within a date range KeK23 Excel Worksheet Functions 4 September 26th 07 01:30 PM
Calculating for a specific date range Christy P Excel Worksheet Functions 3 April 20th 07 05:55 PM
Calculating days between current date and a date in future NETWORKDAYS() function Faheem Khan Excel Worksheet Functions 2 February 10th 05 07:18 PM


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