Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Nested IF

Posted on 2014-03-26
7
Medium Priority
?
90 Views
Last Modified: 2014-03-31
Hello experts,

Here's an easy one but I am in a hurry.

See attached sample file

I need a nested IF formula in column E to get results shown.

Gary - Cincinnati
0
Comment
Question by:garyrobbins
  • 3
  • 3
7 Comments
 
LVL 49

Expert Comment

by:Martin Liss
ID: 39957215
There's no attachment.
0
 

Author Comment

by:garyrobbins
ID: 39957231
see sample attachment
Nested-IF-EE-3-26-14.xls
0
 
LVL 39

Expert Comment

by:nutsch
ID: 39957249
Your column E doesn't apply the logic you're describing, does it?

For example, why in row 5, with a blank B, does it give the value of C, while in row 7, you return the value of A?

Thomas
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 39

Expert Comment

by:nutsch
ID: 39957260
The formula for

If C2 is blank, use A2; if A2 is blank, use B2; otherwise leave blank

is

=IF(LEN(C2)=0,IF(LEN(A2)=0,B2,A2),"")

Thomas
0
 

Author Comment

by:garyrobbins
ID: 39958827
Ok, Nutsch.

Help me extend this to one more variable.
If C2 is blank, use A2; if A2 is blank, use B2; if B2 is blank, use X2; otherwise leave blank

thanks,
Gary
0
 
LVL 39

Accepted Solution

by:
nutsch earned 2000 total points
ID: 39958842
this should do it:

=IF(LEN(C2)=0,IF(LEN(A2)=0,if(B2="",x2,""),A2),c2)

I assumed that if C2 is not blank, then you want C2, correct?

Thomas
0
 

Author Closing Comment

by:garyrobbins
ID: 39967164
Thanks, Thomas.  You helped me understand the LEN function.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question