LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #15   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Negative numbers in an IF formula

I think I figured it out:

E9 is =IF(AND(G9=0,G10=0),"",MIN(G9:G10)+E10)
and
G9 is =IF(D9="","",D10-D9)

Thanks for everyone's input.

"Bearacade" wrote:


You really need to check your formulas...

You are getting a 0 because that is how your formula is calling it.

Your orginal formula is IF(G9=G10,G9,G10), which basically look for
the larger of two number in G9 and G10. That's why I replaced it with
Large(G9:G10,1)

G9 is -10 and G10 is 10, so the larger number is 10

If you use your original formula, IF(-10=10 (which is false), -10,
10)

So you would still get 10 as your answer...



TammyS Wrote:
Sorry but it didn't seem the problem was with col. D. Substitute 9 and
10
for the numbers in the example I gave (it's the same formula down the
page
just using different scenarios to make sure the formula is correct).

=IF(D9="","",IF(AND(G90,G100),"",LARGE(G9:G10,1) +E10))

G9 is -10
G10 is 10
E10 is 0
E9 (the result) is 0 (should be -10)




--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=563067




 
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
Excel: want neg numbers to show red/pos green via if-then formula Jim Excel Worksheet Functions 4 May 16th 23 03:43 AM
Suggestions on formula to track powerball numbers? Bob Smith Excel Worksheet Functions 4 March 4th 06 07:27 AM
Formula to ignore negative numbers in a column? Tia Excel Worksheet Functions 3 February 4th 06 02:53 PM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 3 January 19th 06 09:52 AM
formula returns (correctly) a negative value brit64 Excel Discussion (Misc queries) 5 September 19th 05 08:56 AM


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