#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Function Help

Probably simple, but I cannot figure it out.
I need to sum Column I (each row in I is the sum of G & H) only if rows in
columns G & H have a value.
HELP please.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Function Help

Try this:

=SUMPRODUCT(--(G1:G100<""),--(H1:H100<""),(I1:I100))

HTH,
Elkar


"monkey1964" wrote:

Probably simple, but I cannot figure it out.
I need to sum Column I (each row in I is the sum of G & H) only if rows in
columns G & H have a value.
HELP please.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Function Help

Thank you. I believe I need it differently now though.
I need it to sum up column J only if BOTH G & H cells have a value. I tried
using the formula you gave me for it, but it only gave me a 0. Your formula
did work for summing up I. Column J is a formula for Cost Difference between
Columns F & I.


"Elkar" wrote:

Try this:

=SUMPRODUCT(--(G1:G100<""),--(H1:H100<""),(I1:I100))

HTH,
Elkar


"monkey1964" wrote:

Probably simple, but I cannot figure it out.
I need to sum Column I (each row in I is the sum of G & H) only if rows in
columns G & H have a value.
HELP please.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Function Help

This should work:

=SUMPRODUCT(--(G1:G100<""),--(H1:H100<""),(J1:J100))

We just changed the (I1:I100) part to (J1:J100) since you want to maintain
the same conditions, but just sum a different column.

HTH,
Elkar


"monkey1964" wrote:

Thank you. I believe I need it differently now though.
I need it to sum up column J only if BOTH G & H cells have a value. I tried
using the formula you gave me for it, but it only gave me a 0. Your formula
did work for summing up I. Column J is a formula for Cost Difference between
Columns F & I.


"Elkar" wrote:

Try this:

=SUMPRODUCT(--(G1:G100<""),--(H1:H100<""),(I1:I100))

HTH,
Elkar


"monkey1964" wrote:

Probably simple, but I cannot figure it out.
I need to sum Column I (each row in I is the sum of G & H) only if rows in
columns G & H have a value.
HELP please.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 418
Default Function Help

monkey1964 wrote:
I need to sum Column I (each row in I is the sum of G & H) only
if rows in columns G & H have a value.


If you truly mean if there is a value in __both__ G and H:

=sumproduct((G1:G10<"")*(H1:H10<"")*I1:I10)



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Function Help

Thank so much! That one did the trick!


" wrote:

monkey1964 wrote:
I need to sum Column I (each row in I is the sum of G & H) only
if rows in columns G & H have a value.


If you truly mean if there is a value in __both__ G and H:

=sumproduct((G1:G10<"")*(H1:H10<"")*I1:I10)


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
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 02:51 AM.

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"