+ Reply to Thread
Results 1 to 18 of 18

Lookup function help needed

  1. #1
    Registered User
    Join Date
    08-21-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    10

    Lookup function help needed

    The problem:

    The cell in column M and N would need to lookup the name found in the A column and then find wherever they are used in sheet4 (which I mentioned
    acted as the array), then to the right of the cell where the name is found in sheet4, the score will be present. For some members, they
    have multiple scores (meaning they have been entered numerous times on the sheet. This is intended). I would need for all the scores for the specific member to be added up and added under the "Total Score"(N) column in their
    respective cell on the "testdb" sheet. As for the average score (M) column, I would like for their averages to be entered there.

    I have tried so much but this seems beyond me.
    Thank you for any assistance.

    I have attached a file called EFFile

    (ExcelForums EFFile.xlsm).

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Lookup function help needed

    See attached file .Formula in B2 is dragged across.
    ARRAY formulas are used

    How to enter ARRAY formula.
    Paste the formula
    Press F2
    Press Ctrl+Shift+Enter Keys together.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-21-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    10

    Re: Lookup function help needed

    You did work I did not even ask for...are you God?
    Thank you very much but I wont yet mark it as solved...I may need more help.
    Is that ok?

  4. #4
    Registered User
    Join Date
    08-21-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    10

    Re: Lookup function help needed

    In the # of valid scores column I tried to calculate the number of cells that are over zero for Kareen using the following formula:

    =COUNTIF(B5:K5,">0") is not working. It is returning zero. That is wrong. It should be 1.

    (Using your answered file)
    Last edited by dimthelights; 08-21-2014 at 07:50 AM.

  5. #5
    Registered User
    Join Date
    08-21-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    10

    Re: Lookup function help needed

    Another issue I found is when I entered in "Kareen" and "7" in sheet4's cells F22 and G22 respectively it did not update the results in the "testdb" sheet.

  6. #6
    Registered User
    Join Date
    08-21-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    10

    Re: Lookup function help needed

    bump.
    Anyone?

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Lookup function help needed

    Post #4: Because your numbers on Sheet4 and therefore testdb are saved as text. Select each column in sheet 4 that is supposed to have numbers, i.e. E and do a Text to Columns to convert them to numbers.

    Post #5: Kvsrinivasamurthy's formula only looks at columns D and E. With your multi-column entries, this gets much more complicated.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  8. #8
    Registered User
    Join Date
    08-21-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    10

    Re: Lookup function help needed

    Quote Originally Posted by ChemistB View Post
    Post #4: Because your numbers on Sheet4 and therefore testdb are saved as text. Select each column in sheet 4 that is supposed to have numbers, i.e. E and do a Text to Columns to convert them to numbers.
    I have applied this change and it still returns 0 as the answer.

    Post #5: Kvsrinivasamurthy's formula only looks at columns D and E. With your multi-column entries, this gets much more complicated.
    Is it even possible?
    This is way beyond me. If you could help that would be amazing.
    Last edited by dimthelights; 08-21-2014 at 12:03 PM.

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Lookup function help needed

    On Sheet4, will a name appear more than once in a single column?

  10. #10
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Lookup function help needed

    I just did it on the uploaded sheet.
    I selected Col E from sheet4, then Data>Text to Columns> Finish
    the numbers should jump from the left to the right.

  11. #11
    Registered User
    Join Date
    08-21-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    10

    Re: Lookup function help needed

    Quote Originally Posted by ChemistB View Post
    On Sheet4, will a name appear more than once in a single column?
    It will appear more than once in a single column, yes.
    And will more than likely appear in multiple columns too.

  12. #12
    Registered User
    Join Date
    08-21-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    10

    Re: Lookup function help needed

    Quote Originally Posted by ChemistB View Post
    I just did it on the uploaded sheet.
    I selected Col E from sheet4, then Data>Text to Columns> Finish
    the numbers should jump from the left to the right.
    When I tried to apply that to the A column on testdb sheet, the values within the cells disappeared.
    However when I tried it in an empty cell, for example E5, and entered in a value...it did everything correctly in corresponding L5 and M5.

  13. #13
    Registered User
    Join Date
    08-21-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    10

    Re: Lookup function help needed

    I used VALUE function to fix that issue.
    Now I need to have each successive scores in the columns.

  14. #14
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Lookup function help needed

    Okay so you can have the same name in different rows in the same column and in different columns in the same row. Does it matter what is the 2nd score? Are you reading up and down first or across first?

  15. #15
    Registered User
    Join Date
    08-21-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    10

    Re: Lookup function help needed

    Quote Originally Posted by ChemistB View Post
    Okay so you can have the same name in different rows in the same column and in different columns in the same row. Does it matter what is the 2nd score? Are you reading up and down first or across first?
    I'd just like the scores of individuals on sheet4 in their successive columns in the testdb Scores 1 2 3 etc columns.
    Example:
    a b
    1 alice 2
    2 bill 3
    3 Charlie 2
    4 alice 2

    As you can see, in this example of sheet4, the name "Alice" appears twice.
    However in testdb I'd the above to shown as

    a b c
    1 name score 1 score 2
    2 alice 2 2
    3 charlie 2
    4 bill 3


    Understand? I hope that made my query clearer.

  16. #16
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Lookup function help needed

    My question was, for this situation
    Alice 4 Alice 2
    Bill 1 Joe 5
    Alice 1 Joe 3
    Do you want Alice's scores to be 4, 2, 1 or 4, 1, 2 or it doesn't matter?

  17. #17
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Lookup function help needed

    Hi,

    Would you be able to re-attach your workbook with perhaps half a dozen or so random desired results entered, just so we know what we're aiming for?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  18. #18
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Lookup function help needed

    Pl see attached file.
    CountIf was not working because numbers are stored as text in testdb Sheet.I have changed it to values in formula.
    I have taken the ranges from column D:I, you can extend it also.
    Attached Files Attached Files

+ 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. [SOLVED] function needed, its for DATES, but I am ok w/ a lookup of text
    By James C in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2013, 04:29 PM
  2. [SOLVED] Lookup function, help needed
    By ChristopherH in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-04-2013, 07:40 AM
  3. Match or Lookup type function needed
    By erikasn in forum Excel General
    Replies: 19
    Last Post: 03-20-2012, 10:06 AM
  4. Lookup function needed?
    By KeiranMac in forum Excel General
    Replies: 3
    Last Post: 09-30-2009, 05:50 AM
  5. [Help Needed] Custom Lookup Function
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2005, 09:05 PM

Tags for this Thread

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