Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Index or Match?

I have the following formula:

=SUMPRODUCT((SummaryAll!$I$5:$I$5000=B5)*(SummaryA ll!
$J$5:$J$5000=C5)*(SummaryAll!$K$5:$K$5000=D5)*(Sum maryAll!
$G$5:$G$5000=$H$7)*(SummaryAll!$L$5:$L$5000))

This formula calculates an amount based on all the
criteria in the sumproduct statements. In order not to
recalculate values that will not change, I need to amend
the cells reference in $I$5,$J$5,$K$5 etc to be greater or
equal to a given date ($H$7).

In other words, how can I change "$I$5" to, let's
say, "$I$234" which is today's first row that is equal to
today's date and so on.....

The column to scan will be (SummaryAll!$I$5:$I$5000) and i
need to find the first row where the date is equal or
greater that today.

Thanks in advance for any hint.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Index or Match?

You would have to build all your ranges dynamically using indirect. You can
find where the row starts using Match.

Indirect("SummaryAll!I" & match(H7,$G$5:$G$5000,0)+4 & ":I5000")

--
Regards,
Tom Ogilvy


"Albert" wrote in message
...
I have the following formula:

=SUMPRODUCT((SummaryAll!$I$5:$I$5000=B5)*(SummaryA ll!
$J$5:$J$5000=C5)*(SummaryAll!$K$5:$K$5000=D5)*(Sum maryAll!
$G$5:$G$5000=$H$7)*(SummaryAll!$L$5:$L$5000))

This formula calculates an amount based on all the
criteria in the sumproduct statements. In order not to
recalculate values that will not change, I need to amend
the cells reference in $I$5,$J$5,$K$5 etc to be greater or
equal to a given date ($H$7).

In other words, how can I change "$I$5" to, let's
say, "$I$234" which is today's first row that is equal to
today's date and so on.....

The column to scan will be (SummaryAll!$I$5:$I$5000) and i
need to find the first row where the date is equal or
greater that today.

Thanks in advance for any hint.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Index or Match?

Tht one looks good I'll try it and keep you posted.
Thanks
-----Original Message-----
You would have to build all your ranges dynamically using

indirect. You can
find where the row starts using Match.

Indirect("SummaryAll!I" & match(H7,$G$5:$G$5000,0)+4

& ":I5000")

--
Regards,
Tom Ogilvy


"Albert" wrote in

message
...
I have the following formula:

=SUMPRODUCT((SummaryAll!$I$5:$I$5000=B5)*(SummaryA ll!
$J$5:$J$5000=C5)*(SummaryAll!$K$5:$K$5000=D5)*

(SummaryAll!
$G$5:$G$5000=$H$7)*(SummaryAll!$L$5:$L$5000))

This formula calculates an amount based on all the
criteria in the sumproduct statements. In order not to
recalculate values that will not change, I need to amend
the cells reference in $I$5,$J$5,$K$5 etc to be greater

or
equal to a given date ($H$7).

In other words, how can I change "$I$5" to, let's
say, "$I$234" which is today's first row that is equal

to
today's date and so on.....

The column to scan will be (SummaryAll!$I$5:$I$5000)

and i
need to find the first row where the date is equal or
greater that today.

Thanks in advance for any hint.



.

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
Find Exact Match using INDEX, MATCH DoubleUU Excel Worksheet Functions 3 August 15th 08 02:42 PM
index(match) Wind Uplift Calculations (match four conditions) JMeier Excel Worksheet Functions 8 August 1st 08 01:45 AM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
How do I display more than one match in a Index/Match formula? Trish Excel Worksheet Functions 0 September 26th 05 10:21 PM
index,match,match on un-sorted data Brisbane Rob Excel Worksheet Functions 3 September 24th 05 10:04 PM


All times are GMT +1. The time now is 05:54 PM.

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"