ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   can you nested sum and round function within if function? (https://www.excelbanter.com/excel-worksheet-functions/90894-can-you-nested-sum-round-function-within-if-function.html)

anna

can you nested sum and round function within if function?
 
Can you please tell how to sum one column of data and at the same time round
up or down I tried to use if function If (sum B2:B25) integer, round
(sumB2:B25, 0),sum((B2:B25) but it does not work excel does not recognize the
text in that case

Don Guillett

can you nested sum and round function within if function?
 
why not just use the round to start with?

--
Don Guillett
SalesAid Software

"anna" wrote in message
...
Can you please tell how to sum one column of data and at the same time
round
up or down I tried to use if function If (sum B2:B25) integer, round
(sumB2:B25, 0),sum((B2:B25) but it does not work excel does not recognize
the
text in that case




anna

can you nested sum and round function within if function?
 
ypu mean decrese decimal places on the first plaece?

"Don Guillett" wrote:

why not just use the round to start with?

--
Don Guillett
SalesAid Software

"anna" wrote in message
...
Can you please tell how to sum one column of data and at the same time
round
up or down I tried to use if function If (sum B2:B25) integer, round
(sumB2:B25, 0),sum((B2:B25) but it does not work excel does not recognize
the
text in that case





Harlan Grove

can you nested sum and round function within if function?
 
anna wrote...
ypu mean decrese decimal places on the first plaece?

"Don Guillett" wrote:
why not just use the round to start with?

....
"anna" wrote in message

....
up or down I tried to use if function If (sum B2:B25) integer, round

....

I'd guess Don meant why not use

=ROUND(SUM(B2:B25),0)

which would be the same as SUM(B2:B25) if that sum is a whole number
and rounded to the nearest integer otherwise.


anna

can you nested sum and round function within if function?
 
Thank you very simply and easy

"Harlan Grove" wrote:

anna wrote...
ypu mean decrese decimal places on the first plaece?

"Don Guillett" wrote:
why not just use the round to start with?

....
"anna" wrote in message

....
up or down I tried to use if function If (sum B2:B25) integer, round

....

I'd guess Don meant why not use

=ROUND(SUM(B2:B25),0)

which would be the same as SUM(B2:B25) if that sum is a whole number
and rounded to the nearest integer otherwise.




All times are GMT +1. The time now is 01:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com