Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() trying to use this formula: SUMPRODUCT(($L$22:$L$1166={"1svc"})*($M$22:$M$1166 )) Column L contains both text and numerical data. Using excel help, near as I can tell it cannot read the column with both types being contained within. here is as far as I can get with "help": -Microsoft Excel cannot translate the text into the correct data type. Make sure the formula or function is correct for the required operand or argument, and that the cells that are referenced by the formula contain valid values. For example, if cell A5 contains a number and cell A6 contains the text "Not available", the formula =A5+A6 will return the error #VALUE!.- ??? -- redneck joe ------------------------------------------------------------------------ redneck joe's Profile: http://www.excelforum.com/member.php...o&userid=32570 View this thread: http://www.excelforum.com/showthread...hreadid=535222 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() It looks like a viable formula to me - what result do you get? The curly braces are superfluous here and I'd advise a different syntax =SUMPRODUCT(--($L$22:$L$1166="1svc"),$M$22:$M$1166) -- daddylonglegs ------------------------------------------------------------------------ daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486 View this thread: http://www.excelforum.com/showthread...hreadid=535222 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Sorry, it is Saturday so I'm a bit slow today, but you really only need SUMIF for one criterion, i.e. =SUMIF($L$22:$L$1166,"1svc",$M$22:$M$1166) -- daddylonglegs ------------------------------------------------------------------------ daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486 View this thread: http://www.excelforum.com/showthread...hreadid=535222 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() gives me #value I'll try yours in a bit and see what happens. One thing forgot, the "1svc" is just one of many variable I will be looking for (it was just my test) - how to string those in? -- redneck joe ------------------------------------------------------------------------ redneck joe's Profile: http://www.excelforum.com/member.php...o&userid=32570 View this thread: http://www.excelforum.com/showthread...hreadid=535222 |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() thanks - both worked. Why do you prefer one over the other?? -- redneck joe ------------------------------------------------------------------------ redneck joe's Profile: http://www.excelforum.com/member.php...o&userid=32570 View this thread: http://www.excelforum.com/showthread...hreadid=535222 |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
SUMIF is more efficient if there is only one condition to test for.
If you still need multiple values, use =SUMPRODUCT(--(ISNUMBER(MATCH($L$22:$L$1166,{"1svc","2cdr"},0))) ,--$M$22:$M$ 1166) -- HTH Bob Phillips (remove nothere from email address if mailing direct) "redneck joe" wrote in message ... thanks - both worked. Why do you prefer one over the other?? -- redneck joe ------------------------------------------------------------------------ redneck joe's Profile: http://www.excelforum.com/member.php...o&userid=32570 View this thread: http://www.excelforum.com/showthread...hreadid=535222 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need help with sumproduct and dynamic ranges | Excel Worksheet Functions | |||
SumProduct | Excel Worksheet Functions | |||
sumproduct causing memory errors? | Excel Worksheet Functions | |||
Can I reference =, <, or > sign in SUMPRODUCT | Excel Discussion (Misc queries) | |||
adding two sumproduct formulas together | Excel Worksheet Functions |