Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ragnar
 
Posts: n/a
Default IF statement

In excel If 2 columns have an equal value I want a 3rd column to display the
value from a 4th column, what is the syntax for this?
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

C1: =IF(A1=B1,D1,"")

In article ,
Ragnar wrote:

In excel If 2 columns have an equal value I want a 3rd column to display the
value from a 4th column, what is the syntax for this?

  #3   Report Post  
Sandy Mann
 
Posts: n/a
Default

Ragnar,

You don't say what you want if the values are not equal but the general
syntax for an IF statement is:

=IF(test, Do if test true, Do if test not true)
so in your case that would be:

=If(1st Column Value=2nd Column Value,Value from 3rd Column,Result if not
equal)

One caveat is if the 1st and 2nd values are determined by a calculation they
may differ by just a very small amount which would sop them being equal and
so you may have to round them before comparing.

HTH

Sandy

--
to e-mail direct replace @mailintor.com with @tiscali.co.uk


"Ragnar" wrote in message
...
In excel If 2 columns have an equal value I want a 3rd column to display

the
value from a 4th column, what is the syntax for this?



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
Excel Report Using IF Statement? Marc Excel Discussion (Misc queries) 3 January 11th 05 07:38 AM
IF Statement with Average Function results in #Value! Paul Excel Discussion (Misc queries) 5 December 28th 04 08:11 AM
when writing an IF statement what is the syntax for "Not Equal to. NEEDTOKNOW Excel Discussion (Misc queries) 1 December 10th 04 04:45 PM
Macro and If Statement SATB Excel Discussion (Misc queries) 2 December 3rd 04 04:46 PM
=IF statement Dick Excel Discussion (Misc queries) 10 November 27th 04 02:47 PM


All times are GMT +1. The time now is 02:41 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"