Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 247
Default SUMPRODUCT Adaptation

Hi All,

I have a dynamic named range "Data" that spans 8 columns and many rows.
"Data" holds numeric values. "Data" starts at row 18, column "K". The oldest
data is at the top / start of the dynamic range and the most recent is at the
bottom / end.

At the moment the SUMPRODUCT formula below looks at all the rows in my range
"Data", can it be adapted using an input cell to look at only the LAST (most
recent) "x" number of rows ( "x" will vary) within my dynamic range "Data".
For the adaptation "x" will equal the LAST 70 rows.

=SUMPRODUCT(--(INDEX(OFFSET(Data,0,COLUMN(A:A)-1),0,1)=K$15),--(INDEX(OFFSET
(Data,1,COLUMN(A:A)-1),0,1)=K$16)*(INDEX(OFFSET(Data,1,COLUMN(A:A)-1),0,1)
<""))

The formula looks for 2 specific numeric values to be in the same column but
appearing one after the other.

Thanks
Sam

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200804/1

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default SUMPRODUCT Adaptation

=SUMPRODUCT(
--(INDEX(OFFSET(Data,ROWS(Data)-$K$17-1,COLUMN(A:A)-1,$K$17),0,1)=K$15),
--(INDEX(OFFSET(Data,ROWS(Data)-$K$17,COLUMN(A:A)-1,$K$17),0,1)=K$16),
--(INDEX(OFFSET(Data,ROWS(Data)-$K$17,COLUMN(A:A)-1,$K$17),0,1)<""))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Sam via OfficeKB.com" <u4102@uwe wrote in message
news:820946d18255e@uwe...
Hi All,

I have a dynamic named range "Data" that spans 8 columns and many rows.
"Data" holds numeric values. "Data" starts at row 18, column "K". The
oldest
data is at the top / start of the dynamic range and the most recent is at
the
bottom / end.

At the moment the SUMPRODUCT formula below looks at all the rows in my
range
"Data", can it be adapted using an input cell to look at only the LAST
(most
recent) "x" number of rows ( "x" will vary) within my dynamic range
"Data".
For the adaptation "x" will equal the LAST 70 rows.

=SUMPRODUCT(--(INDEX(OFFSET(Data,0,COLUMN(A:A)-1),0,1)=K$15),--(INDEX(OFFSET
(Data,1,COLUMN(A:A)-1),0,1)=K$16)*(INDEX(OFFSET(Data,1,COLUMN(A:A)-1),0,1)
<""))

The formula looks for 2 specific numeric values to be in the same column
but
appearing one after the other.

Thanks
Sam

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200804/1



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default SUMPRODUCT Adaptation

Maybe the construct:

OFFSET(Data,ROWS(Data)-70,COLUMN(A:A)-1,70,)

=SUMPRODUCT(--(INDEX(OFFSET(Data,ROWS(Data)-70,COLUMN(A:A)-1,70,),
0,1)=K$15),--(INDEX(OFFSET(Data,ROWS(Data)-69,COLUMN(A:A)-1,70,),0,1)=K
$16)*(INDEX(OFFSET(Data,ROWS(Data)-70,COLUMN(A:A)-1,70,),0,1)<""))

Does this work for you?
Kostis Vezerides

On Apr 1, 8:02 pm, "Sam via OfficeKB.com" <u4102@uwe wrote:
Hi All,

I have a dynamic named range "Data" that spans 8 columns and many rows.
"Data" holds numeric values. "Data" starts at row 18, column "K". The oldest
data is at the top / start of the dynamic range and the most recent is at the
bottom / end.

At the moment the SUMPRODUCT formula below looks at all the rows in my range
"Data", can it be adapted using an input cell to look at only the LAST (most
recent) "x" number of rows ( "x" will vary) within my dynamic range "Data".
For the adaptation "x" will equal the LAST 70 rows.

=SUMPRODUCT(--(INDEX(OFFSET(Data,0,COLUMN(A:A)-1),0,1)=K$15),--(INDEX(OFFSET
(Data,1,COLUMN(A:A)-1),0,1)=K$16)*(INDEX(OFFSET(Data,1,COLUMN(A:A)-1),0,1)
<""))

The formula looks for 2 specific numeric values to be in the same column but
appearing one after the other.

Thanks
Sam

--
Message posted via OfficeKB.comhttp://www.officekb.com/Uwe/Forums.aspx/excel-functions/200804/1


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 247
Default SUMPRODUCT Adaptation

Hi Bob,

Thank you ever so much for your time and assistance. Your formula is doing
the job Brilliantly!

Cheers,
Sam

Bob Phillips wrote:
=SUMPRODUCT(
--(INDEX(OFFSET(Data,ROWS(Data)-$K$17-1,COLUMN(A:A)-1,$K$17),0,1)=K$15),
--(INDEX(OFFSET(Data,ROWS(Data)-$K$17,COLUMN(A:A)-1,$K$17),0,1)=K$16),
--(INDEX(OFFSET(Data,ROWS(Data)-$K$17,COLUMN(A:A)-1,$K$17),0,1)<""))


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200804/1

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 247
Default SUMPRODUCT Adaptation

Hi Kostis,

Thank you very much for reply and assistance. Unfortunately, your formula did
not provide the expected results. It gave the correct count in some places
but not all.

Bob's formula does provide the expected results.

Cheers,
Sam

vezerid wrote:
Maybe the construct:


OFFSET(Data,ROWS(Data)-70,COLUMN(A:A)-1,70,)


=SUMPRODUCT(--(INDEX(OFFSET(Data,ROWS(Data)-70,COLUMN(A:A)-1,70,),
0,1)=K$15),--(INDEX(OFFSET(Data,ROWS(Data)-69,COLUMN(A:A)-1,70,),0,1)=K
$16)*(INDEX(OFFSET(Data,ROWS(Data)-70,COLUMN(A:A)-1,70,),0,1)<""))


Does this work for you?
Kostis Vezerides


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200804/1

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
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
{=SUM()} vs =SUMPRODUCT() MDW Excel Worksheet Functions 8 November 14th 06 11:16 PM
sumproduct? MIchel Khennafi Excel Worksheet Functions 3 November 13th 06 11:37 PM
Adaptation Of A Formula Big Rick Excel Discussion (Misc queries) 6 September 30th 05 05:13 PM
Formula array adaptation Ellie Excel Worksheet Functions 4 September 19th 05 04:10 PM


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