Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-11-2017, 03:39 AM
JuicyHMouse JuicyHMouse is offline 6 (or 7) Nested IFs! Mac OS X 6 (or 7) Nested IFs! Office v. X
Novice
6 (or 7) Nested IFs!
 
Join Date: Mar 2017
Posts: 2
JuicyHMouse is on a distinguished road
Default 6 (or 7) Nested IFs!

Hello all,

Please let me know if I need to repost due to a confusing or annoying/lengthy setup -- first-timer. In order to get around Mac's lack of importxml, I'm having to do a ton of workarounds. I've never not been able to use "elif" or "else if" and I don't know what I'm telling Excel to do here.

Am I correct that by saying:
=IF(OR(A14="FALSE",F6="TRUE"), ab, IF(F1="TRUE", cd, IF(F2="TRUE", ef, IF(F3="TRUE", gh, IF(F4="TRUE", jk, IF(F5="TRUE", mn, ""))))))

I am saying that ___?:
If it is true that (A14 is false or F6=true), then ab;
else if F1=true then cd;
else if F2=true, then ef;
else if F3=true, then gh;
else if F4=true, then jk;
else if F5=true, then mn;
else blank;
end if;

It will only return the terminal false result in any given case.

So in this case:
A14 is true
F6 is false


F1 is *true*
F2 is false
F3 is false
F4 is false
F5 is false.

And it returns "" rather than the desired result "cd".

Reply With Quote
  #2  
Old 03-11-2017, 06:41 AM
JuicyHMouse JuicyHMouse is offline 6 (or 7) Nested IFs! Mac OS X 6 (or 7) Nested IFs! Office v. X
Novice
6 (or 7) Nested IFs!
 
Join Date: Mar 2017
Posts: 2
JuicyHMouse is on a distinguished road
Default

I'll just go ahead and answer this, since I found someone who fixed it -- in case it helps someone. First off, it should be noted that the ab, cd, etc. are placeholders and not actual strings. Second, for some strange reason the "general" format sometimes makes it difficult to operate on logical expressions. Who knows why, but the OR() vars needed no quotes, and the others did...go figure.

I've definitely become a Mac user over the last few years, but this is one area where #%*! Apple. So much of Excel's developer stuff is missing or not as good. Hope this helps another iPerson.
Reply With Quote
Reply

Tags
boolean, if function, nested



Similar Threads
Thread Thread Starter Forum Replies Last Post
6 (or 7) Nested IFs! Nested IF TDWolsey Excel 2 01-06-2016 11:31 PM
nested if and averageA windseaker Excel 0 08-14-2015 04:13 PM
6 (or 7) Nested IFs! using if and nested vlookup wentworth16238 Excel 5 06-14-2015 12:59 PM
Nested Vlookup Help asluder2000 Excel 2 11-14-2014 11:00 PM
6 (or 7) Nested IFs! Nested IFs JimS378 Excel 7 05-03-2011 08:20 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:32 PM.


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