Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 54
Default SUMPRODUCT

Hi all
Please. Needing some assistance. Using excel 2007

This formula starting in the first row of my data ranks each share value for
the first day (entered in column 'K')
=SUMPRODUCT(($AS$6:$AS$13=AS6)*(C6$C$6:$C$13))+1
In column 'AS' is 3 different types of shares numbered as 1,2 or 3
In column 'C' is the value of those shares

I wish to expand the formula so that it also ranks each day seperatly.
In column 'T', I have the days numbered in order
The formula works only for rows 6:13 which is day 1. On day '2' I may have
10 rows of data
starting at 'C14' So at present I have to re-enter the formula as:
=SUM PRODUCT(($AS$14:$AS$23=AS14)*(C14$C$14:$C$23))+1

As this formula is initially entered via a part of a macro (below) and
filled down I have to adjust the formula each
time a date changes which is tedious. Each day also has a different amount
of entries

Range("K6").Select
ActiveCell.FormulaR1C1 = _
"=SUM PRODUCT((R6C45:R13C45=RC[34])*(RC[-8]R6C3:R13C3))+1"
Application.Goto Reference:="Sh__Rank" ' Named offset range
Selection.FillDown

I have googled and tried adding an additional array with no joy
Any help with a new formula would be greatly appreciated.

Skinman.




 
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
Sumproduct with Condition OR Sumproduct with ADDRESS function - HE gholly Excel Discussion (Misc queries) 2 September 28th 09 05:07 PM
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
SUMPRODUCT BillyHank Excel Worksheet Functions 5 November 2nd 06 03:22 PM
sumproduct help Jim Excel Worksheet Functions 2 January 20th 06 01:49 PM


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