Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JGW JGW is offline
external usenet poster
 
Posts: 2
Default Using greater than and lesser than formula

I need a formula that will put the resulting quantity in one cell if lesser
than, in another cell if greater than. Example. If the qty in cell J32 is
less than 167, print that result (J32) in cell M32. If the qty in J32 is
more than 166, print the result (J32) in cell L32.
--
Julia
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default Using greater than and lesser than formula

Just use 2 formulas.

in M32, =if(J32<167,J32,"")

in N32, =if(J32166,J32,"")

"JGW" wrote:

I need a formula that will put the resulting quantity in one cell if lesser
than, in another cell if greater than. Example. If the qty in cell J32 is
less than 167, print that result (J32) in cell M32. If the qty in J32 is
more than 166, print the result (J32) in cell L32.
--
Julia

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Using greater than and lesser than formula

"JGW" wrote:
I need a formula that will put the resulting quantity in one cell if lesser
than, in another cell if greater than. Example. If the qty in cell J32 is
less than 167, print that result (J32) in cell M32. If the qty in J32 is
more than 166, print the result (J32) in cell L32.


In M32:

=if(J32<167,J32,"")

In L32:

=if(J32166,J32,"")

But if you intend the results to be mutually exclusive, I would write in
L32:

=if(J32=167,J32,"")

Also, be aware that testing J32 in this manner tests the actual value, which
might differ from the displayed number. You might want to change J32 to
ROUND(J32,0) in both cases, at least where you compare with 166 or 167.

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
lesser than, greater than bigproblem Excel Discussion (Misc queries) 6 April 16th 09 07:41 PM
greater/lesser than gma Excel Worksheet Functions 5 February 24th 09 10:13 PM
putting a number that is greater or lesser into different cell . James Krepel Excel Worksheet Functions 1 November 2nd 06 04:02 AM
greater than or lesser than formulas Orrutility secretary Excel Discussion (Misc queries) 4 September 27th 05 07:41 PM
if greater or lesser than ditchy Excel Discussion (Misc queries) 5 August 4th 05 04:10 AM


All times are GMT +1. The time now is 06:02 AM.

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"