Solved

if formula compare two columns

Posted on 2014-03-27
3
104 Views
Last Modified: 2014-03-30
Hi expert's excel 2007

Need a formula to do the following
If a2 has the word closed and b2 is blank then c2 return ignore ootherwise if a2 is not closed and b2 is not blank then return ref to mapping table
0
Comment
Question by:route217
[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 Comments
 
LVL 39

Accepted Solution

by:
nutsch earned 250 total points
ID: 39959089
What do you have in the mapping table, and what does "c2 return ignore" mean? Return C2, or return ignore?

=if(and(a2="closed",b2=""),c2,RefToMappingTable)
0
 
LVL 7

Assisted Solution

by:Steve
Steve earned 250 total points
ID: 39959125
=IF(AND(A2="closed",B2=""),"ignore","ref")

or possibly....

=IF(AND(A2="closed",B2=""),"","ref")
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 39961212
What about the other combinations of options for A2 & B2?

1) A2 = Closed, B2 = blank - Returns Ignore
2) A2 = Closed, B2 <> blank - ?
3) A2 <> Closed, B2 = blank - ?
4) A2 <> Closed, B2 <> Blank - Reference mapping table

You have covered options 1 & 4, could the others occur?

Thanks
Rob H
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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,…
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…
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 …
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

691 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