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  dBforums > PC based Database Applications > Microsoft Excel > Sum With If Condition

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-02-08, 04:56
sanjaylml sanjaylml is offline
Registered User
 
Join Date: May 2008
Posts: 48
Sum With If Condition

I have a statement, in which, against four quarters, their target vs. achievement figures along with total target & achivement are appearing like as below

Quarter-1 Quarter-2 Quarter-3 Quarter-4 Total
Tgt. Ach Tgt. Ach Tgt. Ach Tgt. Ach Tgt. Ach

15 10 12 0 22 0 18 14

Now, I want to sum the computed target of all four quarters in Total column where corresponding achievement is greater than 0. Thus means, from the above example, I want to sum only target of Quarter-1 and Quarter-4 only.

I have tried with the sum with if command, but it does not work if achievement is 0 and returns "FALSE".

Any solution to the above is requested.

Thanking you in advance
Reply With Quote
  #2 (permalink)  
Old 05-05-08, 17:47
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Howdy, and welcome to the board.

You need to use SUMPRODUCT which allows multiple conditions.

See this
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On