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  

if function help



 
 
Thread Tools Display Modes
  #1  
Old April 27th, 2010, 10:40 PM posted to microsoft.public.excel.worksheet.functions
Kathy
external usenet poster
 
Posts: 641
Default if function help

i am trying to create an if function that will sum data in a column if the
cell value is between certain values.
This works for sum if greater than, =ifsum(b:4:b14,"366",e4:E14)
When I try to have the sum of E4:e14 if b4:b14 is between 151 and 366 I am
unable to get the criteria written correctly. HELP!
--
Thank you, Kathy
  #2  
Old April 27th, 2010, 11:24 PM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
Default if function help

Use SUMPRODUCT to handle multiple conditions...

=SUMPRODUCT(B1:B14*(B1:B14151)*(B1:B14366))

--
Rick (MVP - Excel)



"kathy" wrote in message
...
i am trying to create an if function that will sum data in a column if the
cell value is between certain values.
This works for sum if greater than, =ifsum(b:4:b14,"366",e4:E14)
When I try to have the sum of E4:e14 if b4:b14 is between 151 and 366 I am
unable to get the criteria written correctly. HELP!
--
Thank you, Kathy


  #3  
Old April 28th, 2010, 07:25 AM posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_]
external usenet poster
 
Posts: 1,764
Default if function help

Hi,

Try this

=sumif(B4:B14,"=151",E4:E14)-sumif(B4:B14,"366",E4:E14)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"kathy" wrote in message
...
i am trying to create an if function that will sum data in a column if the
cell value is between certain values.
This works for sum if greater than, =ifsum(b:4:b14,"366",e4:E14)
When I try to have the sum of E4:e14 if b4:b14 is between 151 and 366 I am
unable to get the criteria written correctly. HELP!
--
Thank you, Kathy


  #4  
Old April 28th, 2010, 02:33 PM posted to microsoft.public.excel.worksheet.functions
Kathy
external usenet poster
 
Posts: 641
Default if function help

Thank you that works, now how do I change this to count if with the same
information. I tried changing sumif to countif, but the answer was not
correct.
--
Thank you, Kathy


"Ashish Mathur" wrote:

Hi,

Try this

=sumif(B4:B14,"=151",E4:E14)-sumif(B4:B14,"366",E4:E14)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"kathy" wrote in message
...
i am trying to create an if function that will sum data in a column if the
cell value is between certain values.
This works for sum if greater than, =ifsum(b:4:b14,"366",e4:E14)
When I try to have the sum of E4:e14 if b4:b14 is between 151 and 366 I am
unable to get the criteria written correctly. HELP!
--
Thank you, Kathy


  #5  
Old April 28th, 2010, 02:36 PM posted to microsoft.public.excel.worksheet.functions
Kathy
external usenet poster
 
Posts: 641
Default if function help

Sorry for the last post, I figured it out, I had to remove the E4:e14 and now
it works.
--
Thank you, Kathy


"Ashish Mathur" wrote:

Hi,

Try this

=sumif(B4:B14,"=151",E4:E14)-sumif(B4:B14,"366",E4:E14)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"kathy" wrote in message
...
i am trying to create an if function that will sum data in a column if the
cell value is between certain values.
This works for sum if greater than, =ifsum(b:4:b14,"366",e4:E14)
When I try to have the sum of E4:e14 if b4:b14 is between 151 and 366 I am
unable to get the criteria written correctly. HELP!
--
Thank you, Kathy


  #6  
Old April 29th, 2010, 12:58 AM posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_]
external usenet poster
 
Posts: 1,764
Default if function help

You are welcome

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"kathy" wrote in message
...
Thank you that works, now how do I change this to count if with the same
information. I tried changing sumif to countif, but the answer was not
correct.
--
Thank you, Kathy


"Ashish Mathur" wrote:

Hi,

Try this

=sumif(B4:B14,"=151",E4:E14)-sumif(B4:B14,"366",E4:E14)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"kathy" wrote in message
...
i am trying to create an if function that will sum data in a column if
the
cell value is between certain values.
This works for sum if greater than, =ifsum(b:4:b14,"366",e4:E14)
When I try to have the sum of E4:e14 if b4:b14 is between 151 and 366 I
am
unable to get the criteria written correctly. HELP!
--
Thank you, Kathy


 




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 12:48 AM.


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