See attachment for example case! Basically, I want to merge two rows in which one of the columns has duplicate information. However, the other columns are unique and I would like to keep this data.
See attachment for example case! Basically, I want to merge two rows in which one of the columns has duplicate information. However, the other columns are unique and I would like to keep this data.
In B11:
=IFERROR(INDEX($B:$B,AGGREGATE(15,6,ROW($A$4:$A$8)/($A$4:$A$8=$A11),COLUMNS($B:B))),"")
and in E11:
=IFERROR(INDEX($C:$C,AGGREGATE(15,6,ROW($A$4:$A$8)/($A$4:$A$8=$A11),COLUMNS($E:E))),"")
for the second part, you'll need VBA. Is that OK??
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.
Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh
Thanks so much! The first solution works fine (I just posed both cases as they were both acceptable). Do you mind explaining a bit what this function is doing?
Sorry - is there a way for it to check for unique values? (If it is Bob vs. Sally, if there is a duplicate in one column but not the other)
=IFERROR(INDEX($B:$B,AGGREGATE(15,6,ROW($A$4:$A$8)/($A$4:$A$8=$A11),COLUMNS($B:B))),"")
Red: if this condition is TRUE
Orange: return the row number
Cyan: from the smallest to the largest
Blue: in the order 1,2,3
Green: and return the corresponding vlaues in column B
Black: if an error is returned - return a blank.
You're welcome.
If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.
It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
Away for an hour or so. On a bus!!
Just drag the formulae down. However, to get rid of the irritating 0s in B & E, amend the formula in column B to;
=IFERROR(INDEX($B:$B,AGGREGATE(15,6,ROW($A$4:$A$9)/($A$4:$A$9=$A12),COLUMNS($B:B)))&"","")
and similarly for column E.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks