Hi,
I have a data like this for each Province and City, and simply convert the decimal "Value" to Integer "Value_Integer" using simple round & integer function.
However, as you can see, the total using column "Value" in Province A, is different from the Total using "Value_Integer" because of that round function.
What I want is if :
1. Total between original value and integer value for that Province is the same (like Province B) , do not do anything
2. Total between original value and integer value for that Province is different (like Province B), column "Value_Integer" will change a little bit, with maximum difference with original value is only 1, so it match with the total from decimal value.
Any help will be very appreciated.
Thank you so much.
I have a data like this for each Province and City, and simply convert the decimal "Value" to Integer "Value_Integer" using simple round & integer function.
However, as you can see, the total using column "Value" in Province A, is different from the Total using "Value_Integer" because of that round function.
What I want is if :
1. Total between original value and integer value for that Province is the same (like Province B) , do not do anything
2. Total between original value and integer value for that Province is different (like Province B), column "Value_Integer" will change a little bit, with maximum difference with original value is only 1, so it match with the total from decimal value.
Any help will be very appreciated.
Thank you so much.