+ Reply to Thread
Results 1 to 12 of 12

Pulling Statistics Based on Name

  1. #1
    Registered User
    Join Date
    05-16-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    15

    Pulling Statistics Based on Name

    Hi,

    Was hoping for a solution to this problem. I have two spreadsheets one that arranges salespeople by role and there associated statistics and the other that arranges them by store. I basically want the statistics from the role based spreadsheet to populate into the stor based spreadsheet based on the salesman name.

    Thanks in anticipation.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,413

    Re: Pulling Statistics Based on Name

    Post a sample file that we can look at and work on - you'll get far more responses that way.

    Pete

  3. #3
    Registered User
    Join Date
    05-16-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Pulling Statistics Based on Name

    Hi Pete,

    Please see attached,it probably isnt that complex a solution I just cant figure it myself.

    Cheers
    Attached Files Attached Files

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,413

    Re: Pulling Statistics Based on Name

    Well, it's quite involved ...

    I've inserted a new column C and a new column E in your "store" sheet, and put this formula in E3:

    =MATCH(D3,'Data By Role'!$5:$5,0)

    which finds which column the Role is located on in the "Role" sheet, and this formula in C3:

    =MATCH(B3,INDIRECT("'Data By Role'!"&CHAR(E3+64)&":"&CHAR(E3+64)),0)

    which finds the row where the name is located in the appropriate column of the "Role" sheet. Both of these columns help to reduce the size of the formula needed to retrieve the actual data, which is located in F3:

    =INDEX('Data By Role'!$A:$AJ,$C3,$E3+COLUMNS($A$1:A$1))

    and this can be copied across and down as necessary, as can be seen in the attachment.

    Hope this helps.

    Pete
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Pulling Statistics Based on Name

    If columns are used in same format as in 'Data by Store' tab, try this.

    D3, then copy down & across

    Please Login or Register  to view this content.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  6. #6
    Registered User
    Join Date
    05-16-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    15

    Thumbs up Re: Pulling Statistics Based on Name

    Quote Originally Posted by pete_uk View Post
    well, it's quite involved ...

    I've inserted a new column c and a new column e in your "store" sheet, and put this formula in e3:

    =match(d3,'data by role'!$5:$5,0)

    which finds which column the role is located on in the "role" sheet, and this formula in c3:

    =match(b3,indirect("'data by role'!"&char(e3+64)&":"&char(e3+64)),0)

    which finds the row where the name is located in the appropriate column of the "role" sheet. Both of these columns help to reduce the size of the formula needed to retrieve the actual data, which is located in f3:

    =index('data by role'!$a:$aj,$c3,$e3+columns($a$1:a$1))

    and this can be copied across and down as necessary, as can be seen in the attachment.

    Hope this helps.

    Pete
    thanks heaps!!!

  7. #7
    Registered User
    Join Date
    05-16-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Pulling Statistics Based on Name

    Hi Pete,

    I was wondering if you could update the formula for the attached sheet. It's the same problem but I have recently added some columns so the formula you provided is producing an error.

    Greatly Appreciated.
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Pulling Statistics Based on Name

    Try,

    D3, copy across & down.

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    05-16-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Pulling Statistics Based on Name

    Hi Haseeb,

    I can see that the formula works, but am having trouble tranferring it to my actual spreadsheet. Any tips?

  10. #10
    Registered User
    Join Date
    05-16-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Pulling Statistics Based on Name

    More specifically the error that I get is N/A "This error indicates that a value is not available to a function of formula". The first line works but the second does not. Any advice?

  11. #11
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Pulling Statistics Based on Name

    Can you please attach your actual sheet with dummy data. Columns & rows where data starts.

  12. #12
    Registered User
    Join Date
    05-16-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    15

    Cool Re: Pulling Statistics Based on Name

    Hi Haseeb,

    I solved the problem by reformatting the data to a flat format and then used VLOOKUP COLUMNS formula to pull the data.

    Thank You for your help, I will look to use this forum in the future.

+ 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