#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default SUMIF formula

I have a table where I want to sum Colum E, Data.
However I only want to sum those rows where the same row in Column B
have the value <=1.

I tried to set the condition OR(1,<1) but does not work. Also tried
=SUMIF(B2:B5, OR(B2:B5=1,B2:B5<1),E2:E5) and held dowm Ctrl + Shift.

How should I write the formula to make it work? Any idea?

Thanks for any help.

Regards
Jan T.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default SUMIF formula

Maybe

=SUMPRODUCT((B1:B6<=-1)*(E1:E6))

Mike

"Jan T." wrote:

I have a table where I want to sum Colum E, Data.
However I only want to sum those rows where the same row in Column B
have the value <=1.

I tried to set the condition OR(1,<1) but does not work. Also tried
=SUMIF(B2:B5, OR(B2:B5=1,B2:B5<1),E2:E5) and held dowm Ctrl + Shift.

How should I write the formula to make it work? Any idea?

Thanks for any help.

Regards
Jan T.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default SUMIF formula

OOps typo

=SUMPRODUCT((B1:B6<=1)*(E1:E6))


"Jan T." wrote:

I have a table where I want to sum Colum E, Data.
However I only want to sum those rows where the same row in Column B
have the value <=1.

I tried to set the condition OR(1,<1) but does not work. Also tried
=SUMIF(B2:B5, OR(B2:B5=1,B2:B5<1),E2:E5) and held dowm Ctrl + Shift.

How should I write the formula to make it work? Any idea?

Thanks for any help.

Regards
Jan T.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default SUMIF formula

Same syntax as in the example in Excel help:
=SUMIF(B2:B5,"<=1",E2:E5)
--
David Biddulph

"Jan T." wrote in message
ups.com...
I have a table where I want to sum Colum E, Data.
However I only want to sum those rows where the same row in Column B
have the value <=1.

I tried to set the condition OR(1,<1) but does not work. Also tried
=SUMIF(B2:B5, OR(B2:B5=1,B2:B5<1),E2:E5) and held dowm Ctrl + Shift.

How should I write the formula to make it work? Any idea?

Thanks for any help.

Regards
Jan T.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default SUMIF formula

On 18 Okt, 13:10, Mike H wrote:
OOps typo

=SUMPRODUCT((B1:B6<=1)*(E1:E6))



"Jan T." wrote:
I have a table where I want to sum Colum E, Data.
However I only want to sum those rows where the same row in Column B
have the value <=1.


I tried to set the condition OR(1,<1) but does not work. Also tried
=SUMIF(B2:B5, OR(B2:B5=1,B2:B5<1),E2:E5) and held dowm Ctrl + Shift.


How should I write the formula to make it work? Any idea?


Thanks for any help.


Regards
Jan T.- Skjul sitert tekst -


- Vis sitert tekst -



That was perfect. The only change I did, was this:
I changed the number 1 to 1.001 because otherwice the formula will
just sum integers (whole numbers). If the value is 1.5 it reads only
1.

Thank you very much for your good and fast answer.

Regards
Jan T.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default SUMIF formula

On 18 Okt, 13:20, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
Same syntax as in the example in Excel help:
=SUMIF(B2:B5,"<=1",E2:E5)
--
David Biddulph

"Jan T." wrote in message

ups.com...



I have a table where I want to sum Colum E, Data.
However I only want to sum those rows where the same row in Column B
have the value <=1.


I tried to set the condition OR(1,<1) but does not work. Also tried
=SUMIF(B2:B5, OR(B2:B5=1,B2:B5<1),E2:E5) and held dowm Ctrl + Shift.


How should I write the formula to make it work? Any idea?


Thanks for any help.


Regards
Jan T.- Skjul sitert tekst -


- Vis sitert tekst -


First thing I tried was the Excel Help File. However it showed an
error: Cannot start Microsoft Hjelp. Also tried Goodle but searched
for SUMIF not SUMPRODUCT. Otherwise, good tip! Thanx.

Regards
Jan T.


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default SUMIF formula

Jan,

Thanks for the feedback, I'm glad it worked.

The change you made will not make it sum numbers differently. The 1 is used
to compare to the values in column B. If a value in B is <= 1 (now <=1.001)
column E is summed otherwise it isn't so the change you made may have an
underisable effects.

Mike

"Jan T." wrote:

On 18 Okt, 13:10, Mike H wrote:
OOps typo

=SUMPRODUCT((B1:B6<=1)*(E1:E6))



"Jan T." wrote:
I have a table where I want to sum Colum E, Data.
However I only want to sum those rows where the same row in Column B
have the value <=1.


I tried to set the condition OR(1,<1) but does not work. Also tried
=SUMIF(B2:B5, OR(B2:B5=1,B2:B5<1),E2:E5) and held dowm Ctrl + Shift.


How should I write the formula to make it work? Any idea?


Thanks for any help.


Regards
Jan T.- Skjul sitert tekst -


- Vis sitert tekst -



That was perfect. The only change I did, was this:
I changed the number 1 to 1.001 because otherwice the formula will
just sum integers (whole numbers). If the value is 1.5 it reads only
1.

Thank you very much for your good and fast answer.

Regards
Jan T.


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default SUMIF formula

If help doesn't work, it sounds like you might need an installation repair.
In the meantime, you may find equivalent info at
http://office.microsoft.com/en-us/ex...042111033.aspx (or
corresponding places for other versions than 2003).
--
David Biddulph

"Jan T." wrote in message
oups.com...

First thing I tried was the Excel Help File. However it showed an
error: Cannot start Microsoft Hjelp. Also tried Goodle but searched
for SUMIF not SUMPRODUCT. Otherwise, good tip! Thanx.


On 18 Okt, 13:20, "David Biddulph" <groups [at] biddulph.org.uk

wrote:
Same syntax as in the example in Excel help:
=SUMIF(B2:B5,"<=1",E2:E5)


"Jan T." wrote in message

ups.com...

I have a table where I want to sum Colum E, Data.
However I only want to sum those rows where the same row in Column B
have the value <=1.


I tried to set the condition OR(1,<1) but does not work. Also tried
=SUMIF(B2:B5, OR(B2:B5=1,B2:B5<1),E2:E5) and held dowm Ctrl + Shift.


How should I write the formula to make it work? Any idea?


Thanks for any help.


Regards
Jan T.- Skjul sitert tekst -


- Vis sitert tekst -



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
Nesting a sumproduct formula within a sumif formula. jerrymcm Excel Discussion (Misc queries) 2 October 3rd 07 03:35 PM
multiply formula where 1 cell has a (sumif) formula as a result kcip Excel Worksheet Functions 1 May 3rd 07 07:41 AM
sumif formula Louie Excel Worksheet Functions 5 April 4th 07 03:32 AM
Formula using SUMIF & IF BiggyTwo Excel Worksheet Functions 3 March 18th 06 02:36 AM
Is there a MAXIF formula similar to the SUMIF formula? tlc Excel Discussion (Misc queries) 2 March 13th 06 08:07 PM


All times are GMT +1. The time now is 02:00 PM.

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

About Us

"It's about Microsoft Excel"