Subtract But With Positive Sum

Dec 6, 2006

Im working on a time schedule form for my work. It all works good but it have one little error.

Lets say it looks like this
cell a1 has start time 22:00 and a2 has a end time 07:00. i know that i can switch the cells in the formula =sum((a1-a2)*24). like this i´ll get a negativ answer and that f.cks up the totalt becuse of the negativ answer i get.

is there a way to get 7:00 - 22:00 and 22:00 - 7:00 to calculate as positiv with one formula?

View 9 Replies


ADVERTISEMENT

Subtract Positive And Negative Numbers

Sep 14, 2009

IF formula.

I am trying to subtract 2 numbers, and they are 4 different combinations of positive and negative numbers.

I wrote the formula as
=IF(A5*B5>0,IF(AND(A5*B54,458 2,367 (322)FALSE(1,277)1,751 FALSE

View 9 Replies View Related

Reference Cell & Add Amount If Positive & Subtract Amount If Negative

Jun 5, 2008

Im trying to set up an active running inventory sheet where: (A)the progressive daily sheet cells reference back to the corresponding master sheet cells fluctuating the master values, (B) the same progressive daily sheet cells reference back to a cummulative totals-cell based on whether I added or subtracted inventory. I want to make a copy of the blank "sheet 2" with all of the formulas and move it to the end of the workbook each day and enter new values which will reference back to the master sheet so that I can click on a date sheet and see an individual day's values or click on the master sheet to see the fluctuating inventory on-hand and the cummulative +/- totals of all days combined. I've got a couple hundred individual cells to reference. I've tried and tried but I can't make it work. Heres what I need to do:

I need to reference individual cells from "sheet 2,3,etc" back to a corresponding cell in a master sheet. But I need the values in each cell in "sheet 2,3,ETC" to increase or decrease the corresponding cell values in the master sheet. For example: If the value in the master sheet B5 is 200. Then in sheet 2, I enter +50 in B5, I need the master sheet cell B5 to increase by 50 to 250. I also need a way to decrease the cell value in the master sheet B5 if I enter a negative value -50 in sheet 2 B5. I also want to know if I can reference the same cell values entered in "sheet 2,3,etc cell B5" back to totals columns C5 for adding inventory or D5 for subtracting inventory in the master sheet where the master totals columns would reflect cummulative totals added or subtracted. For example: if the value in sheet 2 B5 is +50, then the value in Master sheet C5 would add 50 to a progressive total. But if the value in sheet 2 B5 is -50 then the value in master sheet D5 would add -50 to a progressive total.

View 4 Replies View Related

Subtract Amount From Cell Until It Reaches 0 Then Move And Subtract From Next Amount?

Apr 28, 2012

I am trying to subtract an amount from a cell until it reaches 0, then move and subtract from the next amount, and so on.

AmountFixed BudgetedResult53.50Subtracted 5 tell it hit zero1.30Subtracted remaining amount until zero43.8Subtracted remaining amount until zero3.8 was left over without hitting zero is good. Is there formula for this?

View 6 Replies View Related

Value To Be Taken As Positive Only?

Aug 5, 2014

If i have enter any number in negative may be in cell A1 (Usually here the values will be derived by formulas not by manual entry), then it should get the result in positive (only Negative value to positive value only sign change no magnitude / value change).

Now i am using in B1 <=IF(SIGN(A1)<0,A1*-1,A1)>, if any negative value found then in B1 i can get positive value. For example -57 in A1 = 57 in B1.

Now my question is instead using Complicated IF & SIGN formula if there is any simple formula available ?

View 2 Replies View Related

Formula For Subtract I62 From I62 Only If F62 Contains P/UT?

Dec 28, 2013

I need a formula to do the following

Subtract I62 from I62 only if F62 contains P/UT and put answer of subtraction in L62.

Cells are in Time format

View 8 Replies View Related

Subtract From Inventory

Jan 28, 2008

Firstly i am running Excel 2003 (at work)

Now my problem is that i have been asked to make a spreadsheet about Printer and Fax Cartridges (Zzzzz) but i do not know how to do the sum.

this is how my Spreadsheet looks like this (cartidge amount etc all on top line of spreadsheet)
(Hp45 etc all down left hand side) ...

View 9 Replies View Related

Subtract Dates D:hh:mm

Oct 24, 2008

Seems that when I subtract a future date from NOW() and format the cell d:hh:mm that the result is 1 day off. So if I subtract NOW() (today is 10/24) from 10/25/08 it returns a 1 for the d when I would expect it to be zero.

View 14 Replies View Related

Subtract The Dates.

Apr 13, 2009

I have 2 cells in a row that are times, it has been a while since I did any work in excel. I want to take the first cell as start Time, the second cell is end time and I need to subtract them and put the total in a cell called Hours. What is the correct format to use and how would I do the subtraction.

Generally start time will be AM and End Time will be PM.

View 8 Replies View Related

Add And Subtract Time

Jun 1, 2009

How do I add and subtract hours minutes and seconds?

I’m writing a program to find when the sun is directly overhead. I’m doing this so that I can find the true north/south line. In the example on my program, at the town of Farmington, a plumb bob will cast a shadow on the north/south line at 11:51:39 on June 16

View 9 Replies View Related

If? Vlookup? (take The Value And Subtract It)

Dec 30, 2009

Cell D10 to be a formula that; Looks at Cells E13:E38 and if in this range the text "Sick" appears looks at the adjacent cell H13:H38 (which has a numeric value). It will then take that value and subtract it from D8.

I will have to do this for 2 other text strings as well, Vacation and Holiday.

View 2 Replies View Related

Add Or Subtract From Total

Feb 20, 2010

CELL A1=45

I want CELL A2 to be a blank cell which people can enter a number in that will decrease the value of A1 and once that value is entered, it would return to a blank cell. CELL A3 would be used in the same fashion except to increase the value of A1

what would a formula for this look like?

View 10 Replies View Related

Subtract From Two Cells?

Jun 23, 2014

im trying to subtract from two cells. see below

i have two cells, lets say A1 which has number 10 in it, and cell B1 which has -1 in it, but when i use this formula in cell C3 =sum(A1 - B1) It add it on when there's a minus sign in front of the number is there a way around this?

View 2 Replies View Related

Subtract Dates

Apr 23, 2007

I have a column with start date and another next to it with end date. I now want a third column that gives the number of days alloted. I tried

=G6-F6 and that didn't work. What should I do?

View 9 Replies View Related

Subtract The Time

Dec 1, 2007

I need to be able to determine a departure time based on: Appointment - Transit time - 1 hour buffer......Clear as mud?

I tried using =SUM(M2-N2)-1, but being a noob, it's not working and I am lost, yes I admit it, I'm lost...

I do have all the cells format set [h]:mm

View 9 Replies View Related

Subtract Month VBA

Apr 25, 2006

I want to return the previous month in long text format and then use it as part of a file name. when i run the below the subtraction takes one day away from the current date and the msgbox displays "January". I want to return "March"

Sub test
Dim MyMonth
Dim TradesMonth
MyMonth = Month(Date) - 1
TradesMonth = Format(MyMonth, "mmmm")
msgbox TradesMonth
End Sub

View 2 Replies View Related

Multiply Then Subtract Value

Nov 27, 2006

I have 3 columns. A B and C. In column C I want to input the answer to a formula into each cell using data from cells in their respective rows,

For. e.g.

Cx= Ax- (Bx X 0.8).

I want to be able to input this formula somewhere that will automatically fill out the cells in column C.

Column C is 20 cells long so x would range from 1 to 20.

View 5 Replies View Related

Sum Two If Both Cells Contains Positive Value

Jul 12, 2014

If i want to sum A1+ A2 and A2 containes a negative number i only want to sum A1.

Like this:

Example 1
A1,A2
3,3

3+3 = 6 (Both cells contains positve number)

Exampel 2

A1, A2
5, -3 = 5 (A2 contains negative number only sum cell A1)

View 6 Replies View Related

Sum Only Positive Decimals

May 23, 2014

I have some problem when I would like to sum only positive decimals on userform, I would like to separate the numbers with comma (",") and sum them, the format should be "0,0" and only numbers and "," can be given in textboxes. How should I do this?

View 3 Replies View Related

Absolute (positive) Value

Mar 7, 2007

I was wondering how I can replicate Excel's function abs(), which simply gives an absolute value of some number. Is there a simpler way to do that rather than creating a loop to test a condition? For example, I have a line:

w_1 = Range("E2").Value / Range("E3").Value

w_1 can be either positive or negative depending on the sign of E2 and E3. But I need w_1 to be always positive, no matter what signs E2 and E3 have.

I tried

w_1=WorksheetFunction.Abs(Range("E2").Value / Range("E3").Value)

View 4 Replies View Related

Minimum Positive Value

Jan 13, 2008

in a column let'e say A

I have the following values
Total
11
20
7
-10
30
-5
-25
16
3
21
-8

I whant to have a variable = the row number with the minimum positive value which is in this case row number 9 and the column value 3

View 9 Replies View Related

Subtract Some Data With Formula

Nov 15, 2012

I have travel data for hundreds of cars. Col A has the car ID number. Col B has the date. Col C has the distance of a journey. Column D, has the total distance traveled on a given date for a given car.

In Column E, I'm trying to calculate the remaining distance to travel "prior" to the journey being made.

I a have attached an example. [URL] ....

So in column E, prior to the first journey (9km) being made there is 19 km still to travel in the data. And for the second journey the is 10 km left to travel.

View 1 Replies View Related

Subtract Value In Column A If Between Two Numbers

Jul 30, 2014

I'm working on a budget and financial calculator

I've already got it set up to calculate my pay and deduct taxes and all my bill and tell me how much I have left at the end of the month, now I am trying to get it set up to tell me how much will be left out of each check I get based on what day my bills are due.

Essentially what i want is I7 is the cell for my first check of the month and K7 is my second check, Column H shows my due dates for each bill, column A is the price on each bill so what i want is something that is similar to.

If the value if column H is between 5 and 19 then deduct the price in column a from I7 (with H and A being the same row) and if the value of column H is 1-4 or 20-31 then deduce the value in column A (with H and A being the same row) from K7.

Another way to put it would be I7 gets deducted the value in column A if column H is between 4-19 otherwise do nothing (with H and A having same row) deduct the value in Column A from K7 if column H is between 1-4 or 20-31 otherwise do nothing.

View 3 Replies View Related

Subtract From Running Total?

Aug 24, 2014

In cell A1 i have a total amount, lets say it's 20, in B1 i have a value of 5, in C1 i have 10.

Looking to see if it's possible to take the 5 from cell B1 to make A1 = 15, then 10 from cell C1 to make it 5 in A1 whilst reducing both columns B and C to zero If B1 or C1 are greater than the value in A1, A1 displays that amount that would be left

only thing i can think of is a hidden column to calculate whilst incorporating an if statement into B & C?

View 1 Replies View Related

Subtract A Percentage From Total?

Jan 9, 2014

for example:

Period Revenue 5% 10% 15% 20% -5% -10% -15% -20%
$72,003.33 $75,603.50 $79,203.67 $82,803.83 $86,404.00 $68,403.17

View 1 Replies View Related

How To Add And Subtract Using Letter And Numbers

Feb 9, 2014

I am looking to be able to compare a number with a letter so for example 4c and compare it with another 5c and in that scenario see a difference of 1 but when the two to be compared are 4c and 4a it would see 0.6.

in this excersize

A=0.33333R
B=0.33333R
C=0.33333R

it is basically sub category of the initial number so an A is better than a B and in tern a B is better than a C

for example

Targeted Working At Residual
4c 4b 0.33333r
5a 4c -0.33333r
4c 5c 1
4c 5a 0.33333r
5c 3b -1.66666

so on and such forth the number and letter can be entered into seperate fields the lettering are only A,B,C but numbers can range from 1-9 i am normally quite ept with excel but this is out of my depth

View 4 Replies View Related

Add & Subtract Time, Then Multiply By $

Feb 8, 2009

I have a cell that is "Start Time." Another is "End Time." And, of course, "Total."
The sum listed in "Total" is multiplied by a cost per hour. Except it does not work. I have attached an example copied directly from the cost sheet.

View 3 Replies View Related

Subtract Milliseconds Or Seconds

Apr 29, 2009

I have a cell that has data formatted in this style:

0:00:08:412

h:mm:ss:ms

I was wondering how I might go about writing a formula that would subtract say 2 seconds, or 400ms from that value.

View 9 Replies View Related

Formula To Subtract A Number Per Day

Aug 5, 2009

I needa formular that will subtract a number per day, for example as one day passes you can set the amount of number to be taken away from the total.

View 12 Replies View Related

How To Subtract A Year From Date

Aug 30, 2013

If I have a date format 7/1/13 that shows as Jul 13, how can I subtract 1 year from this in the next cell?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved