# Joined two datasets - How to replace one column with another, but only for matches?

**URL:** <https://forum.knime.com/t/joined-two-datasets-how-to-replace-one-column-with-another-but-only-for-matches/45291>\
**Category:** KNIME Analytics Platform\
**Created:** [July 20, 2022, 3:56pm UTC](https://forum.knime.com/t/joined-two-datasets-how-to-replace-one-column-with-another-but-only-for-matches/45291 "2022-07-20T15:56:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sroberts](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/9d8465/32.png) [@sroberts](https://forum.knime.com/u/sroberts)\
**Post date:** [July 20, 2022, 3:56pm UTC](https://forum.knime.com/t/joined-two-datasets-how-to-replace-one-column-with-another-but-only-for-matches/45291/1 "2022-07-20T15:56:53Z")

</div>

I have two datasets that I was able to match with “Work Order Number” through a Join.

Dataset 1 has Product (hand written, so mispellings etc all over the place), Dataset 2 has Product Description pulled from a computer system, so it’s much more accurate.

I would like to replace the values in Product (for dataset 1) ONLY if Product Description in the joined column has data. Otherwise it should keep the old data.

---

<div class="post-metadata">

**Author:** ![ArjenEX](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/97f17d/32.png) [@ArjenEX](https://forum.knime.com/u/ArjenEX)\
**Post date:** [July 20, 2022, 4:00pm UTC](https://forum.knime.com/t/joined-two-datasets-how-to-replace-one-column-with-another-but-only-for-matches/45291/2 "2022-07-20T16:00:15Z")

</div>

Hi @sroberts

A similar topic was recently raised by someone else too. Have a look over there and hopefully that is also applicable in your case 😉

> [@replacing cell values if they are available in anoher table](https://forum.knime.com/t/replacing-cell-values-if-they-are-available-in-anoher-table/45045):
>
> Hey all, Is there a way for replacing cell values in collumn A only if the values in collumn B match with another table, this other table also holds the new/replacement values. Thanks in advance for your reply!

If not, please include some screenshots, samples, workflows etc. so others can accurately provide some help.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [July 27, 2022, 4:00pm UTC](https://forum.knime.com/t/joined-two-datasets-how-to-replace-one-column-with-another-but-only-for-matches/45291/3 "2022-07-27T16:00:15Z")

</div>

Closed on July 27, 2022, 4:00pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
