Solved

Convert Scientific notation into Decimal values.

Posted on 2010-08-16
7
821 Views
Last Modified: 2012-05-10
The formula was to calc the diff between send and recieve times where they were both >0
otherwise put "" .. this way its ignored by the xl AVERAGE Function; that data is in Column T and the =AVERAGE(T2:T26877) is in cell T1.Please see the spreadsheet attached.Please help me write the formula for above requirement in the spreadsheet attached and convert all the columns with scientific notation to decimal values,your help is highly appreciated.

Dump.csv
0
Comment
Question by:zonate_toaster
  • 3
  • 3
7 Comments
 

Author Comment

by:zonate_toaster
ID: 33449007
Calculation for average is performed using column P and  Q for column T(Q-P).
0
 
LVL 32

Expert Comment

by:Robberbaron (robr)
ID: 33453428
1/ You posted a csv file, not an excel format.... it just has data within.

2/ the scientific notation within CSV is automatically converted to a "number" when csv opened in excel. In an excel file, you still see the Exponent format only  because the cell width is small. Widen the cell and it shows 1280000000000000000

3/ All your time values are the same in the CSV... 1280000000000000000; also no need to send so much data,  5 lines would often be enough for testing.

4/ I believe the Formula Column T you are looking for is

=IF(P2>0,IF(Q2>0,Q2-P2,""),"")

Open in new window

0
 
LVL 18

Expert Comment

by:Cluskitt
ID: 33473124
You don't need to change cells to "" in order to correctly calculate an average. Just use SUM(<range>)/COUNTIF(<range>,">0")
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 32

Expert Comment

by:Robberbaron (robr)
ID: 33473596
except that zero may be  a valid value to include in the average.  
Same for negative , though unlikely in this case.
0
 
LVL 18

Expert Comment

by:Cluskitt
ID: 33473623
He did say at the beginning that he only wants to take into account values that are >0.
0
 
LVL 32

Expert Comment

by:Robberbaron (robr)
ID: 33474078
"both >0"   they could be equal....
0
 
LVL 18

Accepted Solution

by:
Cluskitt earned 500 total points
ID: 33474153
SUM(<range>)/AND(COUNTIF(<range>,"<>0"),COUNTIF(<range>,"<>"""""))

That should simply add them and not take into account whether it's a 0 or empty.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question