PC Review


Reply
Thread Tools Rate Thread

Break up a date range automatic

 
 
Cory
Guest
Posts: n/a
 
      29th Jun 2008
I want to be able to put a range of dates inot one cell (ie. 6/1-6/7) and I
want to able to have the individual days put into 7 differenent cells, 6/1
into b2. 6/2 into c2 ect
 
Reply With Quote
 
 
 
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      29th Jun 2008
Put this in B2...

=--LEFT(A2,FIND("-",A2&"-")-1)

Then put this in C2 and copy across to H2.

Note that this is keyed off of the first date only and will work correctly
even if only a single date (as opposed to your specified range) is placed in
A2.

Rick


"Cory" <(E-Mail Removed)> wrote in message
news:8A75904D-20E6-491D-8209-(E-Mail Removed)...
>I want to be able to put a range of dates inot one cell (ie. 6/1-6/7) and I
> want to able to have the individual days put into 7 differenent cells, 6/1
> into b2. 6/2 into c2 ect


 
Reply With Quote
 
Me
Guest
Posts: n/a
 
      29th Jun 2008
Put the date range in A2:
6/1/2008-6/7/2008




Put this formula in B2 and copy to each cell to H2:
=MID($A2,1,SEARCH("-",$A2)-1)+COLUMN()-2



Since you said "7" cells I assume this will alway be a 7 day week. You
actually only need the first date, which this formula extracts from the text
6/01/2008-6/7/2008.

Don

"Cory" <(E-Mail Removed)> wrote in message
news:8A75904D-20E6-491D-8209-(E-Mail Removed)...
>I want to be able to put a range of dates inot one cell (ie. 6/1-6/7) and I
> want to able to have the individual days put into 7 differenent cells, 6/1
> into b2. 6/2 into c2 ect



 
Reply With Quote
 
Cory
Guest
Posts: n/a
 
      29th Jun 2008
Thanks for the info but it gives me every other day not everyday in the string

"Me" wrote:

> Put the date range in A2:
> 6/1/2008-6/7/2008
>
>
>
>
> Put this formula in B2 and copy to each cell to H2:
> =MID($A2,1,SEARCH("-",$A2)-1)+COLUMN()-2
>
>
>
> Since you said "7" cells I assume this will alway be a 7 day week. You
> actually only need the first date, which this formula extracts from the text
> 6/01/2008-6/7/2008.
>
> Don
>
> "Cory" <(E-Mail Removed)> wrote in message
> news:8A75904D-20E6-491D-8209-(E-Mail Removed)...
> >I want to be able to put a range of dates inot one cell (ie. 6/1-6/7) and I
> > want to able to have the individual days put into 7 differenent cells, 6/1
> > into b2. 6/2 into c2 ect

>
>
>

 
Reply With Quote
 
Fred Smith
Guest
Posts: n/a
 
      30th Jun 2008
It works for me. Are you sure you copied it correctly?

Regards,
Fred.

"Cory" <(E-Mail Removed)> wrote in message
news:75777EB4-1270-492F-A716-(E-Mail Removed)...
> Thanks for the info but it gives me every other day not everyday in the
> string
>
> "Me" wrote:
>
>> Put the date range in A2:
>> 6/1/2008-6/7/2008
>>
>>
>>
>>
>> Put this formula in B2 and copy to each cell to H2:
>> =MID($A2,1,SEARCH("-",$A2)-1)+COLUMN()-2
>>
>>
>>
>> Since you said "7" cells I assume this will alway be a 7 day week. You
>> actually only need the first date, which this formula extracts from the
>> text
>> 6/01/2008-6/7/2008.
>>
>> Don
>>
>> "Cory" <(E-Mail Removed)> wrote in message
>> news:8A75904D-20E6-491D-8209-(E-Mail Removed)...
>> >I want to be able to put a range of dates inot one cell (ie. 6/1-6/7)
>> >and I
>> > want to able to have the individual days put into 7 differenent cells,
>> > 6/1
>> > into b2. 6/2 into c2 ect

>>
>>
>>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic filling of cells within a certain date range Elor Microsoft Excel Worksheet Functions 1 8th Feb 2010 02:44 PM
Automatic Data Update by Date Range Pinkney.Chandra@gmail.com Microsoft Excel Worksheet Functions 1 1st Oct 2008 07:30 PM
Access Reports / Charts / Automatic Date Range Singinbeauty Microsoft Access 3 14th Feb 2008 02:27 PM
How do I break a date range by month? =?Utf-8?B?SGVhdGhlckRhd24=?= Microsoft Excel Misc 2 1st Sep 2005 07:31 PM
Query Date Range Criteria Doesn't Include Last Date in Range Karl Burrows Microsoft Access Queries 6 10th Jun 2005 07:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:08 PM.