Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
ChuckW
 
Posts: n/a
Default IF then statement question

Hi,

I have four cells of data (A1 through D1). I have created an If then
statement where If A1 is less than 500, D1 = B1. I also want to have it so
that If A1 500 then D1=C1. How would I write a formula for this. Can
anyone help?

Thanks


--
Chuck W
  #2   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default IF then statement question

Try something like:

=IF(A1<500,B1,C1)
or
=IF(A1<500,B1,IF(A1500,D1,0))
if A1 = 500 then this formula will return 0, adjust to suit!

HTH
Jean-Guy

"ChuckW" wrote:

Hi,

I have four cells of data (A1 through D1). I have created an If then
statement where If A1 is less than 500, D1 = B1. I also want to have it so
that If A1 500 then D1=C1. How would I write a formula for this. Can
anyone help?

Thanks


--
Chuck W

  #3   Report Post  
Posted to microsoft.public.excel.misc
Rogerio Takejame
 
Posts: n/a
Default IF then statement question

Use two IFs, one to check if A1<500 and the other to check if A1500. Type in
cell D1:

=IF(A1<500, B1, IF(A1500, C1, "A1=500"))

Note that if A1 = 500 the formula will show "A1=500" because you didn't tell
what to do if A1=500. If you say that if A1 is less than or equal to 500,
D1=B1 then the formula is simpler:

=IF(A1<=500, B1, C1)

--
Rogerio Takejame
Americana - Sao Paulo - Brazil


"ChuckW" wrote:

Hi,

I have four cells of data (A1 through D1). I have created an If then
statement where If A1 is less than 500, D1 = B1. I also want to have it so
that If A1 500 then D1=C1. How would I write a formula for this. Can
anyone help?

Thanks


--
Chuck W

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 Question 0 values & blank cells joshmd9909 Excel Worksheet Functions 6 October 10th 05 01:14 PM
If Statement Question redwings04 Excel Worksheet Functions 4 July 4th 05 09:42 PM
IF Statement Question Scott Excel Worksheet Functions 15 June 14th 05 07:56 PM
IF Statement question Patrick Simonds Excel Worksheet Functions 7 May 8th 05 04:03 PM
IF Statement question gryfon Excel Worksheet Functions 6 May 4th 05 09:21 AM


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