• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Compute amount with 4 variables

Hello Gurus,

I am trying to compute the Debit Amount based on 4 variables. The variables are Analytic Account, Analytic Tags in the journal tab, and Salary in the emp tab, and quantity in the hours tab.

Example: I got $2,039.95 by taking 9 Hours/ 23 Hours * $5,213.20 highlighted in red in the journal tab

CAM Depart Total Salary is $5,213.50 (This is from emp tab)
CAM Depart has the following Analytic Account

Admin 2021 has 9 Hours (This is from hours tab)
J366 has 8 Hours (This is from hours tab)
Management 2021 has 6 Hours (This is from hours tab)

Total CAM Depart Hours is 23 Hours


Really appreciate your help.
 

Attachments

  • test 03-06-2021.xlsx
    20.8 KB · Views: 3
Try,

1] Convert "hours" tab Column C, from text value into numeric value by :

>> Select C2:C17 >> "Data" >> "Text to Column" >> choose "Delimited" >> click "Finish"

then

2] In "journal" tab L2, formula copied down :

=IF(I2="","",SUMIFS(hours!C:C,hours!D:D,J2,hours!E:E,I2)/SUMIFS(hours!C:C,hours!D:D,J2)*SUMIFS(emp!D:D,emp!C:C,J2))

73643
 
Last edited:
Back
Top