Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Aajaxx
 
Posts: n/a
Default If Then formula - Should be easy!?!


I want to do something that should be very easy, but its not working.
Perhaps you experts can help. =)

I would like to do the following:
IF F5 is greater than 3999 then 10,
IF F5 is less than 2500 then -10,
IF F5 is blank then blank

***A5 is the cell of course***

I've tried these two formulas but they keep coming back with -10 if the
cell is blank.

=IF((F53999),10,IF((F5<2500),-10,IF((F5=""),"","")

and

=IF(F53999),10, IF(F5<2500),-10,IF(F5=""),"","")))

Thank you, thank you, thank you-
Aajaxx


--
Aajaxx
------------------------------------------------------------------------
Aajaxx's Profile: http://www.excelforum.com/member.php...o&userid=31129
View this thread: http://www.excelforum.com/showthread...hreadid=507950

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default If Then formula - Should be easy!?!

What should happen between 2500 and 3999?

=IF(F5="","",IF(F5<2500,-10,IF(F53999,10,"whathappenshere")))

Aajaxx wrote:

I want to do something that should be very easy, but its not working.
Perhaps you experts can help. =)

I would like to do the following:
IF F5 is greater than 3999 then 10,
IF F5 is less than 2500 then -10,
IF F5 is blank then blank

***A5 is the cell of course***

I've tried these two formulas but they keep coming back with -10 if the
cell is blank.

=IF((F53999),10,IF((F5<2500),-10,IF((F5=""),"","")

and

=IF(F53999),10, IF(F5<2500),-10,IF(F5=""),"","")))

Thank you, thank you, thank you-
Aajaxx

--
Aajaxx
------------------------------------------------------------------------
Aajaxx's Profile: http://www.excelforum.com/member.php...o&userid=31129
View this thread: http://www.excelforum.com/showthread...hreadid=507950


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Pete
 
Posts: n/a
Default If Then formula - Should be easy!?!

Try this variation:

=IF(F53999,10,IF(F5<2500,-10,IF(F5="","","none")))

I've added "none" to help you test it out - you can easily change back
to "" when you are satisfied that it works.

Hope this helps.

Pete

  #4   Report Post  
Posted to microsoft.public.excel.misc
Fred Smith
 
Posts: n/a
Default If Then formula - Should be easy!?!

A blank is less than 2500, that's why you're getting the -10 result. Put the
test for blank first, as in:

=if(f5="","",if( ...

--
Regards,
Fred


"Aajaxx" wrote in message
...

I want to do something that should be very easy, but its not working.
Perhaps you experts can help. =)

I would like to do the following:
IF F5 is greater than 3999 then 10,
IF F5 is less than 2500 then -10,
IF F5 is blank then blank

***A5 is the cell of course***

I've tried these two formulas but they keep coming back with -10 if the
cell is blank.

=IF((F53999),10,IF((F5<2500),-10,IF((F5=""),"","")

and

=IF(F53999),10, IF(F5<2500),-10,IF(F5=""),"","")))

Thank you, thank you, thank you-
Aajaxx


--
Aajaxx
------------------------------------------------------------------------
Aajaxx's Profile:
http://www.excelforum.com/member.php...o&userid=31129
View this thread: http://www.excelforum.com/showthread...hreadid=507950



  #5   Report Post  
Posted to microsoft.public.excel.misc
Aajaxx
 
Posts: n/a
Default If Then formula - Should be easy!?!


In between 2501 - 3999 the value is 0.

Good question, sometimes you forget the obvious.


--
Aajaxx
------------------------------------------------------------------------
Aajaxx's Profile: http://www.excelforum.com/member.php...o&userid=31129
View this thread: http://www.excelforum.com/showthread...hreadid=507950



  #6   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default If Then formula - Should be easy!?!

On Thu, 2 Feb 2006 20:19:47 -0600, Aajaxx
wrote:


In between 2501 - 3999 the value is 0.

Good question, sometimes you forget the obvious.



=IF(F5="","",HLOOKUP(F5,{-1E+307,2500,4000;-10,0,10},2))


--ron
  #7   Report Post  
Posted to microsoft.public.excel.misc
Dana DeLouis
 
Posts: n/a
Default If Then formula - Should be easy!?!

Perhaps another version if thought of as a signal pulse...

=IF(A1="","",10*((A13900)+(A1=2500)-1))

--
HTH. :)
Dana DeLouis
Windows XP, Office 2003


"Aajaxx" wrote in
message ...

In between 2501 - 3999 the value is 0.

Good question, sometimes you forget the obvious.


--
Aajaxx
------------------------------------------------------------------------
Aajaxx's Profile:
http://www.excelforum.com/member.php...o&userid=31129
View this thread: http://www.excelforum.com/showthread...hreadid=507950



  #8   Report Post  
Posted to microsoft.public.excel.misc
Aajaxx
 
Posts: n/a
Default If Then formula - Should be easy!?!


This was presented to me and it works like a charm!

=IF(ISBLANK(F5),"",IF(F53999,10,IF(F5<2500,-10,0)))

Thanks everyone for your help. I really appreciated it.

AJ


--
Aajaxx
------------------------------------------------------------------------
Aajaxx's Profile: http://www.excelforum.com/member.php...o&userid=31129
View this thread: http://www.excelforum.com/showthread...hreadid=507950

  #9   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default If Then formula - Should be easy!?!

Try:

=IF(F5="","",IF(F53999,10,IF(F5<2500,-10,"")))

cell will be left blank if F5 is between 2500 and 3999

HTH
JG

"Aajaxx" wrote:


I want to do something that should be very easy, but its not working.
Perhaps you experts can help. =)

I would like to do the following:
IF F5 is greater than 3999 then 10,
IF F5 is less than 2500 then -10,
IF F5 is blank then blank

***A5 is the cell of course***

I've tried these two formulas but they keep coming back with -10 if the
cell is blank.

=IF((F53999),10,IF((F5<2500),-10,IF((F5=""),"","")

and

=IF(F53999),10, IF(F5<2500),-10,IF(F5=""),"","")))

Thank you, thank you, thank you-
Aajaxx


--
Aajaxx
------------------------------------------------------------------------
Aajaxx's Profile: http://www.excelforum.com/member.php...o&userid=31129
View this thread: http://www.excelforum.com/showthread...hreadid=507950


  #10   Report Post  
Posted to microsoft.public.excel.misc
Aajaxx
 
Posts: n/a
Default If Then formula - Should be easy!?!


Thank you everyone for your help.

I got the formula that works perfect.

=IF(ISBLANK(F5),"",IF(F53999,10,IF(F5<2500,-10,0)))

The key was the ISBLANK.

The spreadsheet works perfect now.

Thanks again-
AJ


--
Aajaxx
------------------------------------------------------------------------
Aajaxx's Profile: http://www.excelforum.com/member.php...o&userid=31129
View this thread: http://www.excelforum.com/showthread...hreadid=507950

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
Is it possible? DakotaNJ Excel Worksheet Functions 25 September 18th 06 09:30 PM
Easy formula, but need help please TxJprs Excel Worksheet Functions 4 August 1st 05 05:52 PM
Easy Formula Question - if you know how! Anthony Excel Discussion (Misc queries) 5 July 31st 05 10:37 PM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
I there an easy way to find out if any formula reference a cell? Marc New Users to Excel 1 December 6th 04 10:41 PM


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