Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
toolman
 
Posts: n/a
Default 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   Report Post  
B. R.Ramachandran
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Highest Score for each Test abqhusker Excel Worksheet Functions 4 October 8th 05 06:25 PM
Calculating p-value from Fisher's Exact Test Ian Smith Excel Worksheet Functions 1 September 28th 05 08:00 PM
How to change the return of a textbox from TRUE/FALSE to YES/NO? Gldenboy2 Excel Discussion (Misc queries) 2 June 24th 05 11:30 PM
Excel competency test jonesr2 Excel Discussion (Misc queries) 2 March 14th 05 09:37 PM
=IF logical test to search only part of a cell Robbie in Houston Excel Worksheet Functions 2 March 5th 05 05:09 AM


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

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

About Us

"It's about Microsoft Excel"