Macro : Copy/Paste range of value with a Variable starting point

Helpco

New Member
Joined
Feb 4, 2013
Messages
1
Hi,

Thank you for reading this post.

I have a table containing the result for different races I extract from another software, compared over 2 year (2011, 2012)

The table look a bit like that :
20112012
AlphaBravoCharlieRomeoTOTAL AlphaBravoCharlieRomeoTOTAL
Race 11532475153354968958762293
Race 2545245242424551634568724785624248912
Race 352468424566853034698778587857786547809249
Race 46958747857878575781681067575857855755723072

<tbody>
</tbody><colgroup><col span="7"><col><col span="3"></colgroup>


The problem is, on the software I extract the data from, the number of columns can change (let's say there is an additional pilot).

In a new tab, I want to have only the result for the year 2012 (I use a color code to show if it was better than 2011, I don't need the actual result to be shown). I tried to use the function Indirect but I can't get it to work between two different worbook, the fuction I tried is :

=Tab1!INDIRECT($B$1&"7") Wich I want it to return Y7 of Tab1. (I typed Y in B1)

but as I say it does not work, any other idea ?????? a sort of Vlookup ???

thank you very much for your help, much appreciated

Co
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,216,076
Messages
6,128,669
Members
449,463
Latest member
Jojomen56

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