Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default SumPRODUCT - calculating result??


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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default SumPRODUCT - calculating result??

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default SumPRODUCT - calculating result??

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default SumPRODUCT - calculating result??

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 395
Default SumPRODUCT - calculating result??

"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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default SumPRODUCT - calculating result??

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
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
Calculating Percent Change - Comparison Result is Negative Stilltrader47 Excel Worksheet Functions 2 August 7th 09 07:02 AM
SUMPRODUCT with AVERAGE result EricB Excel Worksheet Functions 4 June 9th 09 04:37 PM
IF function inequality is not calculating correct result Matt Ballantine Excel Discussion (Misc queries) 3 May 22nd 09 05:07 PM
Getting #NUM! result for SumProduct Sarah (OGI) Excel Worksheet Functions 10 August 8th 07 01:43 PM
Calculating a dollar value of the result between 2 different times MSCurious Excel Worksheet Functions 2 December 6th 05 04:53 PM


All times are GMT +1. The time now is 06:10 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"