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

I am using Excel 2007 and am trying to reference defined name ranges in a
sumproduct formula. When I use the names the formula returns #N/A but when I
replace the names with their ranges, the formula works fine. The formula
that works is:

=SUMPRODUCT(('Billing'!C2:C1000=C2)*('Billing'!B2: B1000=C1)*'Billing'!AK2:AK1000)

The range 'Billing'!AK2:AK1000 is defined as SF_Rev. When I substitue
'Billing'!AK2:AK1269 with SF_Rev the formula fails. That formula is:

=SUMPRODUCT(('Billing'!C2:C1000=C2)*('Billing'!B2: B1000=C1)*(SF_Rev))

Any thought would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 968
Default Defined Range Names in formulas

Check that SF_Rev is defined as ='Billing'!$AK$2:$AK$1000 (absolute) rather
than ='Billing'!AK2:AK1000 (relative).

Charles
___________________________________
The Excel Calculation Site
http://www.decisionmodels.com

"Darby" wrote in message
...
I am using Excel 2007 and am trying to reference defined name ranges in a
sumproduct formula. When I use the names the formula returns #N/A but
when I
replace the names with their ranges, the formula works fine. The formula
that works is:

=SUMPRODUCT(('Billing'!C2:C1000=C2)*('Billing'!B2: B1000=C1)*'Billing'!AK2:AK1000)

The range 'Billing'!AK2:AK1000 is defined as SF_Rev. When I substitue
'Billing'!AK2:AK1269 with SF_Rev the formula fails. That formula is:

=SUMPRODUCT(('Billing'!C2:C1000=C2)*('Billing'!B2: B1000=C1)*(SF_Rev))

Any thought would be appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Defined Range Names in formulas

Is SF_Rev defined as:
'Billing'!AK2:AK1000
or
'Billing'!$AK$2:$AK$1000

If the former, the placement of the formula itself would change what area
the name actually refers to, leading to problems.

the other thing to check would be that all the cells in AK2:Ak1000 actually
contain values, and not errors.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Darby" wrote:

I am using Excel 2007 and am trying to reference defined name ranges in a
sumproduct formula. When I use the names the formula returns #N/A but when I
replace the names with their ranges, the formula works fine. The formula
that works is:

=SUMPRODUCT(('Billing'!C2:C1000=C2)*('Billing'!B2: B1000=C1)*'Billing'!AK2:AK1000)

The range 'Billing'!AK2:AK1000 is defined as SF_Rev. When I substitue
'Billing'!AK2:AK1269 with SF_Rev the formula fails. That formula is:

=SUMPRODUCT(('Billing'!C2:C1000=C2)*('Billing'!B2: B1000=C1)*(SF_Rev))

Any thought would be appreciated.

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
updating formulas with range names Brad Excel Discussion (Misc queries) 2 January 13th 09 04:57 PM
Input formulas in a defined data range and convert results as valu Tan New Users to Excel 0 April 18th 07 12:54 AM
Restoring formulas after deleting range names KDJ Excel Worksheet Functions 3 January 2nd 07 06:24 PM
How do you set up range names, name formulas DonF Excel Worksheet Functions 0 October 4th 06 05:11 PM
Sumif referring to range names formulas not updating Excel_Still_Stumps_ME Excel Worksheet Functions 1 September 19th 06 08:14 PM


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