Solved

# Usingand Excel Formula, looking at multiple columns to update one status

Posted on 2014-10-13
64 Views
I have an excel sheet with some rows I want to evaluate that would set the value of a blank column and need help with the formula.

Column J is the column with the result

Checks in this order of override

Column J should = "" is Column L is Not Blank
Column J should = "Warning" if Column K begins with "Warning:"
Column J should = "Missing" if Column L is blank
0
Question by:Matt Pinkston

LVL 31

Expert Comment

=IF(L2<>"","",IF(LEFT(K2,7)="Warning","Warning",IF(L2="","Missing","other")
0

LVL 24

Accepted Solution

Steve earned 500 total points
=IF(LEN(L2)=0,"Missing",IF(LEFT(K2,8)="Warning:","Warning",""))
(reverse override order to Rob)

Rob is also missing a couple of closing brackets!
0

LVL 6

Expert Comment

Hi,

This in Cell J2.
=IF(ISBLANK(L2)=FALSE,"",IF(LEFT(K2,8)="Warning:","Warning",IF(ISBLANK(L2)=TRUE,"Missing")))

John
0

Author Closing Comment

it appears out of the three solutions this one worked in all cases, Thanks
0

LVL 31

Expert Comment

Apologies for the missing brackets, I typed it rather than copied it from a cell.

I put the checks in the order described in the question. Looking back at it, is the order due to a logical check, ie an entry has been made in L and said entry does not cause a warning message in K. If so it would make sense to put the "L = blank" check at the start and then some AND logic to check entry and warning:

=IF(L2="","Missing",IF(AND(L2<>"",LEFT(K2,7)<>"Warning"),"","Warning"))

Thanks,
Rob H

Note: Might be same as Steve's suggestion.
0

## Featured Post

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…