Solved

Nested IF

Posted on 2014-03-26
7
86 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 47

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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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 how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

740 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