#### how to add those numbers?

```I have a column of numbers that I have to sum up,
but there is one problem: some of them are formatted as a regular
number (sometimes with decimals) and some are formatted as time
(8:30 etc.)
the regular sum(a:a) formula does not work on all of them
is there any way to do it and get the result either in decimals or
time or I'll have to redo the whole thing?

Mark
```
 0
123 (29)
5/29/2005 12:22:14 AM
excel 39879 articles. 2 followers.

5 Replies
1281 Views

Similar Articles

[PageSpeed] 35

```I think I'd get all those numbers to a common unit (time or minutes or hours).

If you have 30 in a cell (say A1) and it represents 30 minutes, you can use a
helper cell and put a formula like:

=A1/24/60

(divide by the number of hours in a day then divide by the number of minutes in
an hour.)

Format that cell as time to see it nicely.

Then you can use =sum()
and use a custom format of:

[hh]:mm:ss

And you'll see your sum in total hours, minutes, seconds.

Mark wrote:
>
> I have a column of numbers that I have to sum up,
> but there is one problem: some of them are formatted as a regular
> number (sometimes with decimals) and some are formatted as time
> (8:30 etc.)
> the regular sum(a:a) formula does not work on all of them
> is there any way to do it and get the result either in decimals or
> time or I'll have to redo the whole thing?
>
> Mark

--

Dave Peterson
```
 0
ec357201 (5290)
5/29/2005 1:13:02 AM
```If, and I accept that this might be a big If, all the non-time numbers are >
1 you could use

=SUMIF(A:A,"<=1")*24+SUMIF(A:A,">1")

--
HTH

Bob Phillips

"Mark" <123@hotmail.com> wrote in message
news:mb2i919lrl736udssl9u8r2kui3p9ocj4p@4ax.com...
> I have a column of numbers that I have to sum up,
> but there is one problem: some of them are formatted as a regular
> number (sometimes with decimals) and some are formatted as time
> (8:30 etc.)
> the regular sum(a:a) formula does not work on all of them
> is there any way to do it and get the result either in decimals or
> time or I'll have to redo the whole thing?
>
> Mark

```
 0
phillips1 (803)
5/29/2005 10:21:51 AM
```On Sun, 29 May 2005 11:21:51 +0100, "Bob Phillips"
<phillips@tiscali.co.uk> wrote:

>If, and I accept that this might be a big If, all the non-time numbers are >
>1 you could use
>
>=SUMIF(A:A,"<=1")*24+SUMIF(A:A,">1")

thanks Bob, this works perfectly
I only have one question:
what those quotation marks do in this formula?

Mark
```
 0
123 (29)
5/29/2005 7:37:45 PM
```Hi Mark,

That is a good question.

If you were testing for a straight equals a value, you would just use say

=SUMIF(A:A,1)

But if you want to test for less than, you would think you could use

=SUMIF(A:A,<1)

but you cannot, you have to wrap it with quotes which SUMIF evaluates

=SUMIF(A:A,"<1")

It gets more interesting if the value you want to compare is in another cell
say B1. Straight equals comparison

=SUMIF(A:A,B1)

Less than comparison

=SUMIF(A:A,"<"&B1)

because the formula needs to get the value from B1, not the text B1, and the
& is used to concatenate to a text value.

--
HTH

Bob Phillips

"Mark" <123@hotmail.com> wrote in message
news:u16k91t59vd927qmma2djcl89iic7k6uvr@4ax.com...
> On Sun, 29 May 2005 11:21:51 +0100, "Bob Phillips"
> <phillips@tiscali.co.uk> wrote:
>
> >If, and I accept that this might be a big If, all the non-time numbers
are >
> >1 you could use
> >
> >=SUMIF(A:A,"<=1")*24+SUMIF(A:A,">1")
>
>
> thanks Bob, this works perfectly
> I only have one question:
> what those quotation marks do in this formula?
>
> Mark

```
 0
phillips1 (803)
5/30/2005 11:07:35 AM
```On Mon, 30 May 2005 12:07:35 +0100, "Bob Phillips"
<phillips@tiscali.co.uk> wrote:

>Hi Mark,
>
>That is a good question.
>
>If you were testing for a straight equals a value, you would just use say
>
>=SUMIF(A:A,1)
>
>But if you want to test for less than, you would think you could use
>
>=SUMIF(A:A,<1)
>
>but you cannot, you have to wrap it with quotes which SUMIF evaluates
>
>=SUMIF(A:A,"<1")
>
>It gets more interesting if the value you want to compare is in another cell
>say B1. Straight equals comparison
>
>=SUMIF(A:A,B1)
>
>Less than comparison
>
>=SUMIF(A:A,"<"&B1)
>
>because the formula needs to get the value from B1, not the text B1, and the
>& is used to concatenate to a text value.

this was very educational,
thank you very much Bob

Mark
```
 0
123 (29)
5/30/2005 2:05:31 PM

