+ Reply to Thread
Results 1 to 6 of 6

Data changes with different number

  1. #1
    Forum Contributor
    Join Date
    05-16-2010
    Location
    glasgow scothland
    MS-Off Ver
    Excel 2007
    Posts
    112

    Data changes with different number

    Hi all,

    Is this possible in excel,
    i have a w/book with 2 sheets.if a saleperson on figures sheet number changes then his data on totals sheet changes to suit. example if salesperson john(V2) on figures sheet changes his number in W2 from 3 to 4 then on totals sheet should now display data from column P2:P11 and not his current data (k2:k11) .

    I hope this is clear enough for someone to understand.
    Attached Files Attached Files
    Last edited by mdshotgun; 08-19-2010 at 07:45 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Data changes with different number

    Try:

    =INDEX(Figures!$A$1:$T$11,ROWS($A$1:$A2),MATCH(Figures!W$1&Figures!W$2,Figures!$A$1:$T$1,0))

    copied down and across.

    You just need to adjust the W$2 for each person's table accordingly. (e.g. for OWEN you use W$3)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data changes with different number

    Put this formula in B2 and copy down/across to F11:
    =INDEX(Figures!$A$2:$T$11, ROW(A1), MATCH(B$1&Figures!W$2,Figures!$A$1:$T$1,0))

    In B14:
    =INDEX(Figures!$A$2:$T$11, ROW(A1), MATCH(B$1&Figures!W$3,Figures!$A$1:$T$1,0))

    In B26:
    =INDEX(Figures!$A$2:$T$11, ROW(A1), MATCH(B$1&Figures!W$4,Figures!$A$1:$T$1,0))

    In I2:
    =INDEX(Figures!$A$2:$T$11, ROW(A1), MATCH(B$1&Figures!W$5,Figures!$A$1:$T$1,0))

    In I14:
    =INDEX(Figures!$A$2:$T$11, ROW(A1), MATCH(B$1&Figures!W$5,Figures!$A$1:$T$1,0))

    In I26:
    =INDEX(Figures!$A$2:$T$11, ROW(A1), MATCH(B$1&Figures!W$6,Figures!$A$1:$T$1,0))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Contributor
    Join Date
    05-16-2010
    Location
    glasgow scothland
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: Data changes with different number

    Thanks enormously to you both for the great formula's.
    but could you explain how this formula is evaluated,I always pressumed in a nested formula like this its evaluated from the right first.
    but when i use evaluate formula it starts with the row(s) part first.

    sorry i am just trying to understand.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Data changes with different number

    This is not a nested formula. It is the INDEX() function and it needs to know what it's arguments are before it evaluates... so it needs to evaluate each argument to find out what the row and column arguments are before it can resolve the INDEX() itself.

  6. #6
    Forum Contributor
    Join Date
    05-16-2010
    Location
    glasgow scothland
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: Data changes with different number

    ok, i am learning,

    Thanks for clearing that up for me.

+ 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