ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Decimal Issues (https://www.excelbanter.com/excel-worksheet-functions/90340-decimal-issues.html)

Danny

Decimal Issues
 
I am using the following formula: =("Cost per Unit
="&SUMIF(G26:G44,"yes",N26:G44)

I have also used the same formula, but using sum instead of sumif.

In all case the resultant value varies in decimal places. The above formula
yieds 14 decimal places.

In the formulas using SUM only, the decimal places vary.

I checked the summed range and all the cells are set to zero decimal places.
I have also tried formatting the cell. Interestinly, the value shows in the
header, but changing the number of decimals does not affect the result.

Thanks in advance,

Danny


Decimal Issues
 
Hi

Formatting the cell will make no difference because the formula gives you
text as a result. Try this:
="Cost per Unit ="&TEXT(SUMIF(G26:G44,"yes",N26:G44),"0.00")
for two decimal places etc.

Hope this helps.
Andy.

"Danny" wrote in message
...
I am using the following formula: =("Cost per Unit
="&SUMIF(G26:G44,"yes",N26:G44)

I have also used the same formula, but using sum instead of sumif.

In all case the resultant value varies in decimal places. The above
formula
yieds 14 decimal places.

In the formulas using SUM only, the decimal places vary.

I checked the summed range and all the cells are set to zero decimal
places.
I have also tried formatting the cell. Interestinly, the value shows in
the
header, but changing the number of decimals does not affect the result.

Thanks in advance,

Danny




Danny

Decimal Issues
 
Andy,

Hello

You nailed it, Thanks! and thanks for the quick response.
I'll have to write this down as it is one for the memory, but the memory
sometimes needs help!

Danny



"Andy" wrote:

Hi

Formatting the cell will make no difference because the formula gives you
text as a result. Try this:
="Cost per Unit ="&TEXT(SUMIF(G26:G44,"yes",N26:G44),"0.00")
for two decimal places etc.

Hope this helps.
Andy.

"Danny" wrote in message
...
I am using the following formula: =("Cost per Unit
="&SUMIF(G26:G44,"yes",N26:G44)

I have also used the same formula, but using sum instead of sumif.

In all case the resultant value varies in decimal places. The above
formula
yieds 14 decimal places.

In the formulas using SUM only, the decimal places vary.

I checked the summed range and all the cells are set to zero decimal
places.
I have also tried formatting the cell. Interestinly, the value shows in
the
header, but changing the number of decimals does not affect the result.

Thanks in advance,

Danny






Decimal Issues
 
I know the feeling! Thanks for the feedback.
Andy.

"Danny" wrote in message
...
Andy,

Hello

You nailed it, Thanks! and thanks for the quick response.
I'll have to write this down as it is one for the memory, but the memory
sometimes needs help!

Danny



"Andy" wrote:

Hi

Formatting the cell will make no difference because the formula gives you
text as a result. Try this:
="Cost per Unit ="&TEXT(SUMIF(G26:G44,"yes",N26:G44),"0.00")
for two decimal places etc.

Hope this helps.
Andy.

"Danny" wrote in message
...
I am using the following formula: =("Cost per Unit
="&SUMIF(G26:G44,"yes",N26:G44)

I have also used the same formula, but using sum instead of sumif.

In all case the resultant value varies in decimal places. The above
formula
yieds 14 decimal places.

In the formulas using SUM only, the decimal places vary.

I checked the summed range and all the cells are set to zero decimal
places.
I have also tried formatting the cell. Interestinly, the value shows
in
the
header, but changing the number of decimals does not affect the result.

Thanks in advance,

Danny








All times are GMT +1. The time now is 05:41 PM.

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