Using ROUNDDOWN in pivot table calculated field

geolac82

New Member
Joined
Sep 5, 2016
Messages
3
Hi,

I would like to use the ROUNDDOWN function in a calculated field on a pivot table but I am not having much luck nesting the function with the formula of the calculated field.

The calculated field formula currently looks like this:

= COLUMNX/COLUMNY

Column X contains hh:mm:ss data formatted as seconds only. Column Y contains whole numbers. How would I incorporate round down into this calculated field so the calculation rounds down the result?

Thanks
Damian
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Welcome to the forum.

What level of precision are you trying to round to?
 
Upvote 0
Welcome to the forum.

What level of precision are you trying to round to?

Thanks. I'd like to round down to the nearest whole number i.e. 64.5 down to 64. The number of decimal places the calculated field can produce varies though.

I wasn't sure whether the issue I was having was due to the fact that one field is in time format?

Thanks in advance.
 
Upvote 0
The format isn't really relevant. The function will work on the actual values returned. If those are times, you need to be aware that they are actually stored as fractions of of one day.
 
Upvote 0
Too easy. I've actually converted the time format to be seconds only because I display the values in the pivot table as seconds only. So when I type the formula in the calculated field as follows:

=ROUNDDOWN(COLUMNX/COLUMNY,1)

It zeroes out all the data in my pivot table.
 
Upvote 0
I've actually converted the time format to be seconds only

If all you've done is changed the formatting, then you're still dealing with really small numbers. One second is stored as 1/86400 or roughly 0.00001157.

You'd probably be better off multiplying the time values by 86400 to get a true number of seconds, divide that by your other field and then round down.
 
Upvote 0

Forum statistics

Threads
1,215,348
Messages
6,124,425
Members
449,157
Latest member
mytux

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