Excel String Comparison Macro

ramalvi

New Member
Joined
Jan 13, 2019
Messages
1
hi,

ChargeCurrencyCollectorCorrect Data
XNGBRLLIBRAN10XNGBRLLIBRAN8
XNGUSDLIBRAN10THDBRLLIBRAN10
XNGBRLLIBRAN7THDUSDLIBRAN7
XNGBRLLIBRAN8DDFBRLLIBRAN10
THDBRLLIBRAN10
THDBRLLIBRAN7
THDUSDLIBRAN10
THDUSDLIBRAN7
DDFBRLLIBRAN10
DDFBRLLIBRAN6

<colgroup><col span="2"><col><col span="2"><col><col></colgroup><tbody>
</tbody>

This is a excel format.
right side data is correct data ok, i need to compare and show output.
if XNG=BRL=LIBRAN8 means need to show near column as "No Error".
else show near column as "Error"
This can be done whole column and right side data is correct data.
Please create and send me a excel macro code.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Is a formula solution acceptable? If so, try...

A1:H11

ChargeCurrencyCollectorCorrect Data
XNGBRLLIBRAN10XNGBRLLIBRAN8No Error
XNGUSDLIBRAN10THDBRLLIBRAN10No Error
XNGBRLLIBRAN7THDUSDLIBRAN7No Error
XNGBRLLIBRAN8DDFBRLLIBRAN10No Error
THDBRLLIBRAN10
THDBRLLIBRAN7
THDUSDLIBRAN10
THDUSDLIBRAN7
DDFBRLLIBRAN10
DDFBRLLIBRAN6



<tbody>
</tbody>
H2, confirmed with CONTROL+SHIFT+ENTER, and copied down:

=IF(ISNUMBER(MATCH(E2&"#"&F2&"#"&G2,$A$2:$A$11&"#"&$B$2:$B$11&"#"&$C$2:$C$11,0)),"No Error","Error")

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,820
Members
449,469
Latest member
Kingwi11y

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
Back
Top