Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Compare Two Numbers, See if a third cell stays between the first

I want to put two numbers in separate cell. Then I would like to see if a
third cell
stays between the first two cells. If it does not, then I would like to be
notified,
(warning) in some way.
p.s. I am NOT an excel beginner. I use formulas all the time.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 196
Default Compare Two Numbers, See if a third cell stays between the first

Assuming boundary numbers in A1 and A2 and he third number in A3 then
maybe in another cell:

=IF(AND(A3=MIN(A1:A2),A3<=MAX(A1:A2)),"","Out of bounds!")

Hope this is the kind of thing you wanted.


rocks256 wrote:

I want to put two numbers in separate cell. Then I would like to see if a
third cell
stays between the first two cells. If it does not, then I would like to be
notified,
(warning) in some way.
p.s. I am NOT an excel beginner. I use formulas all the time.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Compare Two Numbers, See if a third cell stays between the first

OK, so if the cells to evaluate are A1 and A2, and the test cell is A3, how's
this?

=if(OR(AND(A1A3,A2<A3),AND(A1<A3,A2A3)),"Warning ","")


"rocks256" wrote:

I want to put two numbers in separate cell. Then I would like to see if a
third cell
stays between the first two cells. If it does not, then I would like to be
notified,
(warning) in some way.
p.s. I am NOT an excel beginner. I use formulas all the time.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Compare Two Numbers, See if a third cell stays between the first

Hi,

I would use conditional formatting to flag the cell red (or any color) when
the value is outside the accepted range. Say that the first 2 cells are A1,
B1, and C1 is the cell to watch then in conditional formatting use "formula
is" and this formula: OR(C1<A1,C1B1) choose your format and click ok.

HTH
Jean-Guy

"rocks256" wrote:

I want to put two numbers in separate cell. Then I would like to see if a
third cell
stays between the first two cells. If it does not, then I would like to be
notified,
(warning) in some way.
p.s. I am NOT an excel beginner. I use formulas all the time.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 136
Default Compare Two Numbers, See if a third cell stays between the first

Hello,

I suggest conditional formats on both the boundary cells and the third
cell.
Highlight third cell's background green if its value is within
boundaries.
Highlight a boundary cell's background red if third cell exceeds its
limit.

HTH,
Bernd

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
Sumproduct issues SteveDB1 Excel Worksheet Functions 25 June 3rd 09 04:58 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
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Paste rows of numbers from Word into single Excel cell BecG Excel Discussion (Misc queries) 1 December 8th 04 04:55 PM


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