Get rid of rounding error
Our take
Hello, got a problem with a spreadsheet at work.
For an calculation I need to calculate the average Full time equivalent of staff.
Sheet is set up like this this: Column A: Person ID Column B: duration of period in days Column C: full-time equivalent Column D: weighted full-time equivalent for period Column E: average Full time equivalent over year
Column A to C are preset base data. Formulas are in column D and E Calculation is basically done, broken down the formula is:
In column D: =ROUND([duration days]/365Γ[Full time eqivalent for period];4)
In column E it is: =SUMIF([Person ID]; [Person ID]; [Weighted for period])
But because if the rounding it doesn't add up to 1, it gies to 0,9999, even if the full year average is 1.
Any ideas, how to fix that? (Other than IF(0,9999; 1; do the math) π)
Was thinking about something like " if all Full time equivalent for period (column C) for one person ID (column A) are 1,0000, then make the average over year 1,0000, if not make the calculation based on my current formula for column E" but I can't get the operators right for that.
Thanks in advance fir any helpπ
Edit: moving rounding to column E instead of D did the trick. Sometimes its the obvious stuff xD
Thanks to all
[link] [comments]
Read on the original site
Open the publisher's page for the full experience
Related Articles
- Small Business rounding issueHi, Can anyone identify why my spreadsheet is calculating the total to be $6133.33 instead of $6133.20? 153.33 total hours x $40/hr. I've been using the same spreadsheet for a year, the formulas are correct, this hasn't happened before, I can't figure out how to fix it. This is on sheets. Thank you https://preview.redd.it/0tzyhv5xkkxg1.png?width=708&format=png&auto=webp&s=7376ba5124c04fef83cea620b23810079a01655f https://preview.redd.it/lp1vzu5xkkxg1.png?width=702&format=png&auto=webp&s=68ca02b9d005fff97f4f69615e542d85fb02c9d1 https://preview.redd.it/5g9zi96blkxg1.png?width=1042&format=png&auto=webp&s=956143ad31c7e99cbd5551ba3f9ac9e1dff00639 submitted by /u/alicat9 [link] [comments]
- Blank cells are being summed as a value greater than five using a SUM(IF functionHi! I have a large dataset of 7-day schedules that I am summing to calculate breaks. The function is setup like this: =SUM(IF(CELL1>5, 0.5, 0)), (IF(CELL2>5, 0.5, 0)) and so on until all seven days are tabulated. Because a full time person would only work 5 days a week, at least 2 days are blank per row, but we're open all 7 days and I want to sum the entire spreadsheet, so I have to count all 7 days. A full time person should have 2.5 hours per week. For some reason the function is mostly working, but about a third of the results are larger than they should be because it's counting some blank cells as greater than 5. For example, a part time person working only 3 days should have 1.5 break hours, but the function returns 3.5 because it is counting all the blank cells as containing a value > 5. What's really strange is it is only doing this some of the time. Every row has at least two blank cells, but only about a third of the sums are wrong. I can't figure out why. The columns are all formatted as a number. The value does update correctly if I manually enter a "0" in the blank cells, but this is a very large dataset and that would take forever. Thoughts? submitted by /u/andylefunk [link] [comments]
- Index Match or Xlookup to return sum of row values based on matching two horizontal lookups?Ask: If E59:S59=E111 AND E60:s:60<-E112, give me the sum of E61:71,else return 0 What is the smoothest formula for this? I added in what I'm trying to do on the formula line. ChatGPT is less helpful with this than I am. I want to bundle by phase because our timesheet system doesn't allow me to pull a report by phase/task, only by person. I tried Xlookup but kept getting SPILL errors so I am at a loss. FTE1 is a different category and should not be included (PM, I can plug that as it's always in the same position). Thanks in advance for your help. https://preview.redd.it/yp4yzfn2rcxg1.png?width=2560&format=png&auto=webp&s=86eed1d2c8f3bb97c6d49592a0b1978d5f80f365 submitted by /u/Regular_or_BQ [link] [comments]
- Calculate hours and minutes correctlyI've got a small issue when trying to calculate "worked hours" In excel the data is formated as "time" and the cells have "6:00" "6:30" "8:30" but when I try to use formulas to calculate the total worked hours I keep getting 0 as results. If I change to , instead of : it works but there's constantly new hours added into the sheet and I wonder if there's some kind of fix for this issue? Tldr: want to calculate hours and minutes, formated as time and with : It works with 6,00 8,00 etc but not 6:00 8:00. submitted by /u/JDaleth [link] [comments]