#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default sumifs problem

I'm having a problem with a sumifs function. When I use this formula:

=SUMIFS(Data!K2:K5000,Data!D2:D5000,"=40001",Data! A2:A5000,Summary!$B10)

where K2:K5000 is the value column, D2:D5000 are cost elements (cells
formatted as text in case this makes a difference) and A2:A5000 are Project
Numbers

The formula runs correctly and I get a sum of the amounts that have the cost
element of 40001 for the project number referenced in B10.

When I change this formula to:

=SUMIFS(Data!K2:K5000,Data!D2:D5000,"<40001",Data !A2:A5000,Summary!$B10)

I get a total of all cost elements within the referenced project whether the
cost element is 40001 or not.

What am I doing wrong?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default sumifs problem

SUMIFS and COUNTIFS (like SUMIF and COUNTIF) evaluate TEXT numbers and
NUMERIC numbers as being equal. So, you have to force the criteria to be
evaluated as TEXT. Try this:

=SUMIFS(Data!K2:K5000,Data!D2:D5000,"<40001*",Dat a!A2:A5000,Summary!$B10)


--
Biff
Microsoft Excel MVP


"Chesil" wrote in message
...
I'm having a problem with a sumifs function. When I use this formula:

=SUMIFS(Data!K2:K5000,Data!D2:D5000,"=40001",Data! A2:A5000,Summary!$B10)

where K2:K5000 is the value column, D2:D5000 are cost elements (cells
formatted as text in case this makes a difference) and A2:A5000 are
Project
Numbers

The formula runs correctly and I get a sum of the amounts that have the
cost
element of 40001 for the project number referenced in B10.

When I change this formula to:

=SUMIFS(Data!K2:K5000,Data!D2:D5000,"<40001",Data !A2:A5000,Summary!$B10)

I get a total of all cost elements within the referenced project whether
the
cost element is 40001 or not.

What am I doing wrong?

Thanks



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
SUMIFS MurrayBarn Excel Worksheet Functions 4 June 15th 09 08:02 AM
Using Sumifs tomferrin Excel Worksheet Functions 3 April 7th 09 06:40 PM
Sumifs & Not Like Cow Girl Excel Discussion (Misc queries) 6 March 13th 09 08:34 PM
Sumifs David Excel Discussion (Misc queries) 9 January 27th 09 05:20 AM
SUMIFS Formula Problem Keith Excel Discussion (Misc queries) 5 August 2nd 07 09:41 PM


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