Repeating expression in formula

jbarrick007

New Member
Joined
Jul 9, 2020
Messages
36
Office Version
  1. 365
Platform
  1. Windows
Hello everyone.
Im having trouble simplifying a repeating phrase in a formula I continually copy and paste and think there must be a slightly easier way.

The formula is: =CONCATENATE("< PHASE 1> ","(",(VLOOKUP("PHASE 1",'Working Datasheet '!A:E,3,FALSE)),")",CHAR(10),(VLOOKUP("PHASE 1",'Working Datasheet '!A:F,6,FALSE)))

But I have 10 PHASES, so I multiple copy and pastes such as: =CONCATENATE("< PHASE 2> ","(",(VLOOKUP("PHASE 2",'Working Datasheet '!A:E,3,FALSE)),")",CHAR(10),(VLOOKUP("PHASE 2",'Working Datasheet '!A:F,6,FALSE)))

I have 10 phases, so every time I copy this formula and want to edit it to PHASE 2, I have three places I have to make the edit from PHASE 1 to PHASE 2. Is there a way to reference the "PHASE x" so it repeats throughout the formula. I know you can set rules like this in VBA but not sure about the formula bar.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
=ROW(A1) returns a 1, copied down A2=2 etc... Is this something you could perhaps use? Hard to be sure without seeing examples. eg.CONCATENATE("< PHASE ",ROW(A1),"> ",
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,447
Members
448,966
Latest member
DannyC96

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