#1   Report Post  
Posted to microsoft.public.excel.misc
Constance
 
Posts: n/a
Default Array formula

Yes, the words name, dept & earn_code are all named ranges. I tried your
example and I'm still getting the #NUM. What does the -- between the first
two paranthesis signify? Could my problem have anything to do with
formatting? Maybe there is a different way to go about getting a result?
Thanks much for your help.
--
Constance


"Ron Coderre" wrote:

Try this:
=SUMPRODUCT(--(name=a2)*(dept=b2)*(earn_code=c2)*hours)

Assuming the words name, dept, earn_code and hours refer to ranges, or named
ranges.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Constance" wrote:

I seem to be having a problem with an array formula. I have a spreadsheet
with names in one column, home department numbers in column B, earning codes
in column C, worked dept in column D and hours in column E. I'm trying to
sum only one type of earning code for each employee for the home dept so I'm
using this formula: {=sum((name=a2)*(dept=b2)*(earn_code=c2)*hours)} and all
I get is #NUM. I can't figure out what I am missing. Can anyone guide me?
Thanks.
--
Constance

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Array formula

The double-negative (--) is an Excel user convention that forces Excel to
convert a TRUE/FALSE value to +1 for TRUE, -1 for FALSE.

Regarding:
=SUMPRODUCT(--(name=a2)*(dept=b2)*(earn_code=c2)*hours)

I created those named ranges and entered values, but I can't get the formula
to return that error. Perhaps if you gave us a sample of the data that is in
those ranges we could figure out the issue.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Constance" wrote:

Yes, the words name, dept & earn_code are all named ranges. I tried your
example and I'm still getting the #NUM. What does the -- between the first
two paranthesis signify? Could my problem have anything to do with
formatting? Maybe there is a different way to go about getting a result?
Thanks much for your help.
--
Constance


"Ron Coderre" wrote:

Try this:
=SUMPRODUCT(--(name=a2)*(dept=b2)*(earn_code=c2)*hours)

Assuming the words name, dept, earn_code and hours refer to ranges, or named
ranges.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Constance" wrote:

I seem to be having a problem with an array formula. I have a spreadsheet
with names in one column, home department numbers in column B, earning codes
in column C, worked dept in column D and hours in column E. I'm trying to
sum only one type of earning code for each employee for the home dept so I'm
using this formula: {=sum((name=a2)*(dept=b2)*(earn_code=c2)*hours)} and all
I get is #NUM. I can't figure out what I am missing. Can anyone guide me?
Thanks.
--
Constance

  #3   Report Post  
Posted to microsoft.public.excel.misc
Constance
 
Posts: n/a
Default Array formula

I received another way of going about it that works but thanks again for your
assistance.
--
Constance


"Ron Coderre" wrote:

The double-negative (--) is an Excel user convention that forces Excel to
convert a TRUE/FALSE value to +1 for TRUE, -1 for FALSE.

Regarding:
=SUMPRODUCT(--(name=a2)*(dept=b2)*(earn_code=c2)*hours)

I created those named ranges and entered values, but I can't get the formula
to return that error. Perhaps if you gave us a sample of the data that is in
those ranges we could figure out the issue.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Constance" wrote:

Yes, the words name, dept & earn_code are all named ranges. I tried your
example and I'm still getting the #NUM. What does the -- between the first
two paranthesis signify? Could my problem have anything to do with
formatting? Maybe there is a different way to go about getting a result?
Thanks much for your help.
--
Constance


"Ron Coderre" wrote:

Try this:
=SUMPRODUCT(--(name=a2)*(dept=b2)*(earn_code=c2)*hours)

Assuming the words name, dept, earn_code and hours refer to ranges, or named
ranges.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Constance" wrote:

I seem to be having a problem with an array formula. I have a spreadsheet
with names in one column, home department numbers in column B, earning codes
in column C, worked dept in column D and hours in column E. I'm trying to
sum only one type of earning code for each employee for the home dept so I'm
using this formula: {=sum((name=a2)*(dept=b2)*(earn_code=c2)*hours)} and all
I get is #NUM. I can't figure out what I am missing. Can anyone guide me?
Thanks.
--
Constance

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
Array formula returning wrong results TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 November 19th 05 10:29 AM
Suppress array formula #NA [email protected] Excel Worksheet Functions 4 November 15th 05 05:17 PM
referencing the value of a cell containing an array formula KR Excel Worksheet Functions 4 July 5th 05 06:15 PM
problem with Array Formula OrdOff Excel Worksheet Functions 2 June 30th 05 04:57 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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