|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I want to add three cells and another three cells, then subtract one result from the other.
The data is time in hh:mm format. They are start and stop times. Some of the cells may not have entered data i.e. only one or two start/stop value of three possible. If there is a start there will always be a stop. The sums' may (will) total >24:00 and the final result may = 24:00 but never more than 24:00 I have tried =IMSUB("=SUM D3,F3,H3","=SUM C3,E3,G3") without success. Please show me what I did wrong. Thank you in advance. Carl ![]() |
|
#2
|
||||
|
||||
|
Welcome to the forums
![]() Have you tried: Code:
=(D3+F3+H3)-(C3+E3+G3)
__________________
................... ASCII and ye shall receive .................. Knowledge is the only resource on earth that multiplies when shared Support the Shemzilla Project Powered by C# |
|
#3
|
|||
|
|||
|
That was too easy! Thank you much.
What was wrong (other than too complicated) with what I tried? Carl |
|
#4
|
||||
|
||||
|
Quote:
Using your original example, you would do this: Code:
=IMSUB(SUM(D3, F3, H3), SUM(C3, E3, G3)) I hope this helps! ![]() Edit: Testing of IMSUB seems to indicate that it subtracts the two numbers passed into it. In this case it would be the result of the two SUM operations.
__________________
Slarentice (origin:Shadow Wizard of ASP Free) [noun] A slave and apprentice of the Wizard's Circle (specifically of mehere) at ASP Free. ---- If shemzilla takes over, it's best to be on his good side ![]()
Last edited by Lauramc : November 1st, 2007 at 03:39 PM. |
|
#5
|
||||
|
||||
|
You were using a complicated function that was not really designed to do simple addition and subtraction.
More Information about IMSUB Glad I could help ![]() |
|
#6
|
|||
|
|||
|
I used this example and it returns a decimal, rather than the total time. The IMSUB is not useful for this.
Thank you for your fix Carl Quote:
|
![]() |
| Viewing: ASP Free Forums > Other > ASP Free Lounge > General Question - Newbie Needs Excel Formula help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|