6
3
My problem is that in my excel worksheet of several thousand entries the item (eg widget a) is included in more than one row, with different attributes listed in the different rows. Aside from the title column, the content in the rows is not duplicated ie if value 1 has an entry for widget a in one row, it does not in the second row, which I hope will make the job of merging the two rows easier.
Here an image that shows my issue.
Where the title columns match I want to merge the data in the two rows to end up with one single row with all the data combined ending up with One entry for widget A: Title, Value 1, Value 2, Value 3 and so on.
Thanks so much in advance for any help!
thank you so much for your answer. it sounds like it's exactly what i'm trying to do but i'm obviously doing something wrong. – Emily – 2013-08-10T14:40:23.703
thank you so much for your answer. it sounds like it's exactly what i need but i'm clearly doing something wrong. i have headings from A to BO
i select the cells with the data that I want to be merged (I just highlighted the first ten rows from A:BO) I clicked F5 > special > select blanks. It successfully highlights the blanks
I don't click anything and simply paste your formula but get the error: "The command you chose cannot be performed with multiple selections. Select a single range and click the command again." Sorry if I'm being obtuse, I love excel but my forumulas are rather basic! – Emily – 2013-08-10T14:58:58.827
No, not obtuse -- "without clicking anywhere" was inaccurate. When you have the blank cells highlighted, click in the formula bar and then paste in the formula. I will edit my answer since what I had was confusing (and wrong). – Excellll – 2013-08-11T16:40:23.467
1Thank you so much!! I am forever grateful, and will be able to use this for so many things. A couple of things for anyone looking to use this:
Other than that, it worked a treat. Genuinely so grateful. thank you Excellent Excellll! – Emily – 2013-08-16T19:56:37.567
2@Excellll: The OP showed two rows per widget type, but said “more than one row”. I believe your answer breaks if there are more than two rows for a given widget type. You might be better saying
=IF($A1=$A2, C1, "")
and then using some other trick to retain only the last of each group. – Scott – 2013-09-11T23:33:40.5601@Scott I agree. If there are more than 2 rows per key, the formula needs to be made one-sided and there needs to be some pre-sorting. I stuck with this solution for this case because it made the removal of duplicates in the last step much easier. In the more general case, there needs to be some creative sorting and/or filtering to remove the extra rows. – Excellll – 2013-09-12T01:31:26.580