Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Location: Chicagoland
Posts: 6
Default IF Statement Reading Zero's

If a number in cell AX2 is between -5 and 10, I want there to be “10” in cell AS2, but for some reason if AX2 is a “0”, a “0” is placed in the cell and not “10.”

The formula I am using is: =IF(AND(AX2-5,AX2<10)*AX2,10,0)

Thank You for any help/insight that can be provided.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default IF Statement Reading Zero's

Hi Michael,

Am Tue, 28 May 2013 16:22:27 +0100 schrieb MichaelPK:

If a number in cell AX2 is between -5 and 10, I want there to be “10” in
cell AS2, but for some reason if AX2 is a “0”, a “0” is placed in the
cell and not “10.”


try:
=AND(AX2-6,AX2<11)*10
or
=IF(AND(AX2-6,AX2<11),10,"")


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Junior Member
 
Location: Chicagoland
Posts: 6
Default

Quote:
Originally Posted by MichaelPK View Post
If a number in cell AX2 is between -5 and 10, I want there to be “10” in cell AS2, but for some reason if AX2 is a “0”, a “0” is placed in the cell and not “10.”

The formula I am using is: =IF(AND(AX2-5,AX2<10)*AX2,10,0)

Thank You for any help/insight that can be provided.
The solution: Remove the *AX2
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
Reading XML Ajit Excel Discussion (Misc queries) 1 October 2nd 07 10:54 PM
reading xls from asp mrweb Excel Programming 0 October 20th 03 08:54 PM
sub for reading Fernando Duran Excel Programming 4 September 15th 03 07:52 PM


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