Formula or a vba code needed

prashanthdivya

Board Regular
Joined
Aug 23, 2011
Messages
75
Hello everyone,

I am in need of your help . I am given a report where every day I have to enter a formula manually since the data comes in 3 levels and the employees in these levels do not work every day so every day I need to input a formula in the columncalled Logs Handled% . Please have a look on this report


Excel Workbook
CDEFGHI
1LEVELDateLoggedRetainedNot RetainedRetention %Logs Handled %
2L123-Aug-112332013.04%31.08%
324-Aug-11313289.68%36.47%
425-Aug-11160160.00%25.40%
526-Aug-11131127.69%19.12%
627-Aug-113142712.90%33.70%
728-Aug-11330330.00%78.57%
829-Aug-111531220.00%21.13%
930-Aug-11180180.00%25.35%
101-Sep-115050.00%29.41%
112-Sep-11121118.33%22.22%
123-Sep-11190190.00%24.36%
134-Sep-11180180.00%36.73%
14L1 Total234152196.41%
15L227-Aug-111010.00%1.09%
162-Sep-111010.00%1.02%
174-Sep-111010.00%2.04%
18L2 Total3030.00%
19L323-Aug-1151163531.37%68.92%
2024-Aug-1154193535.19%63.53%
2125-Aug-1147123525.53%74.60%
2226-Aug-1155243143.64%80.88%
2327-Aug-1160154525.00%65.22%
2428-Aug-1192722.22%21.43%
2529-Aug-1156203635.71%78.87%
2630-Aug-1153163730.19%74.65%
2731-Aug-1112120100.00%70.59%
281-Sep-1141172441.46%77.36%
292-Sep-1185295634.12%26.56%
303-Sep-1159184130.51%75.64%
314-Sep-113072323.33%61.22%
Region Wise_Date Wise


and the formula I use in Logs handled % column i.e column I is =
E6/(E6+E23+E15) and this formula is not constant because I need to check for a particular day if employees in all the 3 level have worked then I need to add all the 3 levels data . If any one level is missing I need to add 2 levels data. Everyday I have to do it manually which is time consuming . Please help me on this ?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
In I2 try:

Code:
=E2/SUMIF($D$2:$D$31,D2,$E$2:$E$31)

and copy down

I assumed that your trying to calculate the % of logs handled at that level for that particular day
 
Last edited:
Upvote 0
welcome to the board

It looks like there is something in columns A or B that I can't see, which explains why you need to have the formulas changed as you do - either a name or a unique ID for each person

I am fairly sure that the answer you need is to use SUMIF and COUNTIF formulas, on a summary table, as follows:

You currently have a data table, to which you are adding formulas. Instead, create a separate table containing all staff IDs, and pull summary totals into it using the formulas mentioned. Then perform your calculations on this set of results

Using SUMIF and COUNTIF mean that values will only come into the summary table, if they exist in each of the sections of results L1, L2, L3, so you can use the same formula for everyone
 
Upvote 0
Welcome to the MerExcel baord!

Good to see you have got Excel jeanie working to show your sheet. However, showing so many of the formulas is generally not necessary and makes your post, and the thread, harder to read.

So a hint for next time: You can use the ‘Analyse range (Forum)’ field near the top left of the Excel jeanie screen to restrict the number of formulas generated. In that field, you can use Ctrl+Click/Drag to select multiple disjoint ranges if required. Just show one of each different type of formula and explain if they are copied down/across etc.
 
Upvote 0
In I2 try:

Code:
=E2/SUMIF($D$2:$D$31,D2,$E$2:$E$31)

and copy down

I assumed that your trying to calculate the % of logs handled at that level for that particular day
Thankyou very much Comfy

Thankyou every one of you for such a quick response
 
Upvote 0

Forum statistics

Threads
1,224,612
Messages
6,179,890
Members
452,948
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top