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
2
25 Views
Last Modified: 2016-09-23
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
Comment
Question by:Andreamary
2 Comments
 
LVL 21

Accepted Solution

by:
Ejgil Hedegaard earned 500 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

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

Featured Post

What Security Threats Are You Missing?

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

705 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

19 Experts available now in Live!

Get 1:1 Help Now