Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel IF Statement

Status
Not open for further replies.

Lee24

Programmer
Apr 11, 2001
103
GB
Hi Guys,

Trying to come up with a formula that will........

I have targets

Target 1 = 15
Target 2 = 20
Target 3 = 30
Target 4 = 10
Target 5 = 25

What I want to be able to do is that when Target 1 is complete I put a yes in the cell beside it and there is a total amount complete cell at the bottom that will give the total amount of targets complete like...


Total would be 15 then 35, then 65 etc etc

Thanks




 




Hi,

"Target 1 is complete ..."

based on WHAT?

Please explain WHAT on your sheet indicates when each target is complete.

Please be clear, concise and complete.

Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Ok

Target Value Complete

1 15 Y
2 15 Y
3 15
4 15
5 40


Total 30

So when I manually enter a Y in the 3rd column the total increases in this case would be 30
 



Use the SUMIF function.

Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Skip can you please give me an example? I have tried various attempts but fail each one

Much Appreciated

 



What have you tried?

Please explain what ranges your data is in.

Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
try =SUMIF(C2:C6,"Y",B2:B6) for the example, then just alter the 2 ranges to suit your data (remember they need to cover the same number of rows)
 



If you post the formula that you tried to use and explain the ranges you have on your sheet, you will get some help.

Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Still lost....

All I am asking for is some help so third time lucky

Can someone point me in the direction of how sumif helps but if its too much of an issue just forget it...

However thanks for the help and example of sumif from jlf81
 


Lee,

This is not rocket science. It's Excel101. You have an example. You have been asked to post how you are using and explain your ranges. If you do so, you'll get some SPECIFIC help.

If you cannot do that, maybe you ought to get some help from your company help desk, read a How-To book or take a course in Elementary Excel.

Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 


Can someone point me in the direction of how sumif helps...
Have you tried your F1 key?


Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top