Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default How do a create a conditional formula in Excel?

I want to create a column that enters an amount automatically based on the
amount in the same row adjacent to this column. ie.) IF D430, enter 30 in
E4. and IF D4<0, enter 0 in E4, and if D4 is between 0 and 30, copy that
amount to E4. Sorry I'm so ignorant in Excel but I'm still learning. This
has to be an easy formula to create, I just don't know how. Any help out
there?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default How do a create a conditional formula in Excel?

=IF(D4="","",MAX(MIN(30,D4),0))

This assumes that D4 is either blank, or will have a number in it.
--
John C


"Danno" wrote:

I want to create a column that enters an amount automatically based on the
amount in the same row adjacent to this column. ie.) IF D430, enter 30 in
E4. and IF D4<0, enter 0 in E4, and if D4 is between 0 and 30, copy that
amount to E4. Sorry I'm so ignorant in Excel but I'm still learning. This
has to be an easy formula to create, I just don't know how. Any help out
there?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default How do a create a conditional formula in Excel?

perhaps you should look up "IF" in Excel Help, and review the examples
provided. That will help you understand the way to do it.

Danno wrote:
I want to create a column that enters an amount automatically based on the
amount in the same row adjacent to this column. ie.) IF D430, enter 30 in
E4. and IF D4<0, enter 0 in E4, and if D4 is between 0 and 30, copy that
amount to E4. Sorry I'm so ignorant in Excel but I'm still learning. This
has to be an easy formula to create, I just don't know how. Any help out
there?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default How do a create a conditional formula in Excel?

Actually, this one is much cleaner.
=MIN(MAX(D4,0),30)
--
John C


"Danno" wrote:

I want to create a column that enters an amount automatically based on the
amount in the same row adjacent to this column. ie.) IF D430, enter 30 in
E4. and IF D4<0, enter 0 in E4, and if D4 is between 0 and 30, copy that
amount to E4. Sorry I'm so ignorant in Excel but I'm still learning. This
has to be an easy formula to create, I just don't know how. Any help out
there?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default How do a create a conditional formula in Excel?

Thanks a bunch guys! All of them work great so I'll just use the simplest
form. Thanks John!

"John C" wrote:

Actually, this one is much cleaner.
=MIN(MAX(D4,0),30)
--
John C


"Danno" wrote:

I want to create a column that enters an amount automatically based on the
amount in the same row adjacent to this column. ie.) IF D430, enter 30 in
E4. and IF D4<0, enter 0 in E4, and if D4 is between 0 and 30, copy that
amount to E4. Sorry I'm so ignorant in Excel but I'm still learning. This
has to be an easy formula to create, I just don't know how. Any help out
there?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default How do a create a conditional formula in Excel?

You are welcome, and thanks for the feedback.
--
John C


"Danno" wrote:

Thanks a bunch guys! All of them work great so I'll just use the simplest
form. Thanks John!

"John C" wrote:

Actually, this one is much cleaner.
=MIN(MAX(D4,0),30)
--
John C


"Danno" wrote:

I want to create a column that enters an amount automatically based on the
amount in the same row adjacent to this column. ie.) IF D430, enter 30 in
E4. and IF D4<0, enter 0 in E4, and if D4 is between 0 and 30, copy that
amount to E4. Sorry I'm so ignorant in Excel but I'm still learning. This
has to be an easy formula to create, I just don't know how. Any help out
there?

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default How do a create a conditional formula in Excel?

try this

in E4 put this formula
=IF(D430,30,IF(D4<0,0,IF(AND(D4=0,D4<=30),D4,"") ))




On Oct 15, 11:49*pm, Danno wrote:
I want to create a column that enters an amount automatically based on the
amount in the same row adjacent to this column. *ie.) *IF D430, enter 30 in
E4. and IF D4<0, enter 0 in E4, and if D4 is between 0 and 30, copy that
amount to E4. *Sorry I'm so ignorant in Excel but I'm still learning. *This
has to be an easy formula to create, I just don't know how. *Any help out
there? *


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
Create a conditional formula that results in another calculation dyrret Excel Worksheet Functions 11 March 19th 17 09:34 PM
Create a conditional formula to replace dot Excel Worksheet Functions 2 April 24th 06 01:35 PM
NEED TO CREATE A CONDITIONAL FORMULA SB Excel Worksheet Functions 1 February 15th 06 10:53 PM
create a conditional formula Matt H. Excel Worksheet Functions 1 October 9th 05 03:57 AM
how to create a multiple conditional formula Ad Buijs Excel Discussion (Misc queries) 3 April 20th 05 09:41 PM


All times are GMT +1. The time now is 05:32 AM.

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"