Minus Figure Wont Calculate

Dec 13, 2006

I have been creating a new spreadsheet in work to show materials variances

I am having a problem with a minus figure in a calculation as follows

expected opening stock = (172)
Actual opening stock = 1022

My return cell has the following formula (Actual Opening Stk - Expected opening stk)

I should get the answer of 850 - I am actually getting 1194

View 9 Replies


ADVERTISEMENT

Change Cell Colour If The Value Is A Minus Figure

May 9, 2006

Am after the code to change a cell colour if the value is a minus figure. There is a formular within the cell that can either equate to an positive or negative figure .. and would like the cell changed to RED if the figure returns a negative answer.

View 4 Replies View Related

Calculate Hours Worked, Minus Weekends

Nov 11, 2009

to calculate how long a ticket is open in our system before being resolved. I don't want to count weekends, and if the ticket is 'suspended', I don't want to count that either. There is also the factor that the ticket 'un-suspend' date may be later than the ticket 'closed' date. Which is the bit that's throwing me.

So, I have the following fields

Ticket Open, Ticket Closed, Ticket Suspended Date, Ticket Unsuspended Date

A sample ticket might be (using above fields)

02/11/09 09/11/09 04/11/09 30/11/09

That 'should' equal two days (16 hours) as the Unsuspend date falls after the close date so it was suspended from the 4th until closure.

Now I want to know, in hours (8 hour day) how long that ticket took to resolve (i.e close), remembering you can't count the time it was suspended, or any time that fell over a weekend. Also not all tickets are suspended.

View 13 Replies View Related

Using IF Function To Calculate Average Minus Maximum / Minimum?

May 1, 2014

I am trying to automate a process involving a Grubb's outlier test and calculating averages/stdev of a set of numbers. I have the data in one column and have calculated the average/stdev/%CV of that data. I have also added a formula to calculate Max/Min outliers of that column of data. Then there are cells with IF statements that display either "yes" (for an outlier present), or "no" (if no outlier is present). What I would like to do, if it is feasible, would be to set up formulas to recalculate the average/stdev of the column, taking into consideration either the presence or absence of outliers.

Here is what I invision(cells are for example purposes)

=IF((M9 = yes, Avg(H2:H40)-max(H2:H40)),M9 = no, avg(H2:H40))

So it would calculate the average without the outlier if the outlier "yes" was present, or just calculate the average if "no" is present.

I would also do this with a minimum outlier as well, but i can set that up if this first one is possible.

View 8 Replies View Related

Formula To Calculate How Many Hours Minus 30 Mins For Lunch

Jan 12, 2009

If a person does a full day I want the formula to calculate how many hours minus 30 mins for lunch i.e. 7:30 - 4:00 = 8 hours. I have done this and it works fine, the problem comes when a person does a half day i.e. 7:30 - 11:30, this will read 4.5 hours. If this is the case I don't want the 30mins deducted so it should be 4.0 hours worked.

I have high lighted a column in the work sheet (yellow) whereby the user puts an 'x' in the appropriate cell if they are working a half day.

The probem is I cannot incorperate the two formulas in one cell (the Actual hours cell) I have the one formula in the actual hours cell and the other bolted on the end thus giving two different readings.

View 14 Replies View Related

Nested IF Command: Calculate Today's Date Minus

Apr 19, 2009

The range B7:K7 contains columns of "dates" and "characters" like "A", "B" and "C" . Range D2 = Today's date. If Range C7 is blank then it should calculate Today's date minus Column B7 (i.e D2-B7) so on:

B7 = "01-Apr-2009", C7 = "02-Apr-2009", D=7 = Status as "(A)"
B7 = Submitted Date, C7 = Received Date, D7 = Status
Difference Between Today's Date and "B7" date is required if "C7" is Blank date. Otherwise it should search next group (E, F)

=IF(AND(ISBLANK(C7),NOT(ISBLANK(B7))),D2-B7,IF(AND(ISBLANK(F7),NOT(ISBLANK(E7))),D2-E7,IF(AND(ISBLANK(I7),NOT(ISBLANK(H7))),D2-H7,IF(AND(ISBLANK(L7),NOT(ISBLANK(K7))),D2-K7,"--")))))

-- Excel File is attached.

View 4 Replies View Related

Calculate Time Spent On Ticket Minus Non-Business Hours?

Jun 6, 2012

I have a requirement of calculating time spent on ticket, basically a difference between the time a ticket was logged and when it was resolved.

First, working days are Saturday through Wednesday, i.e weekends are Thursday & Friday.

Second, there are different resolver groups or teams which work on a ticket. These teams have different working hours, some work from 07:30 to 15:30 on weekdays, and others work 24/7. Each ticket will be assigned only to one resolver group.I also need to consider holidays.

So, my requirement is to check the resolver group for each ticket, and decide the working hours based on it. After this check has to be done for holidays, and then difference between logged time and resolved time needs to caluculated in minutes.

Tickets can be logged at any time of the day / week, it may not always be logged during working hours only. in such cases calculate should consider next business day / hour as the start time.

