Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Parameters: Column A = Text Column B = Text Column C = Numerical My formula is: =SUMPRODUCT((Data!$A$2:$A$32001=Sheet2!$A3)*(Data! $B$2:$B$32001=H$1),Data!$C$2:$C$32001) This works fine except where the value/text I want returned in column C looks like this "2008: 36" or "2008-36" - instead I receive "0" or "84" - when I want the formula to return exactly what is in the cell. Please help!!! |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You have to convert the underlying text. Sumproduct will do the anayltics
for you, but it won't do any kind of text conversion for you. Or maybe in certain circumstances it will, btu the data still has to be consistent. HTH, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "Dhazmo" wrote: Parameters: Column A = Text Column B = Text Column C = Numerical My formula is: =SUMPRODUCT((Data!$A$2:$A$32001=Sheet2!$A3)*(Data! $B$2:$B$32001=H$1),Data!$C$2:$C$32001) This works fine except where the value/text I want returned in column C looks like this "2008: 36" or "2008-36" - instead I receive "0" or "84" - when I want the formula to return exactly what is in the cell. Please help!!! |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If you are looking to retrive the matching data from ColC for the 2 criterias
metioned try the below. Please note that this is an array formula. You create array formulas in the same way that you create other formulas, except you press CTRL+SHIFT+ENTER to enter the formula. If successful in 'Formula Bar' you can notice the curly braces at both ends like "{=<formula}" =INDEX(Data!$C$2:$C$32001,MATCH(1,(Data!$A$2:$A$32 001=Sheet2!$A3)* (Data!$B$2:$B$32001=H$1),0)) If this post helps click Yes --------------- Jacob Skaria "Dhazmo" wrote: Parameters: Column A = Text Column B = Text Column C = Numerical My formula is: =SUMPRODUCT((Data!$A$2:$A$32001=Sheet2!$A3)*(Data! $B$2:$B$32001=H$1),Data!$C$2:$C$32001) This works fine except where the value/text I want returned in column C looks like this "2008: 36" or "2008-36" - instead I receive "0" or "84" - when I want the formula to return exactly what is in the cell. Please help!!! |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
SUMPRODUCT works with numbers; you can't take a PRODUCT or SUM of text.
-- David Biddulph "Dhazmo" wrote in message ... Parameters: Column A = Text Column B = Text Column C = Numerical My formula is: =SUMPRODUCT((Data!$A$2:$A$32001=Sheet2!$A3)*(Data! $B$2:$B$32001=H$1),Data!$C$2:$C$32001) This works fine except where the value/text I want returned in column C looks like this "2008: 36" or "2008-36" - instead I receive "0" or "84" - when I want the formula to return exactly what is in the cell. Please help!!! |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"2008 :36", if you type it directly into a cell (without the quote marks)
Excel thinks you are trying to give a time value (because of the colon). When that time value is put in a cell formatted as a number, you will get 83 and change (rounds up to 84) If you want to get it in your new cell in exactly the same format, precede the value with an apostrophe, maybe something like (untested): ="'" & SUMPRODUCT((Data!$A$2:$A$32001=Sheet2!$A3)*(Data!$ B$2:$B$32001=H$1),Data!$C$2:$C$32001) "Dhazmo" wrote: Parameters: Column A = Text Column B = Text Column C = Numerical My formula is: =SUMPRODUCT((Data!$A$2:$A$32001=Sheet2!$A3)*(Data! $B$2:$B$32001=H$1),Data!$C$2:$C$32001) This works fine except where the value/text I want returned in column C looks like this "2008: 36" or "2008-36" - instead I receive "0" or "84" - when I want the formula to return exactly what is in the cell. Please help!!! |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This worked a treat! many thanks!!
"Jacob Skaria" wrote: If you are looking to retrive the matching data from ColC for the 2 criterias metioned try the below. Please note that this is an array formula. You create array formulas in the same way that you create other formulas, except you press CTRL+SHIFT+ENTER to enter the formula. If successful in 'Formula Bar' you can notice the curly braces at both ends like "{=<formula}" =INDEX(Data!$C$2:$C$32001,MATCH(1,(Data!$A$2:$A$32 001=Sheet2!$A3)* (Data!$B$2:$B$32001=H$1),0)) If this post helps click Yes --------------- Jacob Skaria "Dhazmo" wrote: Parameters: Column A = Text Column B = Text Column C = Numerical My formula is: =SUMPRODUCT((Data!$A$2:$A$32001=Sheet2!$A3)*(Data! $B$2:$B$32001=H$1),Data!$C$2:$C$32001) This works fine except where the value/text I want returned in column C looks like this "2008: 36" or "2008-36" - instead I receive "0" or "84" - when I want the formula to return exactly what is in the cell. Please help!!! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculating Percent Change - Comparison Result is Negative | Excel Worksheet Functions | |||
SUMPRODUCT with AVERAGE result | Excel Worksheet Functions | |||
IF function inequality is not calculating correct result | Excel Discussion (Misc queries) | |||
Getting #NUM! result for SumProduct | Excel Worksheet Functions | |||
Calculating a dollar value of the result between 2 different times | Excel Worksheet Functions |