Concatenation or if Statement

clemkonan

Active Member
Joined
Jun 21, 2003
Messages
259
Here is my data :
A1= Sequential number
B1 = Part ID
C1 =Area
D1= Target

So that :
A2 = 500
B2 = 500-G
C2= Production office
D2 = Office Door
E2 = Glass

I want to generate B2 by having an if formula that if E2 =glass than add the suffix "-G" ro A2 so that it becomes 500-G,otherwise add suffix"-BR" which then generates 500-BR.

So I end up with a list of parts that are either Glass or brittle plastic and I hyperlink the part number to the picture.

I guess I will have to hide column A

Thanks in advance
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Try:
Code:
=A2 & IF(E2="Glass","-G","-BR")
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

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