If - Then formula

M

Mr. McNeill

Hello I'm trying to create a If formula that will count a total if I enter
yes into a cell, but if I enter no into a cell, I need the amount that is
counted to be distributed equally throughout a variety of cells..

EX: for 10 cells total amount is 100. If yes is entered into cell beside it
the formula counts the cell as 10 if. No the formula counts as 0, and if N/A
is entered the formula counts as .11 for the remaining 9 cells used.

Any help would be greatly appreciated!!!
 
P

PCLIVE

Maybe something like this:

=(COUNTIF(B1:B10,"Yes")*10)+(COUNT(ISNA(B1:B10))*11)

HTH,
Paul
 
M

Mr. McNeill

I tried to ammend my spreadsheet with the formula you gave me and for some
reason I keep coming up with a value of 111 when yes is entered and 101 when
no is entered? Also the other cells do not receive any increase in the
formula? Thanks for all the help!!!!
 
P

PCLIVE

What column will it show "yes", "no", or "N/A". I assumed it was column B.
I just realized (I think) my mistake or assumption of your "N/A" reference.
I assumed your "N/A" was not an entered value rather an error that displays
#N/A. Are these "N/A"s the result of a formula?...or are they actually
typed in?

Try this one.

=(COUNTIF(B1:B10,"Yes")*10)+(COUNTIF(B1:B10,"N/A")*11)


--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

CountIf previous cell formula 0
Odd problem with formula counting Yes and No 5
COUNTA Function 6
Count cell A1 only if cell B2 = Yes 2
Formula Issues 6
Excel Average dates help 0
Excel Sumproduct 0
COUNT function 2

Top