Solved

Putting a value of "NO" in a column based on the values in two other columns

Posted on 2015-01-21
5
44 Views
Last Modified: 2015-01-24
Experts,

I am trying to identify Id's (column A) that have no status (Column B) equal to "C3".   The file is sorted by ID.  If there is an ID with no "C3" found in Column "B" I would like to put a "NO' in column "C" as indicated in rows 31 and 32.  

Can someone help me with th formula to do this.
paid.xls
0
Comment
Question by:morinia
  • 2
  • 2
5 Comments
 
LVL 15

Expert Comment

by:weinberk
ID: 40562024
in cell C2, type this formula
=if(B2="C3","","No")

Open in new window


Then copy and paste that formula down the c column.

What this does:
If cell B2 equals the status text "C3", then leave C3 blank.  If not, put No.

Hope this is what you want.
0
 
LVL 48

Expert Comment

by:Rgonzo1971
ID: 40562028
HI,

pls try

=IF(COUNTIFS(A:A,A2;B:B,"C3")=0,"No","")

Regards
0
 

Author Comment

by:morinia
ID: 40562081
Rgonzo1971,

It worked perfectly except I found out the value in "W" can be "C2", "C3" or C4".    Can this  be modified to check for a value other than "C1"  instead of looking for "C3".

I am sorry I asked the wrong question, I just found out the other values could be in the column.
0
 
LVL 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 40562089
pls try

IF(COUNTIFS(A:A,A2;B:B,"<>C1")=0,"No","")
0
 
LVL 15

Expert Comment

by:weinberk
ID: 40562090
Either my formula or Rgonzo1971's can be easily modified.  Just replace the C3 in each with C1.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
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,…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

747 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

12 Experts available now in Live!

Get 1:1 Help Now