Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default If statement help

I am trying to work something out with an "IF" statement.

=IF(D2<E2,"40","")

What I'm trying to make it do is that if D2 is less than E2 I want it
to put the value already in E2 in the new cell instead of 40.

What do i put in the second "" to make it list the E2 number?

I apologize if this is simple but I am trying to teach myself this
stuff and am having problems.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default If statement help

=IF ( D2<E2, 40, E2)


"Morlin" wrote in message
...
I am trying to work something out with an "IF" statement.

=IF(D2<E2,"40","")

What I'm trying to make it do is that if D2 is less than E2 I want it
to put the value already in E2 in the new cell instead of 40.

What do i put in the second "" to make it list the E2 number?

I apologize if this is simple but I am trying to teach myself this
stuff and am having problems.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,059
Default If statement help

"Morlin" wrote:
I am trying to work something out with an "IF" statement.
=IF(D2<E2,"40","")


First, I suspect that should be:

=if(D2<E2, 40, "")

"40" with quotes is text, whereas 40 without quote is a number. Of course,
you might intend the text "40"; but that is unusual.


What I'm trying to make it do is that if D2 is less than E2 I want
it to put the value already in E2 in the new cell instead of 40.
What do i put in the second "" to make it list the E2 number?


If I understand you correctly:

=if(D2<E2, E2, "")

Alternatively, perhaps the formula you are looking for is:

=if(D2<E2, E2, 40)

That returns 40 if D2 is not less than E2. I'm not sure of your intentions.


----- original message ------

"Morlin" wrote in message
...
I am trying to work something out with an "IF" statement.

=IF(D2<E2,"40","")

What I'm trying to make it do is that if D2 is less than E2 I want it
to put the value already in E2 in the new cell instead of 40.

What do i put in the second "" to make it list the E2 number?

I apologize if this is simple but I am trying to teach myself this
stuff and am having problems.


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
IF statement inside a SUMIF statement.... or alternative method Sungibungi Excel Worksheet Functions 3 December 4th 09 06:22 PM
Reconcile Bank statement & Credit card statement & accounting data Bklynhyc Excel Worksheet Functions 0 October 7th 09 09:07 PM
Embedding an OR statement in an IF statement efficiently Chatnoir11 Excel Discussion (Misc queries) 4 February 2nd 09 08:12 PM
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM


All times are GMT +1. The time now is 07:40 PM.

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"