Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 62
Default Conditional Multiply and Sum

I have a quantity column of values (col C) then values in E, F, G H & I.
Col J is the total of values in E-I.
Col K is the quantity in col C multiplied by the total in col J.
Since some rows do not contain values, the formulae in cols J and K are
conditional
eg:
=IF(OR(NOT(COUNT(RC[-7]))),"",SUM(RC[-5]:RC[-1])) for col J, and
=IF(OR(NOT(COUNT(RC[-8])),NOT(COUNT(RC[-1]))),"",
ROUND(IF(ISNUMBER(SEARCH("item",RC[-8])),1,ROUND(RC[-8],2))*IF(ISNUMBER(SEARCH("item",RC[-1])),1,ROUND(RC[-1],2)),2)) for col K.

I'm trying to do a similar exercise, but this time cycling down rather than
across.

In essence, I need to multiply say r3c3 by r3c5 and add the result to say
r1000c5, then r4c3 by r4c5 etc, ie getting a total for col E, then ditto for
cols F to I .

How best to do this please?

Regards,
Stuart.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 42
Default Conditional Multiply and Sum

Hi,

Put in E1000 this formula =SUMPRODUCT($C$2:$C$999,E2:E999) and then drag it
to right side F1000 onwards.

Regards
Vijay

"Stuart" wrote:

I have a quantity column of values (col C) then values in E, F, G H & I.
Col J is the total of values in E-I.
Col K is the quantity in col C multiplied by the total in col J.
Since some rows do not contain values, the formulae in cols J and K are
conditional
eg:
=IF(OR(NOT(COUNT(RC[-7]))),"",SUM(RC[-5]:RC[-1])) for col J, and
=IF(OR(NOT(COUNT(RC[-8])),NOT(COUNT(RC[-1]))),"",
ROUND(IF(ISNUMBER(SEARCH("item",RC[-8])),1,ROUND(RC[-8],2))*IF(ISNUMBER(SEARCH("item",RC[-1])),1,ROUND(RC[-1],2)),2)) for col K.

I'm trying to do a similar exercise, but this time cycling down rather than
across.

In essence, I need to multiply say r3c3 by r3c5 and add the result to say
r1000c5, then r4c3 by r4c5 etc, ie getting a total for col E, then ditto for
cols F to I .

How best to do this please?

Regards,
Stuart.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 62
Default Conditional Multiply and Sum

Hi Vijay,

Thanks, but I get an error up when I try to exit the cell, having pasted
your formula.

Regards,
Stuart.

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
multiply JoRDaN Excel Worksheet Functions 6 December 8th 08 04:10 PM
Sum and multiply art Excel Worksheet Functions 8 May 26th 08 10:44 PM
multiply jackievar Excel Discussion (Misc queries) 7 June 5th 07 05:19 PM
multiply, then add brenna Excel Discussion (Misc queries) 4 April 5th 07 02:14 AM
add value of 4 cells, multiply by 3 subtract 72 multiply by 80% George A. Yorks Excel Discussion (Misc queries) 10 October 25th 06 09:45 PM


All times are GMT +1. The time now is 08:38 AM.

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"