combine formulas or make it into a macro

jmkerzic

New Member
Joined
Jul 5, 2019
Messages
31
I have the following 3 formulas. Is it possible to combine them into one or write a macro for them.

=IF(LEFT(C:C)="R",G:G&" Rack")
=IF(AND(LEFT(C:C)="R",RIGHT(C:C)="B"),G:G&" BLM Rack")
=IF(RIGHT(C:C)="B",G:G&" BLM",IF(RIGHT(C:C,1)="C",G:G&" BLM",IF(LEFT(C:C,3)="TRT",G:G&" TRT",G:G)))
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Maybe:


Book1
CDEFGH
2xxxaa
3rxbb Rack
4rbcc BLM Rack
5xbdd BLM
6xxxcee BLM
7trt123ff TRT
8yyygg
Sheet5
Cell Formulas
RangeFormula
H2=G2&IF(OR(RIGHT(C2)={"B","C"})," BLM","")&IF(LEFT(C2)="R"," Rack","")&IF(LEFT(C2,3)="TRT"," TRT","")
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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