Raw data for tickets is available in =Sheet1!$A$1:$E$21

Ticket NoResolver GroupLogged DateResolved DateTime Spent123456
Team A5/21/2012 1:56:28 PM5/29/2012 2:10:53 PM343543Team B5/21/2012 9:31:02 PM5/27/2012 3:41:22 PM853732
Team C5/22/2012 2:28:06 PM5/26/2012 2:34:31 PM

[Code].....

View 4 Replies View Related

Highlight Cell And It Takes The Figure Within In Away From Another Figure?

Feb 18, 2013

I've got a spreadsheet with several rows and the numbers within those rows are totalled up at the bottom. Is there a way where i can highlight the cell within the spreadsheet and it takes it off the accumulative total at the bottom? or something similar to this effect? I just don't want to have to remove figures from this spreadsheet and highlighting will be a good way of seeing what has been done

View 1 Replies View Related

Calculate Start Date From Finish Date Minus 14 Working Hours

May 7, 2014

I needs a formula (not VBA) to calculate the required start date.

I have to do a job of 14 working hours and this job must be finished on 05-may-2014 13:00

My working week is from monday u/i friday and every day I work from 08:00-16:00

At what time do I have to start the job to get it done in time.

The formula should give this result: 01-may-2014 15:00

View 3 Replies View Related

Formula To Calculate Time Allotted Minus Time Used And Show Difference In Hour And Minutes?

Apr 27, 2014

Formula to calculate time allotted minus time used and show the difference in hour and minute.

View 1 Replies View Related

Combine Text & Figure When The Figure Is In -ve?

Oct 14, 2009

I learnt that " " & can combine the text and figure. However, when it comes to a negative numbers, i dont know how to maneouver it. Eg, Cell A1 is USD(50,000.00) and the comment in Cell B1 is Cost is USD(50,000.00). So the function in B1 = "Cost is "& what to put here?

View 3 Replies View Related

+ 0.1 Minus

Jan 20, 2010

I have part if the code here’s
PHP
Range("f" & indexI + 1).Value = Format(Strl, "00:00") 

to return value = time formats
How do I modify it to + 0.1 minus?

Sample
IF the return value = 12:00:00
Now I wanted = 12:00:01

View 9 Replies View Related

Figure Age

Oct 19, 2007

I have tried searching for it but I must not be entering the correct criteria.

how to figure a person's age if all I have is that person's birthdate?

View 9 Replies View Related

Use Plus Minus Variables

Nov 30, 2008

Trying to work out the formulas for placing plus minus variables above and below a cell as per worksheet attached. right hand side of the page

View 2 Replies View Related

Tan To The Power Of Minus 1

Dec 10, 2008

How can i produce "tan to -1 " in excel ?

View 9 Replies View Related

Date Minus A Day

Dec 16, 2013

I use a formula that has a date in it 11/15/13 for example. Then I have a formula that calculates "days" (15), but I want to subtract one. How do I do that?

View 2 Replies View Related

Greater Than Or Less Than (Plus Or Minus)

Jul 19, 2006

Here is my formula.

=If(Sheet1!J5=$J$4,0,(Sheet1!$J$4-Sheet1!J5)*Sheet1!$J$1)

It is perfect, except it doesn't have one final step. What I need it to do
is be able to do that ONLY if it is greater than or less than by a specified
amount. So there needs to be a modification of ... Sheet!J5<> (but by 100 or
any other number that I set) $J$4,...

View 4 Replies View Related

Figure Out The Combinations Available

Apr 27, 2007

i'm doing a process and in column N, i would need to have the following combinations:

A1
A2
C1
C2
H1
I1

so basically, a formula that would figure out the combinations available!
can this be done using a formula?

