A Microsoft Office (Excel, Word) forum. OfficeFrustration

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   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

If statement in excel



 
 
Thread Tools Display Modes
  #1  
Old April 24th, 2010, 07:55 AM posted to microsoft.public.excel.misc
siva
external usenet poster
 
Posts: 3
Default If statement in excel

Folks-

I need your help in preparing an evaluation sheet...

A B

1 Total 75
2 Completed task A Yes
3 Completed task B Yes
4 Completed task C Yes

5 Total score based on task X


Given above is an example of how the sheet looks consider A as the row
and the numbers in the side as coloumn.

B1 has the value of the total score by measuring some other tasks. But
B5 will contain the actual score of an individual after measuring the
3 main task mentioned in A2, A3, A4.

I want the Total score in B5 to be reduced by 25 if any one value in
A2 or A3 or A4 is changed to "NO"

For example if all A2, A3, A4 or selected as "NO", the total score
should be reduced by 75.

Please help me out in getting a formula to be put in B5.

Thanks,
Sivaji
  #2  
Old April 24th, 2010, 08:18 AM posted to microsoft.public.excel.misc
johnnykunst
external usenet poster
 
Posts: 3
Default If statement in excel

I'm not clear on the layout- if collumn b contains a Yes or No, and b 5 is the result you need this:
=B3-((COUNTIF(B4:B6,"No")*25))

If A2:A3 contains not just the yes or no but the whole text, then you need this:
=B3-((COUNTIF(B4:B6,"*No*")*25))

---
frmsrcurl: http://msgroups.net/microsoft.public...ement-in-excel
  #3  
Old April 24th, 2010, 09:41 AM posted to microsoft.public.excel.misc
siva
external usenet poster
 
Posts: 3
Default If statement in excel

On Apr 24, 2:18*am, johnnykunst / wrote:
I'm not clear on the layout- if collumn b contains a Yes or No, and b 5 is the result you need this:
=B3-((COUNTIF(B4:B6,"No")*25))

If A2:A3 contains not just the yes or no but the whole text, then you need this:
=B3-((COUNTIF(B4:B6,"*No*")*25))

---
frmsrcurl:http://msgroups.net/microsoft.public...ement-in-excel


Hi Buddy,

Thanks a lot for your help... You gave me exactly want i want... It's
working awesome...

Once again thanks a lot for your formula.

Thank u,
Sivaji
  #4  
Old June 1st, 2010, 12:58 PM posted to microsoft.public.excel.misc
johnnykunst
external usenet poster
 
Posts: 3
Default If statement in excel

Glad it's working for you- I've had lots of help on here learning VBA so I'm more than happy to put something back.
Cheers, John

---
frmsrcurl: http://msgroups.net/microsoft.public...ement-in-excel
 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:51 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.