Solved

Updating a column in Excel based on the data in other columns and rows

Posted on 2012-03-28
1
189 Views
Last Modified: 2012-03-28
I have a file that is sorted by Column D which I am calling "Old_Id".  Column B which is called "Match Found" has a value  of "Y" set by another program.

Is there a way to update Column A "ID Match" with a "Y" if  there is a "Y" in column "B" in any row where Column "D" is the same.

(See attached file).  The results I would like a formula for are in Red Font.
Match-Found.xlsx
0
Comment
Question by:morinia
[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
1 Comment
 
LVL 1

Accepted Solution

by:
Bob60618 earned 500 total points
ID: 37779092
1. Sort the file - OLD_ID Lowest to highest then Match_Found Z to A (get Ys on top for each ID)
2. The formula for cell A2 is "=IF(B2="Y","Y",IF(D2=D1,IF(A1="Y","Y",""),""))"
3. Copy cell A2 down
4. Use conditional formatting to turn "Y" to red.
5. See attached
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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,…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
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 …

738 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