#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default If, Then Values

I am trying to find a formula that will return a value in another cell if the
number is greater than the selected cell. Example:

cell A1 is 100
cell A2 is 150

I want the difference of 50 to be returned in cell A3 only if its a greater
number.

Hope it makes sence.

Thanks
CMS
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default If, Then Values

So, if I understand, you want A3 to be the difference of A2 and A1 only if A2
is greater than A1? If so, use this formula in A3:

=IF(A2A1,A2-A1,"")

Cell A3 will remain blank if A1 is greater than or equal to A2.

HTH,
Elkar


"bassplayerbg" wrote:

I am trying to find a formula that will return a value in another cell if the
number is greater than the selected cell. Example:

cell A1 is 100
cell A2 is 150

I want the difference of 50 to be returned in cell A3 only if its a greater
number.

Hope it makes sence.

Thanks
CMS

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default If, Then Values

One way:

=IF(A2 A1, A2 - A1, "")

In article ,
bassplayerbg wrote:

I am trying to find a formula that will return a value in another cell if the
number is greater than the selected cell. Example:

cell A1 is 100
cell A2 is 150

I want the difference of 50 to be returned in cell A3 only if its a greater
number.

Hope it makes sence.

Thanks
CMS

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default If, Then Values

=MAX(A2-A1,0)


"bassplayerbg" wrote:

I am trying to find a formula that will return a value in another cell if the
number is greater than the selected cell. Example:

cell A1 is 100
cell A2 is 150

I want the difference of 50 to be returned in cell A3 only if its a greater
number.

Hope it makes sence.

Thanks
CMS

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
Using two values to report multiple values LJ Excel Discussion (Misc queries) 0 November 16th 06 05:19 PM
Return across Row Numeric Values Matching EXACT Month & Year for Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 October 22nd 06 11:30 PM
List of values office guy10 Excel Discussion (Misc queries) 2 September 22nd 06 07:28 PM
Referencing a specific number to more general values in a table. AJL Excel Worksheet Functions 0 September 19th 06 05:11 PM
Keeping a cell value constant trhoughout a list of values borikua05 Excel Worksheet Functions 2 December 3rd 05 03:03 PM


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