Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default using IF & AND in formula

Hi.
I'm using Excel 2000, in simple terms, I need a formula for the following.
I'm working with numbers.

IF A2 is GREATER than B2, then A2+B2
OR
IF A2 is LESS than B2, then B2-A2

Thanks,
Latsh NJ
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default using IF & AND in formula

here it is..

=IF(A2B2,A2+B2,IF(A2<B2,B2-A2))

Joe

Latsh wrote:
Hi.
I'm using Excel 2000, in simple terms, I need a formula for the following.
I'm working with numbers.

IF A2 is GREATER than B2, then A2+B2
OR
IF A2 is LESS than B2, then B2-A2

Thanks,
Latsh NJ


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default using IF & AND in formula


=If(A2B2,A2+B2,B2-A2)


Latsh wrote:
Hi.
I'm using Excel 2000, in simple terms, I need a formula for the following.
I'm working with numbers.

IF A2 is GREATER than B2, then A2+B2
OR
IF A2 is LESS than B2, then B2-A2

Thanks,
Latsh NJ

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default using IF & AND in formula

What happens if A2=B2?
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Latsh" wrote in message
...
Hi.
I'm using Excel 2000, in simple terms, I need a formula for the following.
I'm working with numbers.

IF A2 is GREATER than B2, then A2+B2
OR
IF A2 is LESS than B2, then B2-A2

Thanks,
Latsh NJ


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default using IF & AND in formula

Mark:
he wants B2-A2 not when A2=B2..

Mark K. wrote:
=If(A2B2,A2+B2,B2-A2)


Latsh wrote:
Hi.
I'm using Excel 2000, in simple terms, I need a formula for the following.
I'm working with numbers.

IF A2 is GREATER than B2, then A2+B2
OR
IF A2 is LESS than B2, then B2-A2

Thanks,
Latsh NJ




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 174
Default using IF & AND in formula

Perhaps

=B2+SIGN(A2-B2)*A2


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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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