Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
sed sed is offline
external usenet poster
 
Posts: 24
Default if then statement... can't make it work:S

i need some help trying to write a formula that states the following:
if a1 is greater than -5.01 and less than 5.01 then 1, 0
Thank you

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default if then statement... can't make it work:S

=IF(ABS(A1)<5.01,1,0)
or
=ABS(A1)<5.01

Hope this helps.
--
John C


"sed" wrote:

i need some help trying to write a formula that states the following:
if a1 is greater than -5.01 and less than 5.01 then 1, 0
Thank you

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default if then statement... can't make it work:S

Look in the help index for AND

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"sed" wrote in message
...
i need some help trying to write a formula that states the following:
if a1 is greater than -5.01 and less than 5.01 then 1, 0
Thank you


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default if then statement... can't make it work:S

Try

=IF(AND(A1-5.01,A1<5.01),1,0)

Mike

"sed" wrote:

i need some help trying to write a formula that states the following:
if a1 is greater than -5.01 and less than 5.01 then 1, 0
Thank you

  #5   Report Post  
Posted to microsoft.public.excel.misc
sed sed is offline
external usenet poster
 
Posts: 24
Default if then statement... can't make it work:S

Thanks again John!
--
sss


"John C" wrote:

=IF(ABS(A1)<5.01,1,0)
or
=ABS(A1)<5.01

Hope this helps.
--
John C


"sed" wrote:

i need some help trying to write a formula that states the following:
if a1 is greater than -5.01 and less than 5.01 then 1, 0
Thank you



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default if then statement... can't make it work:S

=IF(A1=5.01,1,0)


On Oct 15, 5:52*pm, sed wrote:
i need some help trying to write a formula that states the following:
if *a1 is greater than -5.01 and less than 5.01 then 1, 0
Thank you


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default if then statement... can't make it work:S

Thanks for the feedback, and don't forget to check the little YES box below :)
--
John C


"sed" wrote:

Thanks again John!
--
sss


"John C" wrote:

=IF(ABS(A1)<5.01,1,0)
or
=ABS(A1)<5.01

Hope this helps.
--
John C


"sed" wrote:

i need some help trying to write a formula that states the following:
if a1 is greater than -5.01 and less than 5.01 then 1, 0
Thank you

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
I can not seem to get my IF / AND statement to work, help please petester Excel Discussion (Misc queries) 3 October 15th 07 05:29 PM
Make table query will work in datasheet view but will not make tab WildlyHarry Excel Discussion (Misc queries) 0 August 28th 07 03:06 PM
Anyone actually get Case statement to work ... ? ForestFeeder Excel Worksheet Functions 3 April 21st 06 04:14 PM
How can i make this work within an IF statement: (41<=Cell<=46) velopoav New Users to Excel 3 April 11th 05 02:15 AM
Spin button in a work sheet - how do I make it work? [email protected] Excel Worksheet Functions 1 April 7th 05 08:43 PM


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