Home |
Search |
Today's Posts |
#1
|
|||
|
|||
if test using true/false or yes/no
What formula would I use to say: [M2] = [H2] if [K2=yes], [M2] = [J2] if
[K2=no], when cells [M2], [H2], and [J2] are dollar amounts, and [K2] is actually the word "yes" or "no"? |
#2
|
|||
|
|||
Hi,
If K2 always contains either "yes" or "no" (i.e., never empty), enter the following formula in M2 =IF(K2="yes",H2,J2) If K2 can also be empty at times and if you do not want to have any answer in K2 in such a situation, use the formula, =IF(K2="yes",H2,IF(K2="no",J2,"")) In either case, format M2 to 'currency'. Regards, B. R. Ramachandran "toolman" wrote: What formula would I use to say: [M2] = [H2] if [K2=yes], [M2] = [J2] if [K2=no], when cells [M2], [H2], and [J2] are dollar amounts, and [K2] is actually the word "yes" or "no"? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Highest Score for each Test | Excel Worksheet Functions | |||
Calculating p-value from Fisher's Exact Test | Excel Worksheet Functions | |||
How to change the return of a textbox from TRUE/FALSE to YES/NO? | Excel Discussion (Misc queries) | |||
Excel competency test | Excel Discussion (Misc queries) | |||
=IF logical test to search only part of a cell | Excel Worksheet Functions |