replace characters and compare results in a formula

inolab

New Member
Joined
Sep 28, 2016
Messages
16
I know this is going to be an easy answer and I am almost there (I hope), but I need help because I can't get the correct result.

I have 2 columns of names and one column has 7 characters that need to be replaced and then the result of the first 3 characters compared to the other column to see if they are the same and if not - they need to be researched. Here is what I have so far and individually the formulas work - together not so much. Thanks in advance for your help.

[[TABLE="width: 1066"]
<tbody>[TR]
[TD]FINANCIAL NAME
[/TD]
[TD]LOG NAME
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]osu-aj HER NAME IS
[/TD]
[TD]YOUR NAME IS
[/TD]
[TD]=IF(A2="","","BLAH")
[/TD]
[TD]THIS LEAVES C BLANK IF CELL IN COLUMN A IS BLANK OTHERWISE "BLAH"
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]ALL NAMES ARE
[/TD]
[TD]=REPLACE(A2,1,7,"")
[/TD]
[TD]THIS REPLACED 7 CHARACTERS IN FRONT OF THE NAME IN COLUMN A
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]=IF(A3="","",REPLACE(A3,1,7,""))
[/TD]
[TD]THIS LEAVES C BLANK IF A IS BLANK AND REPLACES FIRST 7 CHARACTERS OF NAME IF NOT BLANK
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]=IF(ISTEXT(SEARCH(LEFT(A2,3),(LEFT(A2,3)),1)),"","RESEARCH")
[/TD]
[TD]IF FIRST 3 CHARACTERS DON’T MATCH IN COLUMN A AND B, RESULT IS TO RESEARCH ]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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