First time poster need help checking for changing value in Column data, then applying subsequent id from separate column

rrrr0000

New Member
Joined
Sep 5, 2021
Messages
6
Office Version
  1. 2010
Platform
  1. Windows
Hi, thank you in advance for any help and apologies if this is poorly worded or already solved elsewhere. It is fairly specific so I couldn't find any previous threads on it.
- using Excel 2010, Windows 10

- I have a column A of data ("name") with changing values - many values are duplicates, and all ordered.
- I need to check for when the value changes in the col A "name", and when it does I need to copy a value from another column C ("sid") in order of data
- then take value from col C and copy it to a new column B ("sid_added") in order, to match when the value in COL A changes

This is what current data looks like:
namesid_addedsid
Bob1052
Bob2002
Bob Green2544
Bob Green1542
Bob Green
Mary
Mary Orange
Mary Orange
Mary Orange


And this is what I am looking for as the end result:
namesid_addedsid
Bob10521052
Bob2002
Bob Green20022544
Bob Green1542
Bob Green
Mary2544
Mary Orange1542
Mary Orange
Mary Orange


Thank you again for any help and time, it is much appreciated.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Welcome to the MrExcel board!

Is this what you want?

21 09 05.xlsm
ABC
1namesid_addedsid
2Bob10521052
3Bob 2002
4Bob Green20022544
5Bob Green 1542
6Bob Green 
7Mary2544
8Mary Orange1542
9Mary Orange 
10Mary Orange 
sid_added
Cell Formulas
RangeFormula
B2:B10B2=IF(A2=A1,"",INDEX(C$2:C$5,COUNT(B$1:B1)+1))
 
Upvote 0
Solution
Thank you Peter, that is a very elegant solution and I think it solves my problem just fine (y)
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top