******** ******************** ************************************************************************>Microsoft Excel - Cost Calculator---V5---Try.xls___Running: 11.0 : OS = Windows XP (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutK39=
KLMN39A12 40B 41C12 42D 43E 44F 45G 46H11 47I11 48J Cost Calculator
[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.

View 9 Replies View Related

Figure Out The Row To Insert

May 27, 2007

I have a command button (code listed below) which is 1/2 working. I have a column of PID's (numbers) sorted in ascending order which includes multiple rows with the same PID. When the command is executed, I want to insert a new row after the last matched PID (this part of the code works fine),

or

Insert a new row for the non-existent PID but in the correct sorted location (this is what I can not seem to figure out how to get to work).

My data looks like this in the PID column.

PID (my header row in A1)
158
158
159
161
163
163
163
164

I can successfully insert another line 158, or 159, but can not determine where to insert a line for PID 160 (which is not in the list yet)..................

View 3 Replies View Related

Figure Out How To Add More Columns

Jul 20, 2007

I have this great code, but I can;t figure out how to add more columns to it.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Column = 2 Then
If Target.Value = "Q" Then
With Target
.Value = ""
End With

Else
With Target
With Selection.Font
.Name = "Wingdings 2"
.Size = 22
End With
.Value = "Q"
End With
End If
Cancel = True
End If
End Sub

View 9 Replies View Related

Figure Out The Range

Aug 4, 2007

I have the following which does what it says it does.

What I can't figure out is, If the used range Starting in row A5 is greater then or less then A50 not to apply the borders.

.Range("A5:M50").BorderAround Weight:=xlHairline
.Range("A5:M50").Borders(xlInsideVertical).Weight = xlHairline
.Range("A5:M50").Borders(xlInsideHorizontal).Weight = xlHairline

View 9 Replies View Related

Figure Out How To Do An If For The Over 30,60,90 Past Due

Apr 28, 2009

Here is what my table is im working with. The tite "todays date starts in Cell A1 and B1 is =Today().

I need to figure out how to do an if for the over 30,60,90 past due. Here the logic I need to figure out:

in the Over 30 column, the logic of the statement is as follows: If the difference between today's date and the date of the invoice is greater than 30 and equal to or less than 60, the amount goes into this column.(over 30 E3) To get the amount(the ammount in C3) into the Current column, the difference between the two dates must be less than 30. To get into the over 90 column, the difference between the two dates must be greater than 90. You can figure out the over sixty column. And this needs to be copied to the remaining colums

Today’s date: =TODAY() Shop Invoice Date Invoice Amount Current Over 30 Over 60 Over 90 Ludwig's Landromat =TODAY()-72 $432.78 Willie's Washing =TODAY()-107 $565.11 Wash It Here =TODAY()-80 $308.47 Spiffy Wash and Dry =TODAY()-58 $725.37 Water Soap & Hot Air =TODAY()-30 $427.95 Wash it & Dry it =TODAY()-90 $603.91 Acme Wash & Dry =TODAY()-60 $332.35 Totals

View 9 Replies View Related

Difference Between Two Days And Minus A Day

Jan 3, 2014

Assuming the first date is in A1, and the second date is in B1, in standard dd/mm/yyyy form, my current formula is =B1-A1-1.The '-1' is due to the fact that if a patient stays for 10 days, they will only spend 9 nights in the hospital. (Bed Nights).The problem is, the formula is stretched in the total column from, say C1 to C50. Each one of these has, or will have, a number of days in it.However, due to having th '-1' in the formula, empty rows that are yet to have a patients details inputted have a -1 where I need a 0. The only reason I need to change this is because I need a running total of the bed nights of all the patients.I think the formula I'm after is something along the lines of; 'If cell B2 is empty, input 0. If B2 has a date, use formula 'B2-A2'

View 9 Replies View Related

Plus Or Minus Sign In The Beginning?

Jul 29, 2008

I want to save phone no as +99 9876543210 in excel 2003 on my xp pro machine. But if i give a + sign in the cell, some blue dotted rectangle shows up and everything messes up.. I think it is treating it as a formula or something... how can i save this in the cell. tell me in detail if you are going to tell me about macros or vb code as I don't know how to insert code or program macros.

View 3 Replies View Related

Check For Plus/Minus Condition

May 31, 2007

With out using Conditional Formatting, how can I check a cells value if it can fall within a range of +-.002?

I have this code but it seems to have limitations.

View 12 Replies View Related

Average Last Five Numbers Minus The Low And Hi

Apr 23, 2009

=AVERAGE(INDEX(E5:IV5,LARGE(IF(E5:IV5<>"",COLUMN(E5:IV5)-COLUMN(E5)+1),5)):INDEX(E5:IV5,MATCH(9.99999999999999E+307,E5:IV5)))

I have this formula where it averages the last five numbers in a collumn, but I want to average the last 5 numbers less the max and min number.

View 14 Replies View Related

Show Zero If Amount Is A Minus

Nov 19, 2008

I need a formula that that will show £0.00 if the amount is under zero, i have a formula k15/o15 that gives me a amount but if this is under zero i need this to show as zero not -£70 for example.

View 3 Replies View Related

Diplay Minus Hours In Red

Feb 20, 2009

I am using time based on the 1904 calendar, this is so time can be shown as a minus figure when to cells are taken away and the result is say -17:25. What I want to do via conditional formatting is show any minus hours as red. Tried various options but I have had no luck so far. or can this be done via VBA?

View 6 Replies View Related

Average Minus Most Recent Row

May 4, 2009

I have a table in a sheet where the rows of data are filled in automatically from other sheets. Each row represents a different week. The data, (lifted from from the relevant worksheet for each row) represents the no. of calls in each week.

Now, I've set up an average to be calculated from the data - it'll do this for every row as long as there is data present. (If the row's corresponding worksheet doesn't have any data the result will be "NA()" - not included in the calculation.)

However, I don't want the average to include the no. in the "most recent" row, as this is "live" data and until the week is over does not represent the data for a full week and therefore skews the average.

So I want the average to exclude the data in the most recent row with a numerical value in it and not a "NA()"

ie - column could be ......

View 12 Replies View Related

Minus Percentage In Formula?

Aug 28, 2002

I need to write a formula to minus a percentage of a total.

for example I want to take away 20% of the total of £8.75.

View 4 Replies View Related







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