Applying text data to all duplicates found in another column

MurdochQuill

Board Regular
Joined
Nov 21, 2020
Messages
84
Office Version
  1. 365
Platform
  1. Windows
Hello,

I'm trying to apply a set of comments from column F to column B. I'm unable to change the formatting of column A unfortunately. It would be preferable to have a Vlookup function in column B.
Column A will always be variable in length, and column E should always contain the remaining characters after ", " in column A.
Example function I want to use is : =IFERROR(VLOOKUP(INT(MID(A2,SEARCH(", ",A2)+2,LEN(A2)-SEARCH(", ",A2)-2)), E:F,0,FALSE),"Return nill")

I'm just having trouble actually getting this working as it's a little convoluted and has confused me a bit...

Here's the table:

IDcommentunique idcomment unique id
(5326, 5436) 15436) 1Hello
(5326, 5436) 14274) 2Goodbye
dfdf(3475, 4274) 28314) 1Peace
2 (3475, 4274) 2
1FGFG (7833, 8314) 1
1 (7833, 8314) 1
1 (7833, 8314) 1
FFF 1 (7833, 8314) 1
1 (7833, 8314) 1
1 (7833, 8314) 1

Goals:

IDcommentunique idcomment unique id
(5326, 5436) 1Hello5436) 1Hello
(5326, 5436) 1Hello4274) 2Goodbye
dfdf(3475, 4274) 2Goodbye8314) 1Peace
2 (3475, 4274) 2Goodbye
1FGFG (7833, 8314) 1Peace
1 (7833, 8314) 1Peace
1 (7833, 8314) 1Peace
FFF 1 (7833, 8314) 1Peace
1 (7833, 8314) 1Peace
1 (7833, 8314) 1Peace

Any help would be great,
thank you
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Welcome to the MrExcel board!

See if this helps.

20 11 21.xlsm
ABCDEF
1IDcommentunique idcomment unique id
2(5326, 5436) 1Hello5436) 1Hello
3(5326, 5436) 1Hello4274) 2Goodbye
4dfdf(3475, 4274) 2Goodbye8314) 1Peace
52 (3475, 4274) 2Goodbye
61FGFG (7833, 8314) 1Peace
71 (7833, 8314) 1Peace
81 (7833, 8314) 1Peace
9FFF 1 (7833, 8314) 1Peace
101 (7833, 8314) 1Peace
111 (7833, 8314) 1Peace
12Return nill
Lookup Text
Cell Formulas
RangeFormula
B2:B12B2=IFERROR(VLOOKUP(REPLACE(A2,1,FIND(", ",A2)+1,""),E$2:F$4,2,0),"Return nill")
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

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