LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Using EQUIV and INDEX fonction in vba

Hello,
I have a database which is like the folowing (sheet #1):
Column 1 is an index (like SSN)
Column 2 to 27 is data
I would like to make a second sheet which is linked to the first sheet using
reference formula. So, the order of the sheet#1 can change without affecting
the sheet #2. I have tried to program that but does't work well.
c = ActiveSheet.Name
ActiveSheet.Copy Befo=Sheets(1)
d = ActiveSheet.Name
Columns("B:B").Insert ' This column will contain the MATCH function
Range("B3:B100").FormulaR1C1 = "=MATCH(RC[-1]," & c & "!A:A,0) 'this
gives #NAME in excel but if I click on, excel calcul the value
Range("C3:AB100").FormulaR1C1 = "=INDEX('" & c & "'!A:AZ,'" & d &
"'!RC[1]," & column()-1 & ")"

Any idea ?
Thanks !
--
Alex St-Pierre
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Countifs equiv in 2003 Dan Excel Discussion (Misc queries) 6 August 26th 09 08:30 AM
Max() Dmax() Looking for MaxIf() Equiv. Derek P[_2_] Excel Worksheet Functions 5 January 6th 09 02:53 PM
Help with max() fonction anyways Excel Worksheet Functions 3 February 22nd 06 04:46 PM
Using "Equiv" excel fonction in vba Alex St-Pierre Excel Programming 1 January 7th 06 01:36 AM
=FONCTION(CELLULE(A1)) ? Olivier SOW Excel Programming 0 June 30th 05 09:41 AM


All times are GMT +1. The time now is 05:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"