Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default SUMPRODUCT (I believe??)

I have an array of numbers and/or text values in cells A1 through E5, such as:

A B C D E

1 12 6 A Y -5
2 4 2 3 AB 9
3 GH -1 -6 0 17
4 A V R -9 3
5 2 1 6 3 8

AND I WISH TO ADD THE CELLS where the values are 0 < X < 10. IGNORE ALL
OTHER CELL VALUES.

THEREFORE, my answer will be: 6 + 4 + 2 + 3 + 9 + 3 + 2 + 1 + 6 + 3 + 8 =
47.

Please, how is this done...using the =SUMPRODUCT formula...

It is something such as:

=SUMPRODUCT(AND(A1:E50,A1:E5<10),A1:E5)...BUT NOT QUITE SO!!!!!!!!!!!

PLEASE ADVISE.

Thank you,

FLKulchar
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default SUMPRODUCT (I believe??)

F. Lawrence Kulchar wrote:
I have an array of numbers and/or text values in cells A1 through E5,
such as:

A B C D E

1 12 6 A Y -5
2 4 2 3 AB 9
3 GH -1 -6 0 17
4 A V R -9 3
5 2 1 6 3 8

AND I WISH TO ADD THE CELLS where the values are 0 < X < 10. IGNORE
ALL OTHER CELL VALUES.

THEREFORE, my answer will be: 6 + 4 + 2 + 3 + 9 + 3 + 2 + 1 + 6 + 3
+ 8 =
47.

Please, how is this done...using the =SUMPRODUCT formula...

It is something such as:

=SUMPRODUCT(AND(A1:E50,A1:E5<10),A1:E5)...BUT NOT QUITE SO!!!!!!!!!!!

PLEASE ADVISE.

Thank you,

FLKulchar



Hi Lawrence,

try with this formula, array entered, i.e. pressing Ctrl + Shift + Enter,
instead of just Enter.


=SUM((A1:E50)*(A1:E5<10)*IF(ISERROR(VALUE(A1:E5)) ,0,A1:E5))

--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default SUMPRODUCT (I believe??)

or even =SUMPRODUCT((A1:E50)*(A1:E5<10),A1:E5)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Franz Verga" wrote in message
...
F. Lawrence Kulchar wrote:
I have an array of numbers and/or text values in cells A1 through E5,
such as:

A B C D E

1 12 6 A Y -5
2 4 2 3 AB 9
3 GH -1 -6 0 17
4 A V R -9 3
5 2 1 6 3 8

AND I WISH TO ADD THE CELLS where the values are 0 < X < 10. IGNORE
ALL OTHER CELL VALUES.

THEREFORE, my answer will be: 6 + 4 + 2 + 3 + 9 + 3 + 2 + 1 + 6 + 3
+ 8 =
47.

Please, how is this done...using the =SUMPRODUCT formula...

It is something such as:

=SUMPRODUCT(AND(A1:E50,A1:E5<10),A1:E5)...BUT NOT QUITE SO!!!!!!!!!!!

PLEASE ADVISE.

Thank you,

FLKulchar



Hi Lawrence,

try with this formula, array entered, i.e. pressing Ctrl + Shift + Enter,
instead of just Enter.


=SUM((A1:E50)*(A1:E5<10)*IF(ISERROR(VALUE(A1:E5)) ,0,A1:E5))

--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default SUMPRODUCT (I believe??)

=SUMPRODUCT(A1:E5,--(A1:E50),--(A1:E5<10))
regards,
Stefi


F. Lawrence Kulchar ezt *rta:

I have an array of numbers and/or text values in cells A1 through E5, such as:

A B C D E

1 12 6 A Y -5
2 4 2 3 AB 9
3 GH -1 -6 0 17
4 A V R -9 3
5 2 1 6 3 8

AND I WISH TO ADD THE CELLS where the values are 0 < X < 10. IGNORE ALL
OTHER CELL VALUES.

THEREFORE, my answer will be: 6 + 4 + 2 + 3 + 9 + 3 + 2 + 1 + 6 + 3 + 8 =
47.

Please, how is this done...using the =SUMPRODUCT formula...

It is something such as:

=SUMPRODUCT(AND(A1:E50,A1:E5<10),A1:E5)...BUT NOT QUITE SO!!!!!!!!!!!

PLEASE ADVISE.

Thank you,

FLKulchar

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default SUMPRODUCT (I believe??)

=SUMIF(A1:E5,"0")-SUMIF(A1:E5,"10")

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"F. Lawrence Kulchar" wrote in
message ...
I have an array of numbers and/or text values in cells A1 through E5, such

as:

A B C D E

1 12 6 A Y -5
2 4 2 3 AB 9
3 GH -1 -6 0 17
4 A V R -9 3
5 2 1 6 3 8

AND I WISH TO ADD THE CELLS where the values are 0 < X < 10. IGNORE ALL
OTHER CELL VALUES.

THEREFORE, my answer will be: 6 + 4 + 2 + 3 + 9 + 3 + 2 + 1 + 6 + 3 + 8

=
47.

Please, how is this done...using the =SUMPRODUCT formula...

It is something such as:

=SUMPRODUCT(AND(A1:E50,A1:E5<10),A1:E5)...BUT NOT QUITE SO!!!!!!!!!!!

PLEASE ADVISE.

Thank you,

FLKulchar





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
Sumproduct with Condition OR Sumproduct with ADDRESS function - HE gholly Excel Discussion (Misc queries) 2 September 28th 09 05:07 PM
Sumproduct? Looping through Excel Worksheet Functions 4 July 13th 09 08:56 AM
SUMPRODUCT Scott Kieta[_2_] Excel Worksheet Functions 5 November 4th 08 02:32 AM
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM


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