#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 144
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default if function help

Use SUMPRODUCT to handle multiple conditions...

=SUMPRODUCT(B1:B14*(B1:B14151)*(B1:B14<366))

--
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 144
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 144
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
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


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
Excel Data Validation/Lookup function does function correcty Kirkey Excel Worksheet Functions 2 May 25th 09 09:22 PM
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM


All times are GMT +1. The time now is 05:53 AM.

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"