#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Row function

Hi All!
I am using the following formula to add totals on a sheet named Apps. & Invs.

=SUMPRODUCT(SUBTOTAL(9;OFFSET('Apps. & Invs.'!I$1;ROW('Apps. &
Invs.'!I$2:OFFSET('Apps. & Invs.'!I54;;))-1;))*('Apps. &
Invs.'!H$2:OFFSET('Apps. & Invs.'!H54;;)="ord."))

I entered the I54 and H54 references myself but in fact I would like these
to be the last cell on each column. Can someone help me correct this!
Also I've read the Row() explanations on excel help but cannot understand
what it equates to in this example...any explanations are very welcome!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Row function

Hello again!
Sorry I have read over my question and it is kind of difficult to interpret...
Basically i have found a formula (on the forum) to subtotal only filtered
items.
The formula is in a cell on a separate sheet to the filtered data.... which
means 2 things:
1) the formula looks a bit messy and is a bit hard to follow (this is a
simplified version)
=SUMPRODUCT(SUBTOTAL(9;OFFSET($A$1;ROW(A$2:$A54)-1;))*($B$2:$B54="ord."))

2) the formula needs to reference a dynamic range so Row(A$2:$A54) obviously
is not valid once data goes beyond A54.

Hope this has made the matter more simple to understand.
Any help very much appreciated.

"goodfish" wrote:

Hi All!
I am using the following formula to add totals on a sheet named Apps. & Invs.

=SUMPRODUCT(SUBTOTAL(9;OFFSET('Apps. & Invs.'!I$1;ROW('Apps. &
Invs.'!I$2:OFFSET('Apps. & Invs.'!I54;;))-1;))*('Apps. &
Invs.'!H$2:OFFSET('Apps. & Invs.'!H54;;)="ord."))

I entered the I54 and H54 references myself but in fact I would like these
to be the last cell on each column. Can someone help me correct this!
Also I've read the Row() explanations on excel help but cannot understand
what it equates to in this example...any explanations are very welcome!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Row function

=SUMPRODUCT(SUBTOTAL(9;OFFSET($A$1;ROW(A$2:$A54)-1;))*($B$2:$B54="ord."))
2) the formula needs to reference a
dynamic range so Row(A$2:$A54)
obviously is not valid once data goes beyond A54.


OK, so replace ROW(A$2:$A54) with the dynamic range, or, is that the part
you need help with? You'll also have to replace $B$2:$B54 with the dynamic
range.

Are there any empty/blank cells within A$2:$A54?

Basically, what your formula is doing is a SUMIF(B2:B54,"ord",A2:A54) on a
filtered range.

--
Biff
Microsoft Excel MVP


"goodfish" wrote in message
...
Hello again!
Sorry I have read over my question and it is kind of difficult to
interpret...
Basically i have found a formula (on the forum) to subtotal only filtered
items.
The formula is in a cell on a separate sheet to the filtered data....
which
means 2 things:
1) the formula looks a bit messy and is a bit hard to follow (this is a
simplified version)
=SUMPRODUCT(SUBTOTAL(9;OFFSET($A$1;ROW(A$2:$A54)-1;))*($B$2:$B54="ord."))

2) the formula needs to reference a dynamic range so Row(A$2:$A54)
obviously
is not valid once data goes beyond A54.

Hope this has made the matter more simple to understand.
Any help very much appreciated.

"goodfish" wrote:

Hi All!
I am using the following formula to add totals on a sheet named Apps. &
Invs.

=SUMPRODUCT(SUBTOTAL(9;OFFSET('Apps. & Invs.'!I$1;ROW('Apps. &
Invs.'!I$2:OFFSET('Apps. & Invs.'!I54;;))-1;))*('Apps. &
Invs.'!H$2:OFFSET('Apps. & Invs.'!H54;;)="ord."))

I entered the I54 and H54 references myself but in fact I would like
these
to be the last cell on each column. Can someone help me correct this!
Also I've read the Row() explanations on excel help but cannot understand
what it equates to in this example...any explanations are very welcome!



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
Excel Data Validation/Lookup function does function correcty Kirkey Excel Worksheet Functions 2 May 25th 09 09:22 PM
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM


All times are GMT +1. The time now is 10:02 AM.

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"