Request Macro

Status
Not open for further replies.

rohithbli

New Member
Joined
Jun 21, 2018
Messages
2
The column "name" must match with column "formula"


ex :the Value "Calculation_385057835130777604" must match in column "Formula" and must replace with column "Caption" value

"Calculation_385057835130777604" must change to "Year_Brand"

[TABLE="class: cms_table, width: 1091"]
<tbody>[TR]
[TD]caption[/TD]
[TD][/TD]
[TD]name[/TD]
[TD]formula[/TD]
[/TR]
[TR]
[TD]Year_Brand[/TD]
[TD][/TD]
[TD][Calculation_385057835130777604][/TD]
[TD]if [Parameters].[Parameter 2] = "This year" then [Calculation_385057835129393153]



elseif [Parameters].[Parameter 2] = "Current Month" then [Calculation_385057835129593858]



else [Calculation_385057835129860099]



END[/TD]
[/TR]
[TR]
[TD]Previous Year_[/TD]
[TD][/TD]
[TD][Calculation_385057835142270982][/TD]
[TD][Parameters].[Parameter 1]-1[/TD]
[/TR]
[TR]
[TD]ΔPY YTD_Brand[/TD]
[TD][/TD]
[TD][Calculation_385057835145179143][/TD]
[TD]SUM([Calculation_385057835130777604])-SUM([Data Shown Filter (copy)])[/TD]
[/TR]
[TR]
[TD]EU_YTD[/TD]
[TD][/TD]
[TD][Calculation_385057835146694665][/TD]
[TD]{ FIXED [Month],[SEGMENT] : SUM([Calculation_385057835130777604])}[/TD]
[/TR]
[TR]
[TD]Current Month_prev[/TD]
[TD][/TD]
[TD][Current Month (copy)][/TD]
[TD]if year([Month]) = year([Calculation_385057835142270982]) and month([Month]) = month([Parameters].[Year (copy)]) then [Zulassungen] end[/TD]
[/TR]
[TR]
[TD]Previous_Year_Brand



[/TD]
[TD][/TD]
[TD][Data Shown Filter (copy)][/TD]
[TD]if [Parameters].[Parameter 2] = "This year" then [This year (copy)]



elseif [Parameters].[Parameter 2] = "Current Month" then [Current Month (copy)]



else [YTD (copy)]



END


I am looking macro to replace the duplicate values with "A" Column Values.

Thanks in advance


Regards
Rohit[/TD]
[/TR]
</tbody>[/TABLE]

 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Status
Not open for further replies.

Similar threads

Forum statistics

Threads
1,226,264
Messages
6,189,923
Members
453,579
Latest member
MK1212

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