+ Reply to Thread
Results 1 to 12 of 12

Issue with merging 2 caclulations to look up and sum

  1. #1
    Forum Contributor
    Join Date
    05-18-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    126

    Issue with merging 2 caclulations to look up and sum

    Hello All,

    I m working on a requirement to calculate the Points by calculating in 2 different sheets.
    Please find attached.
    in sheet one (Employee), I have employee and points he attained.
    In sheet two: (Status), I have employee's status of trainings whether he passed.
    In sheet three: (Metric), I have list of points that each course is worth.

    I need to calculate the points in Sheet one in column B with a formula.
    Ex: Employee 1 has passed Course A and Course D (from 'Status' tab) and Course A is worth 3 points and Course D is worth 2 Points (From 'Metric' tab).
    So his total points would be 5 Points. (in 'Employee' tab, B column)

    Could some be of help please?

    or if you can advise which formula would be suitable to use, I would explore little bit more on it.

    Many thanks for your time.

    Best Regards,
    Dhinesh.
    Attached Files Attached Files
    Last edited by dhineshreddy; 07-05-2017 at 07:58 AM.

  2. #2
    Registered User
    Join Date
    05-08-2017
    Location
    Langen, Germany
    MS-Off Ver
    2003
    Posts
    5

    Re: Suitable formula

    Hi Dhinesh,

    I would use another sheet (StatusPoints) that contains the points table based on the table in Status sheet using the vlookup function. Then sum the points for each employee. Than you can use the lookup function again in the Employee sheet - see attached.

    Regards, Ralf.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    05-18-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    126

    Re: Suitable formula

    Hello Ralf, Thank you for your time!

    I m afraid I can not have another tab like the way advised.

    Many thanks!
    Dhinesh.

  4. #4
    Registered User
    Join Date
    05-08-2017
    Location
    Langen, Germany
    MS-Off Ver
    2003
    Posts
    5

    Re: Suitable formula

    Manual way is also possible, but more complicated and less flexible:
    Content of B2 in Sheet Employee:
    =IF(VLOOKUP(A2,Status!A:E,2,0)="Passed",VLOOKUP(INDEX(Status!$1:$1,1,2),Metric!A:B,2,0),0)+IF(VLOOKUP(A2,Status!A:E,3,0)="Passed",VLOOKUP(INDEX(Status!$1:$1,1,3),Metric!A:B,2,0),0)+IF(VLOOKUP(A2,Status!A:E,4,0)="Passed",VLOOKUP(INDEX(Status!$1:$1,1,4),Metric!A:B,2,0),0)+IF(VLOOKUP(A2,Status!A:E,5,0)="Passed",VLOOKUP(INDEX(Status!$1:$1,1,5),Metric!A:B,2,0),0)

    Regards, Ralf.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Issue with merging 2 caclulations to look up and sum

    Try this formula in B2 'Employee' and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Issue with merging 2 caclulations to look up and sum

    This works, too. It must be array entered. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Edit By the way. Cell D1 'Status' has "Course" misspelled. It was "Cource".
    Last edited by FlameRetired; 07-05-2017 at 12:00 PM.

  7. #7
    Forum Contributor
    Join Date
    05-18-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    126

    Re: Issue with merging 2 caclulations to look up and sum

    Thank you very Much! that is just great... This way I can learn little bit more about the functions used.
    Very kind.

  8. #8
    Forum Contributor
    Join Date
    05-18-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    126

    Re: Suitable formula

    Thank you Very Much Ralf... Very Kind of you!

  9. #9
    Forum Contributor
    Join Date
    05-18-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    126

    Re: Issue with merging 2 caclulations to look up and sum

    Hello Sir, I was too early... Just testing it now Properly...

    formula Seems to be less flexible. It does not know the course names and It does not know the ones that employee has passed.
    Ex: in the metric tab, If I change course name to the course that employee has not passed, Ex: Course Z, System still calculates the points.

    We need it to work dynamically..which checks for courses that employee has passed against the courses maintained in metric tab.

    are you able to help please?

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,769

    Re: Issue with merging 2 caclulations to look up and sum

    Try

    in B2

    =SUMPRODUCT((INDEX(Status!$B$2:$E$5,MATCH($A2,Status!$A$2:$A$5,0),0)="Passed")*(Status!$B$1:$E$1=Metric!$A$2:$A$5)*(Metric!$B$2:$B$5))

  11. #11
    Forum Contributor
    Join Date
    05-18-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    126

    Re: Issue with merging 2 caclulations to look up and sum

    It has done the job... thank you very very much. saved my weekend.

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,769

    Re: Issue with merging 2 caclulations to look up and sum

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. formula for this?
    By vimalanathk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-21-2016, 03:20 AM
  2. Filling the cell with the data in second sheet
    By azbi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-20-2015, 01:12 AM
  3. Suitable formula function to make solution
    By iqubalemco in forum Excel - New Users/Basics
    Replies: 16
    Last Post: 09-28-2014, 11:57 PM
  4. last 6 games form in soccer matches,suitable formula
    By davide2574 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-23-2014, 06:03 AM
  5. HELP Using the =if formula (or a more suitable one for my needs).
    By tomow87 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2014, 11:51 PM
  6. [SOLVED] What is the suitable formula if getting error: #VALUE!
    By umais41 in forum Excel General
    Replies: 4
    Last Post: 12-31-2012, 03:19 PM
  7. Replies: 3
    Last Post: 03-29-2010, 10:07 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