N/A conditional field exclusion from simple formula?

pwrisley

New Member
Joined
May 30, 2018
Messages
12
What seems simple, is driving me crazy :biggrin:. In short, cell A4 contains conditional survey responses of YES, NO, N/A and the below formula then multiplies a weighting from cell F4 to compute a raw score in the cell. My problem is when N/A is selected in the dropdown in A4, it is treating it as a 0. Is there a way to NOT include N/A at all and only assign the typical Yes a 1 and No a 0? Sorry for the newbie question, learning is a process, ha-ha.

=IF(A4="Yes",1,0)*NUMBERVALUE(LEFT(F4,2))
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
When I insert the formula in the above post #5 in H4, it leaves the cell blank, but it is still computing as if it is a NO response in the math/formula? I need a N/A response in A4 to not equal 1 or 0, essentially, I need an N/A response in A4 to equal nothing if that is possible.
 
Upvote 0
I found a solution I believe.... I input a "1" in cell A39 and directed a nested IF statement to look at that cell when N/A is selected in the data validation in cell A4. It seems to work for what I need. Thank you so much for helping, your direction certainly helped with finding a way around the issue. Here is the formula in H4 that works for me and I can copy and paste down from there and the calc works the way I need.

=IF(A4="Yes",1,IF(A4="No",0,IF(A4="n/a",$A$39,0)))*NUMBERVALUE(LEFT(F4,2))
 
Upvote 0
Just a logic note:

For a computer, a 0 is a nothing, so in reading "n/a" as a 0 mathematically, it is doing what you are asking. :)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top