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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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