Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default formula help - subtracting numbers in two colums but using a specificnumber if one column is greater than another

I am working on a spreadsheet and need help developiung a formula (my
excel knolwedge is very basic)....

In y2, I want a formula that subtracts w2 from x2 but if x2 is w2 I
want y2 to reflect the number in w2. Can anyone help me with that? I
will be eternally grateful!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default formula help - subtracting numbers in two colums but using aspecific number if one column is greater than another

I THINK I JUST FIGURED IT OUT!! THE FORMULA I ARRIVED AT IS

=IF(X2W2, W2,SUM(W2,-X2))

DOES THIS SEEM CORRECT? I USED CSE WHEN I ENTERED THE FORMULA

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default formula help - subtracting numbers in two colums but using a specific number if one column is greater than another

You don't need the SUM function.

You have changed your parameters from your original posting.

"subtracts w2 from x2" was your original.

Here you are subtracting X2 from W2

You do not need CSE

See my earlier reply.


Gord

On Mon, 4 Jan 2010 14:26:06 -0800 (PST), Michelle
wrote:

I THINK I JUST FIGURED IT OUT!! THE FORMULA I ARRIVED AT IS

=IF(X2W2, W2,SUM(W2,-X2))

DOES THIS SEEM CORRECT? I USED CSE WHEN I ENTERED THE FORMULA


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default formula help - subtracting numbers in two colums but using a specific number if one column is greater than another

You sure that's what you want?

You will always get a zero or negative number in Y2 if X2<=W2


=IF(X2W2,W2,X2-W2)


Gord Dibben MS Excel MVP

On Mon, 4 Jan 2010 14:06:41 -0800 (PST), Michelle
wrote:

I am working on a spreadsheet and need help developiung a formula (my
excel knolwedge is very basic)....

In y2, I want a formula that subtracts w2 from x2 but if x2 is w2 I
want y2 to reflect the number in w2. Can anyone help me with that? I
will be eternally grateful!


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
NEED FORMULA TO POINT TO TOP OF COLUMN IF NUMBER GREATER THAN ANOT z942849 Excel Worksheet Functions 9 December 17th 09 10:07 PM
Find min() value greater than zero in column of numbers 82716 New Users to Excel 2 December 2nd 09 02:44 PM
Adding or subtracting numbers from a column Richard[_4_] Excel Discussion (Misc queries) 2 January 28th 08 12:41 PM
How to average a column of numbers that are greater than 0? JimNColorado Excel Worksheet Functions 13 December 11th 07 01:22 AM
formula of two numbers if greater than 500 deb Excel Discussion (Misc queries) 3 March 31st 07 10:56 PM


All times are GMT +1. The time now is 06:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"