Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default sumif does not work

the following sumif does not work

=SUMIF($D$10:$D$17,"Cyear",$E$10:$E$17)*-1

A B C D E
Asset Month Day Year (of purchase) Cost


A - D are formated as general
E is formated as ","
B, C, D also use Validation and pick from a list.
Cyear = the current year

The sumif is located in E at the end of the list.


I have a list of assets purchased frmo 1995 thru 2005. At the bottom of
E I have the total cost. Below that i have the sumif formula. i want
it to total all the assets that have a purchase year greater than the
Cyear.

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default sumif does not work

Just a minor change
"Cyear" "" & Cyear

the first treats it as Text and the second treats it as a Value
--
steveB

Remove "AYN" from email to respond
"Tim Russell" wrote in message
...
the following sumif does not work

=SUMIF($D$10:$D$17,"Cyear",$E$10:$E$17)*-1

A B C D E
Asset Month Day Year (of purchase) Cost


A - D are formated as general
E is formated as ","
B, C, D also use Validation and pick from a list.
Cyear = the current year

The sumif is located in E at the end of the list.


I have a list of assets purchased frmo 1995 thru 2005. At the bottom of
E I have the total cost. Below that i have the sumif formula. i want
it to total all the assets that have a purchase year greater than the
Cyear.

*** Sent via Developersdex http://www.developersdex.com ***



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default sumif does not work

Hi Tim

Try this

=Sumif($D$10:$D$17,""&Cyear,$E$10:$E$17)*-1

hth

J

"Tim Russell" wrote:

the following sumif does not work

=SUMIF($D$10:$D$17,"Cyear",$E$10:$E$17)*-1

A B C D E
Asset Month Day Year (of purchase) Cost


A - D are formated as general
E is formated as ","
B, C, D also use Validation and pick from a list.
Cyear = the current year

The sumif is located in E at the end of the list.


I have a list of assets purchased frmo 1995 thru 2005. At the bottom of
E I have the total cost. Below that i have the sumif formula. i want
it to total all the assets that have a purchase year greater than the
Cyear.

*** Sent via Developersdex http://www.developersdex.com ***

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default sumif does not work

right now you are checking against the string literal "Cyear".

=SUMIF($D$10:$D$17,"2005",$E$10:$E$17)*-1

or if the year is entered in a cell

=SUMIF($D$10:$D$17,"" & cYear,$E$10:$E$17)*-1

where cYear is a single cell Named range.

--
Regards,
Tom Ogilvy


"Tim Russell" wrote in message
...
the following sumif does not work

=SUMIF($D$10:$D$17,"Cyear",$E$10:$E$17)*-1

A B C D E
Asset Month Day Year (of purchase) Cost


A - D are formated as general
E is formated as ","
B, C, D also use Validation and pick from a list.
Cyear = the current year

The sumif is located in E at the end of the list.


I have a list of assets purchased frmo 1995 thru 2005. At the bottom of
E I have the total cost. Below that i have the sumif formula. i want
it to total all the assets that have a purchase year greater than the
Cyear.

*** Sent via Developersdex http://www.developersdex.com ***



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default sumif does not work

I don't understand what your are saying - "Cyear" "" & Cyear.



*** Sent via Developersdex http://www.developersdex.com ***


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default sumif does not work


I figured out what your were saying - ""&CYear.

Thank you for the help!


*** Sent via Developersdex http://www.developersdex.com ***
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default sumif does not work

Why multiply by -1, why not just negate it.

=-SUMIF($D$10:$D$17,""&cYear,$E$10:$E$17)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Tim Russell" wrote in message
...
the following sumif does not work

=SUMIF($D$10:$D$17,"Cyear",$E$10:$E$17)*-1

A B C D E
Asset Month Day Year (of purchase) Cost


A - D are formated as general
E is formated as ","
B, C, D also use Validation and pick from a list.
Cyear = the current year

The sumif is located in E at the end of the list.


I have a list of assets purchased frmo 1995 thru 2005. At the bottom of
E I have the total cost. Below that i have the sumif formula. i want
it to total all the assets that have a purchase year greater than the
Cyear.

*** Sent via Developersdex http://www.developersdex.com ***



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
SumIf will not work in this case Need help with sumif Excel Discussion (Misc queries) 11 November 11th 08 09:35 AM
SUMIF Won't Work for Me abrake Excel Worksheet Functions 2 February 4th 07 08:06 PM
enter doesn't work with sumif Infrascanner Excel Worksheet Functions 1 January 27th 06 04:32 PM
How do I use ">$E$5" as the criteria using SUMIF and have it work. Lisa Excel Worksheet Functions 4 December 16th 04 04:15 PM
sumif with different rows won't work!? elmer Excel Programming 3 April 22nd 04 04:17 AM


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