Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Summation of last (DD) days

i am tring to create a simple Nasdaq Breadth rati
where the sum of the advancing volume for the past 8 days(including today
is divided by the declining volume for the past 8 days (includiny today
for anyone interested in the market i would buy when ADR=1.5 and sell when ADR=0.8
this would be updated daily from yahoo
DATE AV DATE D
20040331 674931876 20040331 111957091
20040401 1322679760 20040401 44943118

i have the formulae but need to transfer into excel languag
Data
AV = Nasdaq Advancing Volum
DV = Nasdaq Declining Volum
Formulae
SUM_AV = Summation of last (8) days (including current day) of A
SUM_DV = Summation of last (8) days (including current day) of D
ADR = SUM_UV / SUM_D

TIA, cirius3000
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Summation of last (DD) days

Hi
if your dates are stored as real dates (and not as text values) in
column a and C use the following formulas
=SUMIF(A1:A1000,"=" & TODAY()-7,B1:B1000)

and
=SUMIF(C1:C1000,"=" & TODAY()-7,D1:d1000)


--
Regards
Frank Kabel
Frankfurt, Germany


cirius3000 wrote:
i am tring to create a simple Nasdaq Breadth ratio
where the sum of the advancing volume for the past 8 days(including
today)
is divided by the declining volume for the past 8 days (includiny
today)
for anyone interested in the market i would buy when ADR=1.5 and sell
when ADR=0.8 this would be updated daily from yahoo
DATE AV DATE DV
20040331 674931876 20040331 1119570915
20040401 1322679760 20040401 449431185

i have the formulae but need to transfer into excel language
Data:
AV = Nasdaq Advancing Volume
DV = Nasdaq Declining Volume
Formulae:
SUM_AV = Summation of last (8) days (including current day) of AV
SUM_DV = Summation of last (8) days (including current day) of DV
ADR = SUM_UV / SUM_DV

TIA, cirius3000


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Summation of last (DD) days

A bit crude but fairly simple to implement:

Let's say your AV row ends at B19. In cell B20, place the following formula
for the total:

=SUM(OFFSET(B20,-1,0):OFFSET(B20,-8,0))

This will keep a running total of the last 8 rows. Every day, you can insert
a new row above the total and the formula will adjust itself accordingly.

You can do the same thing with the DV column and calculate the ratio.

--

Vasant



"cirius3000" wrote in message
...
i am tring to create a simple Nasdaq Breadth ratio
where the sum of the advancing volume for the past 8 days(including today)
is divided by the declining volume for the past 8 days (includiny today)
for anyone interested in the market i would buy when ADR=1.5 and sell when

ADR=0.8
this would be updated daily from yahoo
DATE AV DATE DV
20040331 674931876 20040331 1119570915
20040401 1322679760 20040401 449431185

i have the formulae but need to transfer into excel language
Data:
AV = Nasdaq Advancing Volume
DV = Nasdaq Declining Volume
Formulae:
SUM_AV = Summation of last (8) days (including current day) of AV
SUM_DV = Summation of last (8) days (including current day) of DV
ADR = SUM_UV / SUM_DV

TIA, cirius3000



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Summation of last (DD) days

Hi Frank:

This may not work if weekends and holidays are involved, which probably
would be the case with stock trading.

Regards,

Vasant.

"Frank Kabel" wrote in message
...
Hi
if your dates are stored as real dates (and not as text values) in
column a and C use the following formulas
=SUMIF(A1:A1000,"=" & TODAY()-7,B1:B1000)

and
=SUMIF(C1:C1000,"=" & TODAY()-7,D1:d1000)


--
Regards
Frank Kabel
Frankfurt, Germany


cirius3000 wrote:
i am tring to create a simple Nasdaq Breadth ratio
where the sum of the advancing volume for the past 8 days(including
today)
is divided by the declining volume for the past 8 days (includiny
today)
for anyone interested in the market i would buy when ADR=1.5 and sell
when ADR=0.8 this would be updated daily from yahoo
DATE AV DATE DV
20040331 674931876 20040331 1119570915
20040401 1322679760 20040401 449431185

i have the formulae but need to transfer into excel language
Data:
AV = Nasdaq Advancing Volume
DV = Nasdaq Declining Volume
Formulae:
SUM_AV = Summation of last (8) days (including current day) of AV
SUM_DV = Summation of last (8) days (including current day) of DV
ADR = SUM_UV / SUM_DV

TIA, cirius3000




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Summation of last (DD) days

Hi
good point. Another way would be to use the following function:
=SUMPRODUCT(--(A1:A1000=WORKDAY(TODAY(),-7,list_of_holidays)),B1:B1000
)

and
=SUMPRODUCT(--(C1:C1000=WORKDAY(TODAY(),-7,list_of_holidays)),D1:D1000
)


--
Regards
Frank Kabel
Frankfurt, Germany


Vasant Nanavati wrote:
Hi Frank:

This may not work if weekends and holidays are involved, which
probably would be the case with stock trading.

Regards,

Vasant.

"Frank Kabel" wrote in message
...
Hi
if your dates are stored as real dates (and not as text values) in
column a and C use the following formulas
=SUMIF(A1:A1000,"=" & TODAY()-7,B1:B1000)

and
=SUMIF(C1:C1000,"=" & TODAY()-7,D1:d1000)


--
Regards
Frank Kabel
Frankfurt, Germany


cirius3000 wrote:
i am tring to create a simple Nasdaq Breadth ratio
where the sum of the advancing volume for the past 8 days(including
today)
is divided by the declining volume for the past 8 days (includiny
today)
for anyone interested in the market i would buy when ADR=1.5 and
sell when ADR=0.8 this would be updated daily from yahoo
DATE AV DATE DV
20040331 674931876 20040331 1119570915
20040401 1322679760 20040401 449431185

i have the formulae but need to transfer into excel language
Data:
AV = Nasdaq Advancing Volume
DV = Nasdaq Declining Volume
Formulae:
SUM_AV = Summation of last (8) days (including current day) of AV
SUM_DV = Summation of last (8) days (including current day) of DV
ADR = SUM_UV / SUM_DV

TIA, cirius3000


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
Need to pull <=14 Days, <=30 Days, 30 Days from a date column Ken Excel Discussion (Misc queries) 3 October 23rd 09 12:53 AM
Summation [email protected] Excel Discussion (Misc queries) 2 November 28th 07 05:12 PM
summation ExcelQuestion Excel Worksheet Functions 11 June 27th 07 02:28 AM
Summation Operator LizM Excel Worksheet Functions 3 July 10th 06 06:37 PM
Summation from a to b jeblunk Excel Worksheet Functions 3 December 4th 05 02:14 PM


All times are GMT +1. The time now is 07:56 PM.

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"