+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Dynamic references to cells

  1. #1
    Registered User
    Join Date
    11-24-2008
    Location
    São Paulo - Brasil
    Posts
    1

    Dynamic references to cells

    Hello I have two spread sheets with that have two columns of numbers that are supposed to reference each other for example:

    Spreadsheet 1 column B:
    10320001
    10320004
    10320005
    10320006
    10320007

    Spreadsheet 2 column F
    10320001
    10320004
    10320005
    10320005
    10320006
    10320007
    10320007

    Now I need to change the values of the spreadsheet 1 and keep them consistent with spreadsheet 2, for example if I change 10320007 to 5689 in spreadsheet 1, then all the values in spreadsheet 2 that are 10320007 must change to 5689.

    I have been able to find a formula that returns to me what is the line of the spreadsheet 1 that corresponds to a value in spreadsheet 2 (this is a standard excel formula, but I only know it's name in portuguese: CORRESP). In the example above the function would return 5 if I inputted 10320007.

    Using this I could create a new column C in spreadsheet 1 with the new numbers that I want to update.

    10320001 5685
    10320004 5686
    10320005 5687
    10320006 5688
    10320007 5689

    Then I would get value of the cell defined by the intersection of the line number I got from the function and column C, that would amount to something like this: ='Spreadsheet1'!C (myFunction(10320007)).

    So far excel has returned me nothing but errors...

    Could you help me?

    Thanks,
    Komyg

  2. #2
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    G'day komyg,

    and welcome to the Exceltip forum.

    I'm sorry I am having trouble understanding what you would like to accomplish.

    Firstly the function named 'CORRESP' translates into 'MATCH'

    Do you want the same cell that has the number 10320007 to change into the number 5689 ?

    Or to help you with the formula you supplied. ='Spreadsheet1'!C (myFunction(10320007)).

    Try this

    =ÍNDICE('Spreadsheet1'!C:C,CORRESP(10320007,'Spreadsheet1'!B:B,0))

    English version

    =INDEX('Spreadsheet1'!C:C,MATCH(10320007,'Spreadsheet1'!B:B,0))

    Please note: That you have to replace the , in the formula with ; and where the number is you can replace that with a cell reference (if you like).

    Here is a link that will help you translate the english formulas you see here in this great forum

    Translation Page

    Hope this helps
    Last edited by ratcat; 11-25-2008 at 02:30 AM. Reason: re sizing font
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1