Solved

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

Posted on 2015-01-21
5
46 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 49

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 49

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
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 longer labels with horizontal bar charts instead of the vertical column chart.

808 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