#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Danny
 
Posts: n/a
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Danny
 
Posts: n/a
Default 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




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default 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






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula for: Format Decimal places? nastech Excel Discussion (Misc queries) 16 November 4th 05 02:25 PM
h:mm to decimal value Brent E Excel Discussion (Misc queries) 4 October 11th 05 07:09 PM
FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT. SUKYKITTY Excel Discussion (Misc queries) 3 July 6th 05 01:50 PM
How do I override fixed decimal place settings in EXcel 2003? jroyv Excel Worksheet Functions 2 February 11th 05 06:07 PM
decimal point override does not work Sam Brauen Excel Discussion (Misc queries) 0 January 6th 05 05:29 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"