[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
Solved

# Revising a LOOKUP formula finding last match to ignore rows if column K contains either of two values ("No Change" or "CX'd")

Posted on 2016-09-23
Medium Priority
50 Views
I am currently using the following LOOKUP formula in spreadsheet EE_Pub (columns N, O and P) to find 'last match' values in spreadsheet EE_Cat (columns J, K and L), unless the value in column K of EE_Cat spreadsheet = "No Change", in which case it ignores this row.

=IFERROR(LOOKUP(2,1/([EE_Cat.xlsx]Sheet1!\$I\$2:\$I\$1200=\$M2)/([EE_Cat.xlsx]Sheet1!\$K\$2:\$K\$1200<>"No Change"),[EE_Cat.xlsx]Sheet1!\$J\$2:\$J\$1200),"")

I need to add an additional criteria to this formula so that it ignores all rows where column K in EE_Cat spreadsheet = "No Change" or "CX'd"

I have provided the two sample spreadsheets. I have highlighted the cells and included comments on the EE_Pub spreadsheet containing the results I am looking for with the updated formula.

I hope I have provided sufficient information, and that it is clear enough...

Thanks!
Andrea
EE_Cat.xlsx
EE_Pub.xlsx
0
Question by:Andreamary
[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

LVL 23

Accepted Solution

Ejgil Hedegaard earned 2000 total points
ID: 41813000
Try this
=IFERROR(LOOKUP(2,1/([EE_Cat.xlsx]Sheet1!\$I\$2:\$I\$1200=\$M3)/([EE_Cat.xlsx]Sheet1!\$K\$2:\$K\$1200<>"CX'd")/([EE_Cat.xlsx]Sheet1!\$K\$2:\$K\$1200<>"No Change"),[EE_Cat.xlsx]Sheet1!\$J\$2:\$J\$1200),"")
0

Author Closing Comment

ID: 41813083
Thanks, Ejgil, for the quick response...works like a charm! :-)
0

## Featured Post

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Microsoft has changed the look and feel of Azure AD and Microsoft account sign-in pages so that you will have a more unified look and feel when moving between the two interfaces.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
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…
###### Suggested Courses
Course of the Month12 days, 14 hours left to enroll