A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sumproduct - number & text



 
 
Thread Tools Display Modes
  #1  
Old June 23rd, 2009, 12:38 PM posted to microsoft.public.excel.worksheet.functions
Kashyap
external usenet poster
 
Posts: 59
Default Sumproduct - number & text

Hi, I have number in colB & text in Col C,D

I was trying sumproduct to go the data from colD looking at Col B & C

something like below.. But result is #VALUE!

=SUMPRODUCT((Sheet2!$C$2:$C$100=$C$2)*(Sheet2!$B$2 :$B$100=R4)*(Sheet2!$D$2:$D$100))

Can someone help me on this pls...
  #2  
Old June 23rd, 2009, 12:44 PM posted to microsoft.public.excel.worksheet.functions
Sheeloo
external usenet poster
 
Posts: 797
Default Sumproduct - number & text

How can you 'SUM' text values?

"Kashyap" wrote:

Hi, I have number in colB & text in Col C,D

I was trying sumproduct to go the data from colD looking at Col B & C

something like below.. But result is #VALUE!

=SUMPRODUCT((Sheet2!$C$2:$C$100=$C$2)*(Sheet2!$B$2 :$B$100=R4)*(Sheet2!$D$2:$D$100))

Can someone help me on this pls...

  #3  
Old June 23rd, 2009, 12:53 PM posted to microsoft.public.excel.worksheet.functions
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Sumproduct - number & text

If you use that * operation, then if you have any non-numeric entries in
D2100, then you'll get that error.

But if you change your syntax:

=SUMPRODUCT(--(Sheet2!$C$2:$C$100=$C$2),
--(Sheet2!$B$2:$B$100=R4),
--(Sheet2!$D$2:$D$100))

Text in D2100 will be treated as 0--just like =sum().



Kashyap wrote:

Hi, I have number in colB & text in Col C,D

I was trying sumproduct to go the data from colD looking at Col B & C

something like below.. But result is #VALUE!

=SUMPRODUCT((Sheet2!$C$2:$C$100=$C$2)*(Sheet2!$B$2 :$B$100=R4)*(Sheet2!$D$2:$D$100))

Can someone help me on this pls...


--

Dave Peterson
  #4  
Old June 23rd, 2009, 01:07 PM posted to microsoft.public.excel.worksheet.functions
Kashyap
external usenet poster
 
Posts: 59
Default Sumproduct - number & text

Then what way can I get the corresponding text?
  #5  
Old June 23rd, 2009, 01:24 PM posted to microsoft.public.excel.worksheet.functions
Fred Smith[_4_]
external usenet poster
 
Posts: 2,386
Default Sumproduct - number & text

You'll have to specify how you want to sum the text. Give an example and
show the results you want.

Regards,
Fred.

"Kashyap" wrote in message
...
Then what way can I get the corresponding text?


  #6  
Old June 23rd, 2009, 01:36 PM posted to microsoft.public.excel.worksheet.functions
Kashyap
external usenet poster
 
Posts: 59
Default Sumproduct - number & text

I just want to lookup 2 columns and get the result from the 3rd column. But
here 2 columns are text and number in one column.
  #7  
Old June 23rd, 2009, 02:06 PM posted to microsoft.public.excel.worksheet.functions
Sheeloo
external usenet poster
 
Posts: 797
Default Sumproduct - number & text

See http://www.contextures.com/xlFunctio...ml#IndexMatch4 for a solution

"Kashyap" wrote:

I just want to lookup 2 columns and get the result from the 3rd column. But
here 2 columns are text and number in one column.

  #8  
Old June 23rd, 2009, 02:15 PM posted to microsoft.public.excel.worksheet.functions
PJ
external usenet poster
 
Posts: 265
Default Sumproduct - number & text

Hi Kayshap

Try this:

With the criteria you want to look up in E1 and F1

=INDEX($D$2:$D$100,MATCH($E$1&$F$1,$B$2:$B$100&$C$ 2:$C$100,0))

this is an array formula entered by pressing Ctrl. Shift and Enter together.

This should return the value from the row in column D where the cells in
columns B and C have the values specified in E1 and F1.

"Kashyap" wrote:

Hi, I have number in colB & text in Col C,D

I was trying sumproduct to go the data from colD looking at Col B & C

something like below.. But result is #VALUE!

=SUMPRODUCT((Sheet2!$C$2:$C$100=$C$2)*(Sheet2!$B$2 :$B$100=R4)*(Sheet2!$D$2:$D$100))

Can someone help me on this pls...

  #9  
Old June 23rd, 2009, 09:44 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Sumproduct - number & text

Try this array formula** :

=INDEX(Sheet2!$D$2:$D$100,MATCH(1,(Sheet2!$C$2:$C$ 100=$C$2)*(Sheet2!$B$2:$B$100=R4),0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Kashyap" wrote in message
...
Hi, I have number in colB & text in Col C,D

I was trying sumproduct to go the data from colD looking at Col B & C

something like below.. But result is #VALUE!

=SUMPRODUCT((Sheet2!$C$2:$C$100=$C$2)*(Sheet2!$B$2 :$B$100=R4)*(Sheet2!$D$2:$D$100))

Can someone help me on this pls...



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:50 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.