Solved

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

Posted on 2014-10-13
5
67 Views
Last Modified: 2014-10-13
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
Comment
Question by:Matt Pinkston
5 Comments
 
LVL 32

Expert Comment

by:Rob Henson
ID: 40376757
=IF(L2<>"","",IF(LEFT(K2,7)="Warning","Warning",IF(L2="","Missing","other")
0
 
LVL 24

Accepted Solution

by:
Steve earned 500 total points
ID: 40376764
I would read above as:
=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

by:johnb25
ID: 40376765
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

by:Matt Pinkston
ID: 40376795
it appears out of the three solutions this one worked in all cases, Thanks
0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 40376796
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel case statements 3 25
ADD New Entries 7 16
Most Consistent Performer 4 22
Autofit all columns of all worksheets using VBA 14 17
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

864 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

21 Experts available now in Live!

Get 1:1 Help Now