crag8119

New Member
Joined
Mar 25, 2014
Messages
38
Hi,

Please could someone help me some match the data in columns 'Transaction Number' and ;Line Description':
Transaction NumberTransactionLine Description
Date
Rejection for Invoice
5-Nov-18Miscellaneous_Negative_Entry_For_NEW
T1173777-NEW26-Nov-18Miscellaneous_Negative_Entry_For_NEW
T1175778-NEW26-Nov-1875006801 | T1175778
T1173776-NEW26-Nov-18Miscellaneous_Negative_Entry_For_NEW

<colgroup><col><col><col></colgroup><tbody>
</tbody>

I am trying to match the first 8 characters in column 'Transaction Number' to the value in 'Line Description'.

I have tried:=IF(ISNA(MATCH(LEFT(C5,8),RIGHT(E1:E100,FIND("|",E1:E100)-1)),0)),"No Match",C5)

however it just errors. I am trying to match the first 8 characters under 'Transaction Number' to the value after "|" in the 'Line description' column.

Many thanks
 

Some videos you may like

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

FormR

MrExcel MVP
Joined
Aug 18, 2011
Messages
6,464
Office Version
  1. 365
Platform
  1. Windows
Re: Help needed for matching formula

I am trying to match the first 8 characters under 'Transaction Number' to the value after "|" in the 'Line description' column.

Hi, you could try:

=IF(ISNUMBER(MATCH("*| "&LEFT(C5,8),$E$1:$E$100,0)),C5,"No match")
 

crag8119

New Member
Joined
Mar 25, 2014
Messages
38
Re: Help needed for matching formula

Hi, you could try:

=IF(ISNUMBER(MATCH("*| "&LEFT(C5,8),$E$1:$E$100,0)),C5,"No match")


Great thank you,

Is there a way I can highlight both column C and E when a match is found?
 

FormR

MrExcel MVP
Joined
Aug 18, 2011
Messages
6,464
Office Version
  1. 365
Platform
  1. Windows
Re: Help needed for matching formula

Is there a way I can highlight both column C and E when a match is found?

Hi, what do you mean by highlight? Have you looked at conditional formatting?
 

Watch MrExcel Video

Forum statistics

Threads
1,122,521
Messages
5,596,652
Members
414,083
Latest member
Mrsash

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
Top