Solved

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

Posted on 2012-03-28
1
147 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

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 view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

706 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

18 Experts available now in Live!

Get 1:1 Help Now