Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am trying to write a formula using Sumproduct to dived data. I
understand that the reciprocal of a number multiplied is the same as dividing so Sumproduct shoudl work. the problem is that there are blanks in the data and then it is diving by one. =Sumproduct(A1:A5,1/B1:B5) This works fine if there are no 0 or blanks. Thanks, Jay |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this array formula** :
Assuming the range will contain *numbers only*, no text, no formula blanks. =SUM(IF(B1:B5<0,A1:A5*1/B1:B5)) ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER) -- Biff Microsoft Excel MVP "jlclyde" wrote in message ... I am trying to write a formula using Sumproduct to dived data. I understand that the reciprocal of a number multiplied is the same as dividing so Sumproduct shoudl work. the problem is that there are blanks in the data and then it is diving by one. =Sumproduct(A1:A5,1/B1:B5) This works fine if there are no 0 or blanks. Thanks, Jay |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Biff,
I have another part to the same question. What happens if there is a third variable present? Say C olumn must also match. C is text. Thanks, Jay |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If I understand you...
Array entered: =SUM(IF((B1:B5<0)*(C1:C5="this"),A1:A5*1/B1:B5)) If your numbers in column B are *always* positive: =SUM(IF((B1:B50)*(C1:C5="this"),A1:A5*1/B1:B5)) I'm more "comfortable" using 0 rather than <0. -- Biff Microsoft Excel MVP "jlclyde" wrote in message ... Biff, I have another part to the same question. What happens if there is a third variable present? Say C olumn must also match. C is text. Thanks, Jay |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Divide By help? | Excel Worksheet Functions | |||
divide | Excel Discussion (Misc queries) | |||
divide by zero | Excel Worksheet Functions | |||
divide by 0 | Excel Worksheet Functions | |||
Divide one row over other row I dont wont to divide one number | Excel Discussion (Misc queries) |