#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default if formula

i have two columns with number data. i want the difference between the two
columns be in the third column if the first column is greater than the second
column and on the fourth column if the first column is lesser than the
second column
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default if formula

Hi,

Assuming your number in cols A&B.

This in C1
=IF(A1B1,A1-B1,"")
This in d1
=IF(B1A1,B1-A1,"")

Drag both down.

Mike

"gerry" wrote:

i have two columns with number data. i want the difference between the two
columns be in the third column if the first column is greater than the second
column and on the fourth column if the first column is lesser than the
second column

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



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