Concatenate referencing

Donnybrook

New Member
Joined
Aug 15, 2022
Messages
2
Office Version
  1. 2007
Platform
  1. Windows
Having issues on something I'm building for work.

Is there a way to have a name indexed (Ex. Seattle.Hat), have those 2 words concatenated elsewhere, and be able to reference that concatenate to pull from the index?

The attached lays it out in a very high level way. Is there a way to be able to reference that formula without it REFing?


Book1
ABCDEFGHIJKLMNO
1Price by month
2RegionProductJanFebMarAprMayJunJulAugSepOctNovDec
3SeattleHat123456654321Seattle.Hat
4
5123456789101112
6SeattleHatSeattle.HatSeattle.Hat#REF!#REF!#REF!#REF!#REF!#REF!#REF!#REF!#REF!#REF!#REF!
Sheet1
Cell Formulas
RangeFormula
C6C6=CONCAT(A6,".",B6)
D6:O6D6=INDEX($C$6,D5)
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hello Donny Brooke,

When you concatenate cells the entry in the cell is not text - it is a formula. (Note - I very seldom use the INDEX function)

A work around:- in an empty row below: I will use row 7 - you can use row 700. :)

In cell C7 put the formula =CONCATENATE(A6,".",B6). {You can change the text to white; so it is not visible.}

Now you write a macro to copy the row 7 range and paste (as values) into row 6.

Then it should work. You will now have text in Cell C6, etc.:)

The macro should be like the one below.

VBA Code:
Sub CopyPasteValues()
    Range("A7:J7").Copy 'Change the range to copy
    Range("A6").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
    Application.CutCopyMode = False
    Range("A1").Select
    Calculate
End Sub

Let me know if this works for you.

Jamie McMillan
 
Upvote 0
Hi & welcome to MrExcel.
Not sure why you are trying to use index on a single cell.
Why not just use
Excel Formula:
=$C$6

Also your profile shows you are using 2007, but concat does not exists in that version, so what version are you using?
 
Upvote 0
Hi & welcome to MrExcel.
Not sure why you are trying to use index on a single cell.
Why not just use
Excel Formula:
=$C$6

Also your profile shows you are using 2007, but concat does not exists in that version, so what version are you using?
As I said, it's a very high level example to show what I'm want to do (reference the concate). I'm posting this off my personal computer which has a newer version of excel. My work version is 07
 
Upvote 0
I'm posting this off my personal computer which has a newer version of excel. My work version is 07
Ok (y)

As I said, it's a very high level example to show what I'm want to do (reference the concate)
But it does not make any sense, why are you trying to index a single cell when you can just use the formula I suggested.
 
Upvote 0
Ok (y)


But it does not make any sense, why are you trying to index a single cell when you can just use the formula I suggested.
Hello Fluff,

Reading the 'index' code, after your post, I can see the apparent intention. You are 100% right. :)

Jamie McMillan
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,953
Members
449,198
Latest member
MhammadishaqKhan

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