Help with joining 2 cells if an argument is correct

laundon

New Member
Joined
Jan 5, 2005
Messages
18
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hello!

I'm hoping one of you lovely peeps can help me here. I have a spreadsheet that has cleansed of pre-fix's part numbers in Column B, a duplicate part number warning in Column C and a formula in Column D that says, in English....

If C2 contains "Dupe" then combine the the contents of B2 plus the first 2 characters of A2.

Can I get Excel to do this for me? Erm, no is the short answer! I've tried searching the old Internet for help and I'm just getting myself tied up in knots. Is this possible using IF, LEFT and CONCATENATE functions as I have been trying, or am I fighting a loosing battle?

A B C D
BG-32307 32307
JA-32307 32307 DUPE 32307JA ------<This is what I'd like to see in D2 if the line contains the word "Dupe" in Column C

Many many thanks in anticipation!

Cheers,
Tim.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
OMG! You are a star! Thank you!
Not quite sure why my post lost all it's formatting, but hey ho! You understood where I was going.

Thanks once again!

Cheers,
Tim
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

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