Column Letters plus 2 more columns?

gmooney

Active Member
Joined
Oct 21, 2004
Messages
254
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a list of column letters that need to have 2 more columns added to the current column letters. It isn't as simple as going 2 columns away and grabbing that from my list because the column letters are in random order.

The letter G below is in my cell CJ10, HB in CJ11, etc....

I want to create a formula in cell CT10 and copied down replacing the columns letters listed below. The G would become I, the HB would become HD, the HI would become HK, etc......



[TABLE="width: 57"]
<colgroup><col></colgroup><tbody>[TR]
[TD]G[/TD]
[/TR]
[TR]
[TD]HB[/TD]
[/TR]
[TR]
[TD]HI[/TD]
[/TR]
[TR]
[TD]HJ[/TD]
[/TR]
[TR]
[TD]JN[/TD]
[/TR]
[TR]
[TD]KI[/TD]
[/TR]
[TR]
[TD]KP[/TD]
[/TR]
[TR]
[TD]KB[/TD]
[/TR]
[TR]
[TD]IS[/TD]
[/TR]
[TR]
[TD]JG[/TD]
[/TR]
[TR]
[TD]JU[/TD]
[/TR]
[TR]
[TD]IZ[/TD]
[/TR]
[TR]
[TD]HK[/TD]
[/TR]
[TR]
[TD]JO[/TD]
[/TR]
[TR]
[TD]KJ[/TD]
[/TR]
[TR]
[TD]KQ[/TD]
[/TR]
[TR]
[TD]KC[/TD]
[/TR]
[TR]
[TD]IT[/TD]
[/TR]
[TR]
[TD]JH[/TD]
[/TR]
[TR]
[TD]JV[/TD]
[/TR]
[TR]
[TD]JA[/TD]
[/TR]
[TR]
[TD]HL[/TD]
[/TR]
[TR]
[TD]JP[/TD]
[/TR]
[TR]
[TD]KK[/TD]
[/TR]
[TR]
[TD]KR[/TD]
[/TR]
[TR]
[TD]KD[/TD]
[/TR]
[TR]
[TD]IU[/TD]
[/TR]
[TR]
[TD]JI[/TD]
[/TR]
[TR]
[TD]JW[/TD]
[/TR]
</tbody>[/TABLE]


Any help out there?

Thanks
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Put the fórmula:

=SUBSTITUTE(ADDRESS(1,COLUMN(INDIRECT(CJ10&1))+2,4),"1","")
 
Upvote 0
OR a VBA solution

Code:
Sub MM1()
Dim TCL As Integer, TCR As Variant, r As Long
    For r = 10 To 38
        TCL = Range(Range("CJ" & r).Value & 1).Column + 2
        TCR = Split(Cells(1, TCL).Address, "$")(1)
        Range("CT" & r).Value = TCR
    Next r
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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