Similar Artilces:

how to read the serial number of a mother board?
Any code can read the serial number of a mother board? any example? Thanks! Crystal On Fri, 10 Jun 2005 00:07:16 +0800, "Crystal Lin" <linwingyee@hotmail.com> wrote: >Any code can read the serial number of a mother board? any example? Thanks! > Do all computers have "mother boards" and do all mother boards have serial numbers? > Any code can read the serial number of a mother board? any example? Thanks! You can read the Serial Number of the hard drive using DiskId32 at http://www.winsim.com/diskid32/diskid32.html . Lynn Let me guess: another mis...

Add Lookup Fields to Entity
I need to add 4 "technical contact" fields (which would lookup the Contact entity) to the CONTRACT form. Is this possible? I've found it difficult to figure out what to do first. Thanks in advance, Brandon Not possible. You cant have multiple lookups for the same entity. You also cannot create new relationships between two system entitites. This will work in 4.0 Not possible, Pezman. N:M relationships are not possible in 3.0 yet. There is a alternative solution: a new entity to act as an N:M relationship. In your case, Contract/Contact. This entity has two 1:N relations...

can I get cells with a minus number to show zero
I have a cell which has a basic formula in (adding up from 2 other cells) This number can end up being a minus number (-167), If this happens I need to be able to make that minus number appear as a zero (0). Is this possible? please help. =IF(A1+B1<0,0,A1+B1) Alternative =MAX(0,A1+B1) Gord Dibben Excel MVP On Sat, 7 May 2005 08:28:03 -0700, "marcus1066" <marcus1066@discussions.microsoft.com> wrote: >I have a cell which has a basic formula in (adding up from 2 other cells) >This number can end up being a minus number (-167), If this happens I need to >be...

