Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ADK ADK is offline
external usenet poster
 
Posts: 89
Default IF, between two numbers

How would I use and if statement based on between two numbers??

Example---

For cell A6: IF A5 is between .99 and 5, 1, 0

A5 = .25 ....so A6 is 0

A5 = 1 ......so A6 is 1

A5 = 4 .....so A6 is 1

A5 = 5 ......so A6 is 0

A5 = 6 ......so A6 is 0

----------------------------------

ALSO, have one: IF A5 is equal to 1 or between 1 and 5, but not equal or
more than 5?

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 772
Default IF, between two numbers

Several ways, but try this one
=IF(A6=1,IF(A6<5,1,0),0)
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"ADK" wrote:

How would I use and if statement based on between two numbers??

Example---

For cell A6: IF A5 is between .99 and 5, 1, 0

A5 = .25 ....so A6 is 0

A5 = 1 ......so A6 is 1

A5 = 4 .....so A6 is 1

A5 = 5 ......so A6 is 0

A5 = 6 ......so A6 is 0

----------------------------------

ALSO, have one: IF A5 is equal to 1 or between 1 and 5, but not equal or
more than 5?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default IF, between two numbers

=--AND(A50.99,A5<5)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"ADK" wrote in message
...
How would I use and if statement based on between two numbers??

Example---

For cell A6: IF A5 is between .99 and 5, 1, 0

A5 = .25 ....so A6 is 0

A5 = 1 ......so A6 is 1

A5 = 4 .....so A6 is 1

A5 = 5 ......so A6 is 0

A5 = 6 ......so A6 is 0

----------------------------------

ALSO, have one: IF A5 is equal to 1 or between 1 and 5, but not equal or
more than 5?

Thanks



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
Excel 2002 : Convert Positive Numbers to Negative Numbers ? Mr. Low Excel Discussion (Misc queries) 2 November 6th 06 03:30 PM
Excel Formula - Add column of numbers but ignore negative numbers view for Distribution List members Excel Worksheet Functions 1 April 7th 06 03:13 AM
VLOOKUP should compare numbers stored as text to plain numbers. VLOOKUP - Numbers stored as text Excel Worksheet Functions 0 March 31st 06 05:53 PM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 3 January 19th 06 09:52 AM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 1 January 9th 06 01:23 PM


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