Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default summary of values for a period of time

Hi,
is there some function or macro to do a summary of values, which were made
in a peoriod of dates? For example from this tab...

Value Date
5 1/1/2007
5 2/1/2007
5 3/1/2007
6 4/1/2007
6 5/1/2007
..
..
..
6 20/1/2007
9 21/1/2007
9 22/1/2007 etc...

this summary:

Value From TIll
5 1/1/2007 3/1/2007
6 4/1/2007 20/1/2007
9 21/1/2007 .....


Thanks a lot for advice

karmela
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,480
Default summary of values for a period of time

Hi

Try the following array entered formulae.
To enter or edit an Array formula, use Control+SHift+Enter (CSE) not just
Enter.
Do not type the curly braces { } yourself. When you use CSE, Excel will
enter them for you.

for the earliest date, use
{=MIN(IF(AND(A:A=A1,B:B<""),B:B,""))}
for the latest date use
{=MAX(IF(A:A=A1,B:B,""))}


--

Regards
Roger Govier

"karmela" wrote in message
...
Hi,
is there some function or macro to do a summary of values, which were made
in a peoriod of dates? For example from this tab...

Value Date
5 1/1/2007
5 2/1/2007
5 3/1/2007
6 4/1/2007
6 5/1/2007
.
.
.
6 20/1/2007
9 21/1/2007
9 22/1/2007 etc...

this summary:

Value From TIll
5 1/1/2007 3/1/2007
6 4/1/2007 20/1/2007
9 21/1/2007 .....


Thanks a lot for advice

karmela


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default summary of values for a period of time

Hi,
you can use a pivot table which would be usefull if your data table's size
changes and new Values gets added.
Pivot:
Use Value as a row field and use Date twice as a Data field. Select the
first Date data field, choose Field Setting and use the aggregate function
Min. Do the same thing for the second data field using the aggregate function
Max. Now, you just need to format these 2 fields as Date.
--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"karmela" wrote:

Hi,
is there some function or macro to do a summary of values, which were made
in a peoriod of dates? For example from this tab...

Value Date
5 1/1/2007
5 2/1/2007
5 3/1/2007
6 4/1/2007
6 5/1/2007
.
.
.
6 20/1/2007
9 21/1/2007
9 22/1/2007 etc...

this summary:

Value From TIll
5 1/1/2007 3/1/2007
6 4/1/2007 20/1/2007
9 21/1/2007 .....


Thanks a lot for advice

karmela

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default summary of values for a period of time

Hi,

thanks for advice, I used it as well but unfortunatelly doesn't solve
problem in the case, when the values are changing up and also down.
It means for
1.day 7
2.day 7
3.day 7
4.day 5
5.day 5
6.day 7
7.day 7, .....

In the pivot table I get
7 1. day - 7.day
5 4.day - 5.day

It seems, that the value was for all these 7days.
There should be
7 1.-3.day
5 4.-5.day
7 6.-7. day

Well, I'm going to think about a macro....


karmela
"sebastienm" wrote:

Hi,
you can use a pivot table which would be usefull if your data table's size
changes and new Values gets added.
Pivot:
Use Value as a row field and use Date twice as a Data field. Select the
first Date data field, choose Field Setting and use the aggregate function
Min. Do the same thing for the second data field using the aggregate function
Max. Now, you just need to format these 2 fields as Date.
--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"karmela" wrote:

Hi,
is there some function or macro to do a summary of values, which were made
in a peoriod of dates? For example from this tab...

Value Date
5 1/1/2007
5 2/1/2007
5 3/1/2007
6 4/1/2007
6 5/1/2007
.
.
.
6 20/1/2007
9 21/1/2007
9 22/1/2007 etc...

this summary:

Value From TIll
5 1/1/2007 3/1/2007
6 4/1/2007 20/1/2007
9 21/1/2007 .....


Thanks a lot for advice

karmela

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
How to average values based on time period Peters48 Excel Worksheet Functions 6 January 9th 10 06:36 PM
Saving a file with time and date at a set time period Mark Dullingham Excel Programming 10 March 3rd 07 12:10 PM
average rate of change per given time period between 2 moments in time of a value David Virgil Hobbs Excel Worksheet Functions 1 December 19th 06 07:24 AM
average rate of change per given time period between 2 moments in time of a value David Virgil Hobbs Excel Programming 1 December 19th 06 07:24 AM
Every time i put a number with period it becomes a date and time excelSOS Excel Discussion (Misc queries) 7 March 7th 06 12:20 AM


All times are GMT +1. The time now is 01:05 AM.

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"