What is the name of the template wizard with Data Tracking (Excel. I can not locate the add in template wizard with Data Tracking in Office 2003 Hi Richard You are not the only one<g> The Add-in is working in 2003 only the install file is not working. Copy the xla file from a PC with 2002 to the PC with 2003 and it will work(use Tools>add-ins to browse to the file in Excel) -- Regards Ron de Bruin http://www.rondebruin.nl "Richard" <Richard@discussions.microsoft.com> wrote in message news:193C5DFD-578D-48F7-B9D6-9FEF5BDCEB64@microsoft.com... > What is t...

way to delete add. fr. auto. email add. function?
Is there a way to delete old or no longer used email addresses that appear in the drop down box when I am addressing a new email? Shebubba wrote: > Is there a way to delete old or no longer used email addresses that appear in > the drop down box when I am addressing a new email? That is the nickname cache. Search and delete the .nk2 file. That's the cache for nicknames (i.e., your manually entered e-mail addresses). If you only want to delete some of them, highlight an entry and hit the delete key. If that doesn't work, use Nirsoft's NK2 Viewer utility (it e...

highest number #2
Hi, Let's keep the problem simple. I have one cell that uses an exchange rate from the internet. That cell changes every minute. What I want to do: In an other cell, I want to keep the highest exchange rate ever. So for example: 6:00 exchange rate = 5.00 -- highest exchange rate is 5.00 6:01 exchange rate = 4.98 -- highest exchange rate is 5.00 6:02 exchange rate = 5.02 -- highest exchange rate is 5.02 6:03 exchange rate = 5.01 -- highest exchange rate is 5.02 6:04 exchange rate = 5.03 -- highest exchange rate is 5.03 Of course nor for any minute I use a new cell, it just change the n...

Number entered automatically cut off
Hello, When I enter 100, it display 1, When I enter 1000, it display 10, ChefChaudart, Is that bad ? <grin> That is one of those things that everyone runs into you change the option and it doesn't seem to do anything so you leave it changed. If you enter a decimal point everything is normal i.e. 1000. or 1000.50 but if you fail to enter a decimal point your option in Tools, Options, Edit (tab), [x] fixed decimals 2 will be used. Remove the checkmark and you'll be fine. You can try that on your boss at April Fool's time as long as their not doing your sal...

Hello, Here is a scenerio. A client is buying 1lb of ham. It is put on a waxed paper then wrapped into a white paper and then put into a shopping bag. The usage of shopping bag is 100% cases the usage of paper is only with certin categories of sales. Same with the waxed paper. Question: Is there a way of associating wax paper, white paper and shopping bags in a way so with every sale a piece of paper gets deducted from inventory and one bag is deducted from inventory? I would like to run a report every so often and see if I need to purchase any supplies. Kits and assembly do not work...

add a row or column to a single cell in exel
I am trying to split a single cell into 2 rows can you help If I understood correctly you want to enter an entry in two lines in a cell at appropirate place hit lt+enter and again hit enter for e.g venkat (alt+enter) raman(enter) "trev" <trev@discussions.microsoft.com> wrote in message news:89B2C15C-057F-43B9-8282-37923D5EA397@microsoft.com... > I am trying to split a single cell into 2 rows can you help ...

Number of active sheets
I have Office 2003 installed to Windows 2003 terminal servers but I have a problem with on of our users and excel. The issue is that when the user is trying to have multiple spreadsheets opened he keeps getting the message "This operations has been cancelled due to system restrictions- Contact your system Administrator" I can find no setting in excel to enforce a limit on the number of speadsheets a user can have open. Thanks in advance fo any advise Michael Not an expert in these matters, but; Is it possible that the user is trying to initiate another session of Excel vs....

Number to Number "Data Type Mismatch in Expression" in Join
I am attempting to write a query joining two linked tables in a query by payroll number (all numeric). When write the query and join by payroll number I get the "Data Type Mismatch in Expression" error. Both tables have the Data Type as "Number", but the only difference I can tell is one has "Field Size" as "Decimal" and the other has "Field Size" as "Double". I have even tried to join on the VAL() of each payroll number field with no luck. Any ideas? "Decimal" and "Double" are actually different dat...

MS Office X Exceeds Number of....
Clicked standard Mac Office upgrade yesterday, now Entourage is disabled because of message the reads This installation of Microsoft Office X exceeds the number of installations permitted by the license agreement. User name is already using this installation of Microsoft Office X. The program will now quit. I have MS Office package with 3 product keys. I'm using my laptop now, but originally it was installed on my primary desktop Mac. What's the solution to this problem? SHould I be concerned about preserving my emails -- on Entourage, if I need to reload software? Please advise....

Every time I open Outlook 2007 I get an error message regarding an add-in 'DCCExtensions' (DCCEXT32.DLL). It says the add-in cannot be loaded and has been disabled by Outlook. I've been getting this message ever since I uninstalled Winfax. How do I make this error stop appearing? Thanks. -- kapibarra Remove the addin from OL by using Trust Center, Addins. http://office.microsoft.com/en-us/outlook/HA100341271033.aspx#14 "kapibarra" wrote: > Every time I open Outlook 2007 I get an error > message regarding an add-in 'DCCExtensions' (DCCEXT32.DLL). ...

Format text to add character
I have two fields that should match, but one includes special characters while the other does not. Example: Field1 00ABCD123456123 Filed2 00/ABCD/123456/123/SBZ I need to find records where these two fields don't match, either by changing the display of one of them, or a query to compare Field1 character 7-15 with Field2 characters 9-14, 16-18. Hope this makes sense. Can anyone help? Thanks! Take a look at the following from the Access Help file it might be what you're looking for... Extract a part of a text value The following table lists examples of expressions that ...

add a DC in a LegSite
Hi, In the disaster recovery plan we want to create a leg site and put a DC in it. Here are some questions on how to achieve this smoothly. 1. Should I create the new site/subnet first and then promote a server in that subnet/site to DC, or should I promote a server in existing site/subnet and then move this DC to the new site/subnet? 2. When promoting a server to DC, should the server be a member server (already joined the domain) or just a workgroup member (no domain membership)? 3. The DC will be an AD-integrated DNS server. Should I install the DNS component (but not confi...

Get Start date of Week number and Year
I’d like to build the following expression in my query GetStartWeekNumber(DatePart("ww",[EnteredDate]), Year([EnteredDate])) So if EnteredDate = 11/3/2009 the function would return 11/1/2009 But GetStartWeekNumber does not exist as an Access Built-In Function. Is there another way to do this as an expression in a query? I’m not familiar with creating my own functions. Thanks. That would depend on how you define the start of the week... One option would be to get the day-of-week number of the date (in my system/setup, Monday is day 2), then subtract one less than that...

Having OL automatically add a bcc: address
My boss wants to add me as a bcc: to every email she sends. Is there a way to set this up to happen automatically? Please reply to matt@lkigroup.com Thanks much. Matt ...

Awhile back, there was an add-on for excel that had a lot more tools. It showed on the toolbar. Somehow I lost it and I would like to get it back. It had a lot of tools like for changing case and fill ins. Any help wouyld be great. Maybe ASAP Utilities. Try a 'net search for this add-in. Gord Dibben MS Excel MVP On Sun, 22 Mar 2009 20:22:43 -0400, "kmkx70a" <kmkx70a@prodigy.net> wrote: >Awhile back, there was an add-on for excel that had a lot more tools. It >showed on the toolbar. Somehow I lost it and I would like to get it back. It >had a lot of t...

How can I add the customer's PO# to the drop-ship Purchase Order?
Our purchasing agent would like to be able to have the customers PO# from the Sales Transaction Entry screen show up on the PO's. Is this doable in Report Writer or can it not be done? We are using GP v9.0. As I still consider myself a newbie with RW, I would appreciate detailed instructions if possible. Thank you in advance for all responses. It is not possible thru traditional table relationships in Report Writer. Let me explain: you can certainly link the Purchase Order Work table to the SOP_POLink table and the SOP_POLink table to the SOP Transactions Work table, but will...