#1   Report Post  
toolman
 
Posts: n/a
Default logic test

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  
Peo Sjoblom
 
Posts: n/a
Default

What if K2 is neither yes or no? If K2 is always either yes or no you only
need one test

=IF(K2="yes",H2,J2)

if K2 can be blank

=IF(K2="","",IF(K2="yes",H2,J2))


--
Regards,

Peo Sjoblom

(No private emails please)


"toolman" wrote in message
...
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"?


  #3   Report Post  
toolman
 
Posts: n/a
Default

Thanks so much! This was driving me cazy!

"Peo Sjoblom" wrote:

What if K2 is neither yes or no? If K2 is always either yes or no you only
need one test

=IF(K2="yes",H2,J2)

if K2 can be blank

=IF(K2="","",IF(K2="yes",H2,J2))


--
Regards,

Peo Sjoblom

(No private emails please)


"toolman" wrote in message
...
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
logic test toolman Excel Discussion (Misc queries) 2 October 8th 05 01:37 PM
logic test toolman New Users to Excel 1 October 8th 05 05:19 AM
hpw do I logic test a cell then copy the row to diff. SS Debi Excel Worksheet Functions 4 October 5th 05 09:42 PM
Logic question ACDenver Excel Discussion (Misc queries) 1 August 16th 05 04:29 AM
Can wildcards be used in the Logic Test of an Excel "IF" function? Monte Excel Worksheet Functions 3 August 15th 05 01:25 PM


All times are GMT +1. The time now is 08:25 PM.

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

About Us

"It's about Microsoft Excel"