Excel - Delete part of the information from a cell

December 2016





Issue

I need a solution for the following situation:


Is there a way to delete part of the information from a cell (overlapping in the adjacent cell)?
Example:
  • H78646733 from cell C2 can be found at the end of the text in cell F2 (Hamilton Khaki Belowzero Men's Watch H78646733). I'd also like to know how to delete to delete the code in cell F2 that appears in cell C2.

Solution

If the value of C2 is always at the end of the value in F2 seperated by a space then use this formula:
=LEFT(F2;LEN(F2)-(LEN(C2)+1)) 


Thanks to TrowaD for this tip.

Related :

This document entitled « Excel - Delete part of the information from a cell » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.