Calculations Based On Tabs

ClarianAutomation

New Member
Joined
Jan 21, 2019
Messages
7
Hi Guys,

New here and done some searching but as I don't know what to call what I am looking for I struggled to find anything.

What I would like to do is on my first tab (Costings) I have a list of the other tabs that are created when pricing up work. On these other tabs in exactly the same cells are Cost Price and Selling Price, I would like to automatically show this value on the front sheet. I have been using a simple ='Tab1'!D6' to gather the cell from that tab in cell D6. This works ok but some of my jobs have many tabs and therefore I have to type out each formula as/when the tabs is generated.

Is there a way (Macro or VBA) to automatically populate this row when a new tab is created using both the data in Cell D6 and the tab name?

i.e
[TABLE="width: 500, align: center"]
<tbody>[TR]
[TD]Existing Product[/TD]
[TD]='ExistingTab'!D6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]New Product[/TD]
[TD]='NewTab'!D6[/TD]
[TD]<-Populated Automatically[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Totals[/TD]
[TD]Sum Of Column[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Kind Regards,

Ian
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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