+ Reply to Thread
Results 1 to 7 of 7

Return value based on name combine score if same name

  1. #1
    Forum Contributor
    Join Date
    08-22-2005
    MS-Off Ver
    Office 365
    Posts
    342

    Return value based on name combine score if same name

    Hello Excel Peeps - This is for excel 2010.

    I attached test workbook is working as needed with kudos going out to @Ace_XL and @nflsales (Thanks for getting me up and running)

    However at the time @nflsales asked me a question

    Quote Originally Posted by nflsales View Post
    In your sheet you have multiple locations for some advisors in this case what is you expected results
    When I answered him I had forgotten that there are times when Advisors could move locations through out the year.

    So I need a small tweak or two to the formulas in this workbook to accommodate the situation when an advisor moves locations.

    In the test book I have added more info to explain expected result when an advisor moves locations.

    See blue box on cases tab first
    Then see blue box(s) on Advisor NPS tab.

    Let me know if you have any questions to help resolve.

    And Thank You in advance.
    Attached Files Attached Files

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

    Re: Return value based on name combine score if same name

    My suggestion would be to add a helper formula in Cases sheet:

    In E2:

    =IF(COUNTIFS($B$2:$B2,$B2,$D$2:$D2,$D2)=1,COUNT(E$1:E1)+1,"")

    copied down.

    You can add a new Dynamic Named Range for this called: Helper and with formula: =Cases!$E$2:INDEX(Cases!$E:$E,COUNTA(Cases!$D:$D))

    Then formula in B6 of the Advisor NPS would change to:

    =IFERROR(INDEX(Advisor,MATCH(ROWS($B$2:$B2),Helper,0)),"")


    And each of the formulas in columns C:E in the Advisor NPS tab, add the condition: *(Location=$A6)

    e.g. in C6:

    =SUMPRODUCT((Interview_Date>=TEXT($A$4,"yyyymmdd")*1)*(Interview_Date<=TEXT($B$4,"yyyymmdd")*1)*(Advisor=$B6)*(Location=$A6)*(LTR="Extremely Likely"))

    and formula in G6 could become:

    =((C6-E6)/(C6+D6+E6))/COUNTIFS(A:A,A6,B:B,B6)

    copied down

    By the way, you can get rid of all the #N/A errors in this sheet by adding an IF() check to each formula in column A, C:G checking if B is blank,

    e.g. in A6:

    =IF($B6="","",INDEX(Cases!B:B,MATCH(B6,Cases!D:D,0)))
    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 Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Return value based on name combine score if same name

    See if the attached helps
    Attached Files Attached Files
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Contributor
    Join Date
    08-22-2005
    MS-Off Ver
    Office 365
    Posts
    342

    Re: Return value based on name combine score if same name

    Almost there...

    @NBVC thanks for the suggestion - rep sent.

    @Ace_XL - thanks for the suggestion - rep sent.

    I did use @Ace_XL suggestion as it appeared to be a cleaner fix.

    But still need to figure out the column G formula to return the real result for Bill B based on being in two locations.
    The suggestion @NBVC made did not return the desired result.

    See workbook - and blue box for expected result

    Also is there a way to hide #Div/0! until a value is populated?
    Attached Files Attached Files
    Last edited by SVTF; 11-28-2014 at 12:18 PM.

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

    Re: Return value based on name combine score if same name

    Here is my attachment... where does it go wrong?
    Attached Files Attached Files

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Return value based on name combine score if same name

    In G6

    Please Login or Register  to view this content.
    Copy down

  7. #7
    Forum Contributor
    Join Date
    08-22-2005
    MS-Off Ver
    Office 365
    Posts
    342

    Re: Return value based on name combine score if same name

    @NBVC did not return the desired result of -25 based on the 2nd workbook I posted.
    @Ace_XL that is one long a** formula LOL ... but it appears to be working.

    I will test it in the real data document and if works will mark this thread as solved.

    Thank You to both of you for your time.

    Stay tuned ... rep sent again to each.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 02-19-2014, 06:02 AM
  2. [SOLVED] Formula to return score of 0-100 based on column of number data?
    By theronager in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-22-2013, 06:45 PM
  3. Replies: 6
    Last Post: 10-19-2012, 01:27 AM
  4. Pulling test score based on date, not highest score.
    By PowerSchoolDude in forum Excel General
    Replies: 2
    Last Post: 12-01-2009, 06:42 PM
  5. formula to work out score based on score system
    By Nathaniel82 in forum Excel General
    Replies: 5
    Last Post: 08-10-2009, 11:25 AM

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