Concatenating Text to Formula

maria90

New Member
Joined
Apr 9, 2012
Messages
38
Hello everyone.

I would like to concatenate two cells to one formula - this will be in a table/listobject.
What the formula does it retrieves the count value from the column 'name' of different tables.

I am not allowed to use VBA for this project.

ABCD (formula used)
1tblOrders1[[#Totals];[Name]]=tblOrders1[[#Totals];[Name]]="="&CONCATENATE(A1;B1)
2tblOrders2[[#Totals];[Name]]=tblOrders2[[#Totals];[Name]]="="&CONCATENATE(A2;B2)
3tblCustomers1[[#Totals];[Name]]=tblCustomers1[[#Totals];[Name]]="="&CONCATENATE(A3;B3)

<tbody>
</tbody>

The concatenation works (column C) but I cannot convert text it to a formula. Some people have created a formula by adding a '=' in front of the concatenation, but that doesn't work for me.

Is there a way to create a formula from text which is in column C?

Thanks for your help.
 

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
Hi,
There are couple of ways to do this
Easiest would be to replace '=' by '=' in column C which turn your text in column C to formula.

The other way would be to use INDIRECT

=INDIRECT(CONCATENATE(A1;B1))


You do not want VBA solution but just for the reference

Code:
Function Eval(Ref As String)
    Application.Volatile
    Eval = Evaluate(Ref)
End Function
You can call this function in cell D1 =Eval(C1)

Hope it helps.
 
Upvote 0

Forum statistics

Threads
1,214,584
Messages
6,120,385
Members
448,956
Latest member
JPav

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