Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-04-2014, 10:09 AM
mbesspiata mbesspiata is offline If statement question Windows 7 64bit If statement question Office 2010 64bit
Advanced Beginner
If statement question
 
Join Date: Mar 2011
Location: Virginia
Posts: 57
mbesspiata is on a distinguished road
Default

I just tried this formula and it works to show me the LOW but the HIGH is not working.
=IF(E3=1,"LOW",IF(E3=MAX(E:E),"HIGH")). For all rows excet the LOW it get the #N/A.


Mike
Reply With Quote
  #2  
Old 06-04-2014, 12:29 PM
BobBridges's Avatar
BobBridges BobBridges is offline If statement question Windows 7 64bit If statement question Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

Oh, duh, I see what you mean. (Sorry, I'm slow today.) You still have to say what you want it to display when it's not the max value. Hm, when I use your formula I get not #VALUE# but FALSE for all the values that aren't Low. What version of Excel are you using?

Regardless of the version, though, you're missing a final argument. The IF function requires three:

1) The condition being tested, in this case E3=1 or E3=MAX(E:E)
2) The value to be used if the condition is true (eg "LOW")
3) The value to be used if the condition is false.

Now, you have two IF functions here. The first one has all three arguments:
Code:
=IF(E3=1,"LOW",IF(...))
The condition is E3=1, the "true" value is "LOW" and the "false" value is another IF function. So if E3=1 it displays "LOW"; if it isn't 1, if it's anything else, it displays whatever is the result of the embedded IF function.

The second IF function, however, is incomplete; it has only two arguments:
Code:
IF(E3=MAX(E:E),"HIGH")
The condition is E3=MAX(E:E), and the "true" value is "HIGH". But you never told it what to display if it isn't the max value. You have to tell it something, like this:
Code:
=IF(E3=1,"LOW",IF(E3=MAX(E:E),"HIGH","SOMETHING ELSE"))
What do you want Excel to display there if it's not a high or low value?
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a statement sma Word 6 03-23-2014 10:30 AM
Question about Case statement Jennifer Murphy Word VBA 1 01-05-2013 02:30 PM
If statement question Help with IF Statement limpbizkit Excel 4 02-24-2011 09:16 PM
If statement question if statement piper7971 PowerPoint 1 08-19-2010 07:10 AM
If statement question Help with IF statement! CPelkey Word 1 04-12-2010 09:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:40 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft