Solved

Nested IF

Posted on 2014-03-26
7
81 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 45

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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
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 500 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now