Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default sumproduct multiplication

Hi again,
How do you pull the numbers in a column to compare against something using
the sumproduct formula when there may be letters in the column. i have a
column that has letters and numbers. I don't want to manipulate the column
or make new ones on the side. What i'm looking to do is to count all the
numbers that are less than say 5 while ignoring the letters. There would be
some other criteria as well (in another column) but that doesn't matter for
this question.

Ex.

header
1
2
4
6
7

Answer = 2

I've tried using sumproduct(--(isnumber(A:A)5) but it gives a value b/c of
the "Header" text and also it overwrites the actual values.

Thanks again,
Josh
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default sumproduct multiplication

Try

=COUNTIF(A:A,"5")

If this post helps click Yes
---------------
Jacob Skaria


"jxbeeman" wrote:

Hi again,
How do you pull the numbers in a column to compare against something using
the sumproduct formula when there may be letters in the column. i have a
column that has letters and numbers. I don't want to manipulate the column
or make new ones on the side. What i'm looking to do is to count all the
numbers that are less than say 5 while ignoring the letters. There would be
some other criteria as well (in another column) but that doesn't matter for
this question.

Ex.

header
1
2
4
6
7

Answer = 2

I've tried using sumproduct(--(isnumber(A:A)5) but it gives a value b/c of
the "Header" text and also it overwrites the actual values.

Thanks again,
Josh

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default sumproduct multiplication

Jacob,
I need to have mulitple criteria, that's why i can't use the countif
function. I need to use mulitiple columns to run this formula with different
criteria which this scenario is only one of those columns. I have the logic
for the other columns working except for this one which has stumped me.

Thanks,
Josh

"Jacob Skaria" wrote:

Try

=COUNTIF(A:A,"5")

If this post helps click Yes
---------------
Jacob Skaria


"jxbeeman" wrote:

Hi again,
How do you pull the numbers in a column to compare against something using
the sumproduct formula when there may be letters in the column. i have a
column that has letters and numbers. I don't want to manipulate the column
or make new ones on the side. What i'm looking to do is to count all the
numbers that are less than say 5 while ignoring the letters. There would be
some other criteria as well (in another column) but that doesn't matter for
this question.

Ex.

header
1
2
4
6
7

Answer = 2

I've tried using sumproduct(--(isnumber(A:A)5) but it gives a value b/c of
the "Header" text and also it overwrites the actual values.

Thanks again,
Josh

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default sumproduct multiplication

Example of SUMPRODUCT() to count based on 3 conditions..

=SUMPRODUCT(($A$1:$A$100=D2)*($B$1:$B$1005)*($C$1 :$C$100=D4))

If this post helps click Yes
---------------
Jacob Skaria


"jxbeeman" wrote:

Jacob,
I need to have mulitple criteria, that's why i can't use the countif
function. I need to use mulitiple columns to run this formula with different
criteria which this scenario is only one of those columns. I have the logic
for the other columns working except for this one which has stumped me.

Thanks,
Josh

"Jacob Skaria" wrote:

Try

=COUNTIF(A:A,"5")

If this post helps click Yes
---------------
Jacob Skaria


"jxbeeman" wrote:

Hi again,
How do you pull the numbers in a column to compare against something using
the sumproduct formula when there may be letters in the column. i have a
column that has letters and numbers. I don't want to manipulate the column
or make new ones on the side. What i'm looking to do is to count all the
numbers that are less than say 5 while ignoring the letters. There would be
some other criteria as well (in another column) but that doesn't matter for
this question.

Ex.

header
1
2
4
6
7

Answer = 2

I've tried using sumproduct(--(isnumber(A:A)5) but it gives a value b/c of
the "Header" text and also it overwrites the actual values.

Thanks again,
Josh

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default sumproduct multiplication

This goes in a cell that's not in the range you're inspecting:
=SUMPRODUCT(--(ISNUMBER(A1:A10)),--(A1:A105))

