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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
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,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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