Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Using Defined Names in a Formula

Hi Guys,

I'm trying to use a named Range in a Sumproduct Formula however what i want
to do is return the total of all the cells which contain values not in the
range.

So similiar to this Formula :

=SUMPRODUCT(--(FEB!$H$2:$H$311<STDGL),--(FEB!$I$2:$I$311=STD),--(FEB!$F$2:$F$311))

But I need to alter it so it only sums the cells F2:F311 that dont contain
the values in STDGL for cells H2:H311 or in STD for cells I2:I311

that make sense ?

Thanks Guys

Michael -
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Using Defined Names in a Formula


If you want to sum all the numbers in B1:B10 that are not present in a
range named TheName, use the following formula.

=SUMPRODUCT(--(ISERROR(MATCH(B1:B10,TheName,0))),--B1:B10)

The MATCH function looks up each value in B1:B10 in the range TheName.
If that value is not found in TheName, MATCH returns an error, so the
formula looks sums only those values that cause MATCH to return an
error, that is, those that are not in TheName.



Cordially,
Chip Pearson
Microsoft Most Valuable Professional,
Excel, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com




On Mon, 1 Mar 2010 01:22:01 -0800, Mike@Scott
wrote:

Hi Guys,

I'm trying to use a named Range in a Sumproduct Formula however what i want
to do is return the total of all the cells which contain values not in the
range.

So similiar to this Formula :

=SUMPRODUCT(--(FEB!$H$2:$H$311<STDGL),--(FEB!$I$2:$I$311=STD),--(FEB!$F$2:$F$311))

But I need to alter it so it only sums the cells F2:F311 that dont contain
the values in STDGL for cells H2:H311 or in STD for cells I2:I311

that make sense ?

Thanks Guys

Michael -

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
Help obtaining value of defined names when concatenating text with formula mbeauchamp Excel Worksheet Functions 3 June 8th 09 06:08 PM
defined names xcel user[_2_] Excel Worksheet Functions 1 December 14th 07 05:43 PM
Defined names lesley1000 via OfficeKB.com Excel Worksheet Functions 3 December 10th 07 02:50 PM
NAMES DEFINED F. Lawrence Kulchar Excel Discussion (Misc queries) 5 November 14th 06 07:54 AM
Defined names DREED Excel Discussion (Misc queries) 3 March 10th 06 02:55 PM


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