(I didn't understand your last comment.)

And you can only use the entire column in xl2007.

jxbeeman wrote:

Hi again,
How do you pull the numbers in a column to compare against something using
the sumproduct formula when there may be letters in the column. i have a
column that has letters and numbers. I don't want to manipulate the column
or make new ones on the side. What i'm looking to do is to count all the
numbers that are less than say 5 while ignoring the letters. There would be
some other criteria as well (in another column) but that doesn't matter for
this question.

Ex.

header
1
2
4
6
7

Answer = 2

I've tried using sumproduct(--(isnumber(A:A)5) but it gives a value b/c of
the "Header" text and also it overwrites the actual values.

Thanks again,
Josh


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default sumproduct multiplication

Thanks Dave,
I still have a problem with a #VALUE!
if you use the formula in the following,
SUMPRODUCT(--((RIGHT(A2:A8,2)*1)5),--(ISNUMBER((RIGHT(A2:A8,2)*1))))
The result of one of the rows in the first Array has a VALUE!.
VALUE! * (ANYTHING) = VALUE1.
So i guess the question is how do i change this Value to a 0 without
stomping on the original data

Ex.
A
1 #VALUE!
1
text
2
2
6
6
Text

Array should look like this
0
0
0
0
0
1
1
0

but looks like this
0
0
VALUE!
0
0
1
1
VALUE!

Any ideas?
Thanks again,
Josh


"Dave Peterson" wrote:

This goes in a cell that's not in the range you're inspecting:
=SUMPRODUCT(--(ISNUMBER(A1:A10)),--(A1:A105))

(I didn't understand your last comment.)

And you can only use the entire column in xl2007.

jxbeeman wrote:

Hi again,
How do you pull the numbers in a column to compare against something using
the sumproduct formula when there may be letters in the column. i have a
column that has letters and numbers. I don't want to manipulate the column
or make new ones on the side. What i'm looking to do is to count all the
numbers that are less than say 5 while ignoring the letters. There would be
some other criteria as well (in another column) but that doesn't matter for
this question.

Ex.

header
1
2
4
6
7

Answer = 2

I've tried using sumproduct(--(isnumber(A:A)5) but it gives a value b/c of
the "Header" text and also it overwrites the actual values.

Thanks again,
Josh


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default sumproduct multiplication

You could drop the =sumproduct() formula and use an =sum(if(..)) array formula:

=sum(if(isnumber(a1:a10),if(a1:a105,1)))
This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

jxbeeman wrote:

Thanks Dave,
I still have a problem with a #VALUE!
if you use the formula in the following,
SUMPRODUCT(--((RIGHT(A2:A8,2)*1)5),--(ISNUMBER((RIGHT(A2:A8,2)*1))))
The result of one of the rows in the first Array has a VALUE!.
VALUE! * (ANYTHING) = VALUE1.
So i guess the question is how do i change this Value to a 0 without
stomping on the original data

Ex.
A
1 #VALUE!
1
text
2
2
6
6
Text

Array should look like this
0
0
0
0
0
1
1
0

but looks like this
0
0
VALUE!
0
0
1
1
VALUE!

Any ideas?
Thanks again,
Josh

"Dave Peterson" wrote:

This goes in a cell that's not in the range you're inspecting:
=SUMPRODUCT(--(ISNUMBER(A1:A10)),--(A1:A105))

(I didn't understand your last comment.)

And you can only use the entire column in xl2007.

jxbeeman wrote:

Hi again,
How do you pull the numbers in a column to compare against something using
the sumproduct formula when there may be letters in the column. i have a
column that has letters and numbers. I don't want to manipulate the column
or make new ones on the side. What i'm looking to do is to count all the
numbers that are less than say 5 while ignoring the letters. There would be
some other criteria as well (in another column) but that doesn't matter for
this question.

Ex.

header
1
2
4
6
7

Answer = 2

I've tried using sumproduct(--(isnumber(A:A)5) but it gives a value b/c of
the "Header" text and also it overwrites the actual values.

Thanks again,
Josh


--

Dave Peterson


--

Dave Peterson
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
Multiplication Danny Mac Excel Worksheet Functions 8 December 7th 06 10:28 PM
Matrix multiplication using sumproduct Rasoul Khoshravan Excel Worksheet Functions 3 October 16th 06 11:55 PM
multiplication fitpeach3 Excel Worksheet Functions 2 September 19th 06 11:07 PM
More sumproduct/table multiplication help Syed Excel Worksheet Functions 3 July 21st 05 10:26 PM
multiplication table Robbi777 Excel Discussion (Misc queries) 1 March 3rd 05 04:36 AM


All times are GMT +1. The time now is 05:30 PM.

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"