Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 129
Default Help with Array Formula

Here again,

I had a formula which looked up the qty of items a customer has ordered for
delivery within a month ie Jan, Feb etc

The formula was

=SUM((openorders!$V$2:$V$114=$C$3)*(openorders!$AD $2:$AD$114="Dec
08")*(openorders!$X$2:$X$114))

it looks at the part number on my summary sheet $C$3 against the part number
in col V in the open orders sheet. Then it looks at all the orders due out in
Dec and sums the total qty.

When the range goes larger than 114 rows, it will mean me having to
maintain all the formula's to extend the range, so I thought I could change
it to read the Last Row for each of the columns V, AD and X , so my formula
now looks like this

=SUM((openorders!$V$2&"_"&Row=$C$3)*(openorders!$A D$2&"_"&Row="Dec
08")*(openorders!$X$2&"_"&Row))

Unfortunately this gives me a #NAME error.

What have I done wrong.
Thanks
Winnie



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 99
Default Help with Array Formula

Hi,

You can't use Row in a formula that way.
Try looking up the help for SUMPRODUCT, or try using a dynamic range.

Dave

"winnie123" wrote:

Here again,

I had a formula which looked up the qty of items a customer has ordered for
delivery within a month ie Jan, Feb etc

The formula was

=SUM((openorders!$V$2:$V$114=$C$3)*(openorders!$AD $2:$AD$114="Dec
08")*(openorders!$X$2:$X$114))

it looks at the part number on my summary sheet $C$3 against the part number
in col V in the open orders sheet. Then it looks at all the orders due out in
Dec and sums the total qty.

When the range goes larger than 114 rows, it will mean me having to
maintain all the formula's to extend the range, so I thought I could change
it to read the Last Row for each of the columns V, AD and X , so my formula
now looks like this

=SUM((openorders!$V$2&"_"&Row=$C$3)*(openorders!$A D$2&"_"&Row="Dec
08")*(openorders!$X$2&"_"&Row))

Unfortunately this gives me a #NAME error.

What have I done wrong.
Thanks
Winnie



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Help with Array Formula

Hi Winnie

Create some Dynamic named ranges
InsertNameDefine
Name lr
Refers to =COUNTA($V:$V)
Name Customer
Refers to =$V$2:INDEX($V:$V,lr)
Name Month
Refers to =$AD$2:INDEX($AD:$AD,lr)
Name Quantity
Refers to =$X$2:INDEX($X:$X,lr)

Then use
{=SUM((Customer=$C$3)*(Date="Dec 08")*Quantity)}

or the non-array entered

=SUMPRODUCT((Customer=$C$3)*(Date="Dec 08")*Quantity)



--
Regards
Roger Govier

"winnie123" wrote in message
...
Here again,

I had a formula which looked up the qty of items a customer has ordered
for
delivery within a month ie Jan, Feb etc

The formula was

=SUM((openorders!$V$2:$V$114=$C$3)*(openorders!$AD $2:$AD$114="Dec
08")*(openorders!$X$2:$X$114))

it looks at the part number on my summary sheet $C$3 against the part
number
in col V in the open orders sheet. Then it looks at all the orders due out
in
Dec and sums the total qty.

When the range goes larger than 114 rows, it will mean me having to
maintain all the formula's to extend the range, so I thought I could
change
it to read the Last Row for each of the columns V, AD and X , so my
formula
now looks like this

=SUM((openorders!$V$2&"_"&Row=$C$3)*(openorders!$A D$2&"_"&Row="Dec
08")*(openorders!$X$2&"_"&Row))

Unfortunately this gives me a #NAME error.

What have I done wrong.
Thanks
Winnie



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 129
Default Help with Array Formula

Thank you Roger, Dave

I changed some of the names and had to add an extra ( before qty and it
works great.

{=SUM((Part=$C$3)*(Month="Dec 08")*(Qty))}

Thanks ever so much
Winnie


"Roger Govier" wrote:

Hi Winnie

Create some Dynamic named ranges
InsertNameDefine
Name lr
Refers to =COUNTA($V:$V)
Name Customer
Refers to =$V$2:INDEX($V:$V,lr)
Name Month
Refers to =$AD$2:INDEX($AD:$AD,lr)
Name Quantity
Refers to =$X$2:INDEX($X:$X,lr)

Then use
{=SUM((Customer=$C$3)*(Date="Dec 08")*Quantity)}

or the non-array entered

=SUMPRODUCT((Customer=$C$3)*(Date="Dec 08")*Quantity)



--
Regards
Roger Govier

"winnie123" wrote in message
...
Here again,

I had a formula which looked up the qty of items a customer has ordered
for
delivery within a month ie Jan, Feb etc

The formula was

=SUM((openorders!$V$2:$V$114=$C$3)*(openorders!$AD $2:$AD$114="Dec
08")*(openorders!$X$2:$X$114))

it looks at the part number on my summary sheet $C$3 against the part
number
in col V in the open orders sheet. Then it looks at all the orders due out
in
Dec and sums the total qty.

When the range goes larger than 114 rows, it will mean me having to
maintain all the formula's to extend the range, so I thought I could
change
it to read the Last Row for each of the columns V, AD and X , so my
formula
now looks like this

=SUM((openorders!$V$2&"_"&Row=$C$3)*(openorders!$A D$2&"_"&Row="Dec
08")*(openorders!$X$2&"_"&Row))

Unfortunately this gives me a #NAME error.

What have I done wrong.
Thanks
Winnie



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Help with Array Formula

Hi,

To make a range *auto expanding*, you may convert it from a range to a List
(Ctrl+L). Once you do this, the range in the formula will automatically
keep expanding for data appended beyond row 114.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"winnie123" wrote in message
...
Here again,

I had a formula which looked up the qty of items a customer has ordered
for
delivery within a month ie Jan, Feb etc

The formula was

=SUM((openorders!$V$2:$V$114=$C$3)*(openorders!$AD $2:$AD$114="Dec
08")*(openorders!$X$2:$X$114))

it looks at the part number on my summary sheet $C$3 against the part
number
in col V in the open orders sheet. Then it looks at all the orders due out
in
Dec and sums the total qty.

When the range goes larger than 114 rows, it will mean me having to
maintain all the formula's to extend the range, so I thought I could
change
it to read the Last Row for each of the columns V, AD and X , so my
formula
now looks like this

=SUM((openorders!$V$2&"_"&Row=$C$3)*(openorders!$A D$2&"_"&Row="Dec
08")*(openorders!$X$2&"_"&Row))

Unfortunately this gives me a #NAME error.

What have I done wrong.
Thanks
Winnie





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Help with Array Formula

Please note that this will work for versions beyond Excel 2003.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"winnie123" wrote in message
...
Here again,

I had a formula which looked up the qty of items a customer has ordered
for
delivery within a month ie Jan, Feb etc

The formula was

=SUM((openorders!$V$2:$V$114=$C$3)*(openorders!$AD $2:$AD$114="Dec
08")*(openorders!$X$2:$X$114))

it looks at the part number on my summary sheet $C$3 against the part
number
in col V in the open orders sheet. Then it looks at all the orders due out
in
Dec and sums the total qty.

When the range goes larger than 114 rows, it will mean me having to
maintain all the formula's to extend the range, so I thought I could
change
it to read the Last Row for each of the columns V, AD and X , so my
formula
now looks like this

=SUM((openorders!$V$2&"_"&Row=$C$3)*(openorders!$A D$2&"_"&Row="Dec
08")*(openorders!$X$2&"_"&Row))

Unfortunately this gives me a #NAME error.

What have I done wrong.
Thanks
Winnie



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 specific value in array of array formula DzednConfsd Excel Worksheet Functions 2 January 13th 09 06:19 AM
This is probably an Array Formula? Dan the Man[_2_] Excel Worksheet Functions 4 July 20th 07 08:26 PM
meaning of : IF(Switch; Average(array A, array B); array A) DXAT Excel Worksheet Functions 1 October 24th 06 06:11 PM
Need Help With Array Formula rmeister Excel Discussion (Misc queries) 4 January 6th 06 03:06 PM
Array Formula - using LEFT("text",4) in formula Andrew L via OfficeKB.com Excel Worksheet Functions 2 August 1st 05 02:36 PM


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