Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default If cell on either side is something count in sum

Hi,

I'm looking at an array to make a sum something like this, but it's not
working. Can I get some help?

=IF($G$5:$G$67<"x",SUM(IF($C$5:$C$67="Company",($ D$5:$D$67))),0)

Column D is the amount to sum, but
Column G cannot have an 'x' beside the amount in column D to count
amount in the sum, and
Column C has to match 'Company' beside the amount in column D to count
the amount in the sum as well.

Column D is the invoice amount
Column G is x'd when it's paid
Column C is the company name
E77 is the formula showing how much company has outstanding. I get 0 &
it should be $18,850.00.

Thanks,

Michele

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default If cell on either side is something count in sum

Hi, Michelle,

This is a straightforward syntax matter. In the end, you want to perform
the SUM, so the SUM should be the outsidemost function, with the nested IF
statements inside, like this:

=SUM(IF(condition,true,if(condition,true,false),fa lse))

Notice the symmetry if you read it from the center out? It has been about
25 minutes since you posted, so you might have noticed this yourself by now.

Regards,
Marty S.

"mjones" wrote:

Hi,

I'm looking at an array to make a sum something like this, but it's not
working. Can I get some help?

=IF($G$5:$G$67<"x",SUM(IF($C$5:$C$67="Company",($ D$5:$D$67))),0)

Column D is the amount to sum, but
Column G cannot have an 'x' beside the amount in column D to count
amount in the sum, and
Column C has to match 'Company' beside the amount in column D to count
the amount in the sum as well.

Column D is the invoice amount
Column G is x'd when it's paid
Column C is the company name
E77 is the formula showing how much company has outstanding. I get 0 &
it should be $18,850.00.

Thanks,

Michele


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default If cell on either side is something count in sum

=IF($G$5:$G$67<"x",SUM(IF($C$5:$C$67="Company",($ D$5:$D$67))),0)

One way is to use SUMPRODUCT
Try, normal ENTER will do:
=SUMPRODUCT(($G$5:$G$67<"x")*($C$5:$C$67="Company "),$D$5:$D$67)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"mjones" wrote:
Hi,

I'm looking at an array to make a sum something like this, but it's not
working. Can I get some help?

=IF($G$5:$G$67<"x",SUM(IF($C$5:$C$67="Company",($ D$5:$D$67))),0)

Column D is the amount to sum, but
Column G cannot have an 'x' beside the amount in column D to count
amount in the sum, and
Column C has to match 'Company' beside the amount in column D to count
the amount in the sum as well.

Column D is the invoice amount
Column G is x'd when it's paid
Column C is the company name
E77 is the formula showing how much company has outstanding. I get 0 &
it should be $18,850.00.

Thanks,

Michele


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default If cell on either side is something count in sum

Thanks! Both options work.

Max wrote:
=IF($G$5:$G$67<"x",SUM(IF($C$5:$C$67="Company",($ D$5:$D$67))),0)


One way is to use SUMPRODUCT
Try, normal ENTER will do:
=SUMPRODUCT(($G$5:$G$67<"x")*($C$5:$C$67="Company "),$D$5:$D$67)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"mjones" wrote:
Hi,

I'm looking at an array to make a sum something like this, but it's not
working. Can I get some help?

=IF($G$5:$G$67<"x",SUM(IF($C$5:$C$67="Company",($ D$5:$D$67))),0)

Column D is the amount to sum, but
Column G cannot have an 'x' beside the amount in column D to count
amount in the sum, and
Column C has to match 'Company' beside the amount in column D to count
the amount in the sum as well.

Column D is the invoice amount
Column G is x'd when it's paid
Column C is the company name
E77 is the formula showing how much company has outstanding. I get 0 &
it should be $18,850.00.

Thanks,

Michele



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default If cell on either side is something count in sum

Glad it did!
Thanks for feedback
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
mjones wrote:
Thanks! Both options work.


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
Sumproduct issues SteveDB1 Excel Worksheet Functions 25 June 3rd 09 04:58 PM
Cell References [email protected] Excel Discussion (Misc queries) 2 November 15th 06 11:37 PM
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
count a number range and a letter in a cell santaviga Excel Worksheet Functions 3 April 28th 06 11:11 AM
Cell Count bombayterror New Users to Excel 2 January 21st 06 09:33 PM


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