Reason For Double Negative Signs In Formula
Sep 19, 2007
I've just seen a formula with two - (minus) signs right next to each other placed before a section in a formula while reading possible answers to my post. Here is the link: Understanding this formula. I've seen it before and am intrigued as to why it is there and what it actually does. Assume it is used such: = --(1+2). Would the answer then not be =--3 = 3?
View 4 Replies
ADVERTISEMENT
Jul 2, 2008
I have come across this only a couple times and have tried in vain to find out what the "--" does in formulas
one example I have run accross in the forums is below
= SUMPRODUCT(--(ISNUMBER( FIND("SMS",A1))))
Also, is there a good refrence source for formulas like this?
View 3 Replies
View Related
Nov 19, 2007
Have the following numeric values:
-3.46
103
0
6.2
I would like to convert (not format) them to
the following 14-byte text values:
-0000000000346
+0000000010300
+0000000000000
+0000000000620
View 9 Replies
View Related
May 12, 2009
I have a large dataset (24000 rows) that requires me to multiply two different columns of integers. In some cases, the two integers are both negative and multiplying them results in a product that is positive. I actually need that product to be negative rather than positive. I can't quite seem to figure out the best way to accomplish this.
View 5 Replies
View Related
Feb 5, 2007
I am having an issue creating a formula that calculates % of Budget based on signs. What I mean is positive budget, negative actual and vice versa. Here are all the cases. Can someone please create a formula that I can copy down.
Actual Plan% Budget
85,60696,85188.4%
70-82185.9%
-1,530-3,786247%
-100100-200%
View 9 Replies
View Related
Jul 1, 2007
I trying to write a conditional formula to test data in a cell to see where it falls between certain values, and depending on the data in the cell, will display a message in another cell showing what level has been attained. It's a long formula and I may not have the syntax correct. Can someone look at this and tell me where I have went wrong? All I get in the target cell is "################".
Here is the formula:
Try this formula. Array formulas will have curly brackets {} emcompassing the ENTIRE formula. You do not add these, you Enter the formula with Ctrl+Shift+Enter and Excel will add them (details: Array formulas). Many more Excel Formulas
=IF(c13<1600,"Not at prize level yet",IF(AND(c13>=1600,c13<=1999.99),"You have reached level 1",IF(AND(c13>1999.99,c13<=2499.99),"You have reached level 2",IF(AND(c13>2499.99,c13<=2999.99),You have reached level 3,IF(AND(c13>3000,c13<=3499.99),"You have reached level level 4",IF(c13>3500,"You have reached the top level!!"))))))
View 4 Replies
View Related
Jun 15, 2009
This is something that's been bugging me for the last few hours.
I've written a fairly simple VBA
View 9 Replies
View Related
Jul 13, 2009
="autECLSession.autECLPS.SendKeys """&B4*100&""""
B4 is 3.00% and I need it to be 03 no %, 3.00%*100= 3 but I need anything less then 10 to be two digits still (1-9)
This would be the perfect end result:
autECLSession.autECLPS.SendKeys "03"
and for over 10
autECLSession.autECLPS.SendKeys "10"
View 2 Replies
View Related
Aug 15, 2009
the formula i used is " =IF(A2=A3;"YES";"NO")
the contents are as follows
A
Numbers
2525 - YES
2525 - NO
2526 - YES
2526 - NO
2528 - NO
2530 - NO
2527 - YES
2527 - YES
2527 - NO
how can i use a formula... that tells the last double entry yes too instead no?
for example above...
2525 - YES
2525 - NO (i want the formula say this "YES" too..)
So i want to find out through filtering.. all the double entries with YES.. so i can work with it without missing any double entries.
View 3 Replies
View Related
Mar 5, 2014
What formula do I use to double a number thats in another cell.
I need the formula to go into Column AC from the list of numbers that are in Column W
So for example if the number listed in W2 says 8 I need the column in AC2 to read 16 and when the next number down from that says in W3 -24 I need the column in AC3 to say -48 and so on.
I want to be able to drag the formula down the column (AC) so it picks up all the numbers in Column W3 and doubles each and every one of the numbers all the way down the page thousand of rows down.
So what ever number weather it's a plus or minus number I want it to double itself and have the number read out right next to it in the AC column to it's right.
View 2 Replies
View Related
Apr 21, 2007
I'm currently trying to put together a rather large application to automate a release procedure.
Somewhere in a procedure I have the following
'previous code...
WS.Columns(8).Select
Selection.Copy
WS.Columns(1).Select
Selection.Insert Shift:=xlToRight
WS.Columns(1).NumberFormat = "General"
End Sub
The WS is defined in the beginning of that sub as follows:
Dim WS As Worksheet 'iSpares sheet
Set WS = Workbooks(FrmReleaseFlow.Caption).Worksheets("iSpares")
whereas the FrmReleaseFlow is a userform, active at that time, the caption contains the filename currently working on (in NAME.XLS format, no path), the file is open and the sheet iSpares exists...
The problem is that the code in above procedure gets executed to just that line and then the sub exits and the program continues in the sub right after this sub was called...
The weird thing is, if I set a breakpoint on the line WS.Columns(8).Select, then the execution halts there. If I then continue, the other lines are not executed. Breakpoint on the other four lines are never seen...
So the problem lies within that line WS.Columns(8).Select ...
If I execute this command in the Immediate window, while the code is halted on a breakpoint, it does work as it should...
View 9 Replies
View Related
Oct 21, 2008
If I enter anything in a cell on one work book I get calculating cell for about 3-5 seconds.
I don't have any formulas looking at the book. and I have deleted, renames, copy and pasted, exported to text and reimported and still it does it.
The thing that is odd though is that if I press return again it clears the calulation cells message.
View 9 Replies
View Related
Apr 16, 2014
Power.jpg I must write a double interpolation formula for the table.
View 6 Replies
View Related
Feb 19, 2010
I am having trouble getting the double lookup formula to work with a table. See attached sample.
View 2 Replies
View Related
Mar 17, 2007
I have a macro that uses user input to locate a file. If no file is found matching the user input, a message box displays informing the user. However, if a file is found that matches the user input, the file should simply open. If a file is found, the macro successfully opens the file however it will still display the message box saying no file is found. Since the message box is triggered by an error, there must be another error I haven't accounted for in my code.
Private Sub CommandButton1_Click()
Private Sub CrmFrm1_Click()
If Len(TextBox1) <> 12 Then
MsgBox "Incorrect Case File Number"
FrmNew.TextBox1.SetFocus
Exit Sub
End If
Dim MyCase
MyCase = Dir("S:AccountingProbationTest Files" & FrmNew.TextBox1.Value)
On Error Goto ErrorHandler
Workbooks.Open Filename:="S:AccountingProbationTest Files" & FrmNew.TextBox1.Value
Unload Me
ErrorHandler:
MsgBox "No file found for this Case Number." & Chr(13) & "Please proceed to Template.", 0, "No File Found"
Unload Me
Exit Sub
End Sub
View 2 Replies
View Related
Mar 25, 2007
to ensure the user ends up looking at UserForm5 after having closed the UserForm2 with the x sign.
It works just great - the user gets logged on and can use the UserForm2 but when he/she closes the form with the cross and tries to lo on aner using the UserForm5 - which pops up autmatically due to the above code, both of the UserForms get cloed (or hidden).
Private Sub CommandButton1_Click()
Dim popup As Variant
If ExecuteExcel4Macro("'D:[target.xls]Trg Info'!R1C255") _
= UserForm5.TextBox2.Value And ExecuteExcel4Macro("'D:[target.xls]Trg Info'!R1C256") _
= UserForm5.TextBox3.Value Then
With UserForm5
.TextBox2.Value = ""
.TextBox3.Value = ""
.Hide
End With
UserForm2.Show
With UserForm2 .....................
View 9 Replies
View Related
Jan 21, 2010
look at my attachment and see what I am doing wrong in my formula? I have a hard time understanding the Sumproduct formula and when to use comma's, double negatives, addition, etc.
View 2 Replies
View Related
Dec 10, 2012
We just upgraded our machines to Excel 2010 and now I'm having an issue with copying forumlas down. In Excel 2007 (and 03) if you double clicked in the bottom right corner of a cell, Excel would autofill your formula (or data set) down until the last row of data in your range. Have tried all the settings in 2010 and can't get it to work. All I'm able to do is do a manual copy/paste or highlight all the cells and select fill down.
View 5 Replies
View Related
Dec 22, 2009
I can't use 1904. I have a formula that almost works.
I am doing everything in Military time. This is the finial peice of the puzzle.
Our shift begins at 18:00 and ends up until 7:00 (am) or so depending onwork
A1 I have a time (Projected-Estimate of when all work should be done)
A2 I have a time (Actual- Time the work was actually complete.)
A3 Will be show the difference in either a Negative or Positive time.
Three Examples: (The first two work as is and are perfect) ....
View 6 Replies
View Related
Jul 19, 2006
IF formula
=IF(D9="","",IF(AND(G9>0,G10>0),"",IF(G9>=G10,G9,G10))+IF(E10=0,"",E10))
G9 and G10 can be positive or negative. If G9 or G10 is a negative number,
I want the greater of the two to be used and then to be added to E10. But
right now, Excel is saying -20 (which is G10) is greater than zero. I'm
getting a VALUE error.
View 14 Replies
View Related
Sep 19, 2007
Possibly to combine If statement and lookup stmt. I have a spreadsheet that calculates principle, interest, and combined pmt amount based on certain amortization and payment frequency. In one cell I would like the expiry date to pull in (the expiry date would be the date that the fund balance would be at zero ie. all payments have been made and principle is nil). I am trying to make a formula that will search down the payment column and when it sees a negative number or zero, it will fill in the expiry date (which is in a second column) that is attached to that figure.
View 9 Replies
View Related
Feb 18, 2014
I have created several macros where i use an active-X control button. This button is pressed and the macro begins...........but every now and again this button changes size for no apparent reason.
I have read countless articles/posts about what "may" be causing the problem but i have never read anything which clearly identifies the soln to this problem and the problem has been out there for years. To make matters worse the problem can not be duplicated on any regular frequency that i am aware of............so its not like i can post a file that will show the problem.............
View 4 Replies
View Related
Apr 15, 2009
My sub is supposed to take the values from Sheet1 and paste them into 16x10 tables on Sheet2. However, for some odd reason, the loop is skipping some rows. If you take a look, there are 2184 values in Sheet1, but only 1368 end up in Sheet2...SKUs such as 518166,518167,510573,513746,513752 are just being skipped for no reason.
View 2 Replies
View Related
Sep 23, 2013
A
B
C
D
E
F
G
740048
08/29/13
08/30/13
202
[code]....
I would like to have the count of column E. I would like to sepperate current month and year to date using column C. I would like it to reflect it in the below chart.
M
Code
N
Year to Date Date
O
Month to Date
105
1
202
5
4
402
1
View 3 Replies
View Related
Dec 26, 2006
This may be more of a math question rather than an Excel one.
If I have a spreadsheet with a cell that produces different negative number each time it is used, is there a way i can add a formula to make it a positive number.
So if Cell A1 showed -£244.22, I want to add an equation that changes if to £244.22
Cell A1 changes so it would need to do the same for any negative number within that cell.
View 10 Replies
View Related
Dec 22, 2009
(First please don't send me a link on how to subtract time or show Negative time. I know about 1904 ect.. I can't use that. I need a variation on the formula I am using if possible)
A1 I have a time
A2 I have a time
A3 I have a formula subtracting A2 from A1
The times will vary in A1 & A2. Sometimes A1 will be earlier or later thus giving me negative or positive times. I have a formula that will give me a correct answer but will always show either Positive or Neg depending on what I put in the last part of the formula "-H:MM or H::MM" =TEXT(MAX($A$1:$A$2)-MIN($A$1:$A$2),"-H::MM") in A3. I want it to do the subtraction but say if A1 is > than A2 then "-H::mm", If A1 is < A2 then "h::mm". I don't know if that is possibly or how to incorporate that into what I have.
View 3 Replies
View Related
Oct 12, 2008
fix my (if formula) so it includes data from sheet 2. Sunday and monday values change but every other remains the same. I was given this formula and cant seem to add to it. Also is there a way to show only what i need instead of negative and 0 balances?
View 2 Replies
View Related
Dec 11, 2008
I want to subtract column B from column A and put the result in column C. If the result is a negative I want a formula to turn it to 0.
View 4 Replies
View Related
Jun 9, 2009
Ignoring Negative results in a formula
Question withdrawn
View 3 Replies
View Related
Aug 9, 2009
the Times work fine 22:00pm to 5:30am or 6:00am to 5:30am
Formulas
J4
=IF(ISNUMBER(D4),(D4>E4)*MEDIAN(0,E4-N$4,O$4-N$4)+MAX(0,MIN(O$4,E4+(D4>E4))-MAX(N$4,D4))-F4-L4,0)
K4
=IF(ISNUMBER(D4),MAX(0,MOD(E4-D4,1)-J4-L4-M4-I4-F4),0)
L4
=IF(ISNUMBER(D4),IF(MOD(E4-D4,1)-F4>P$4,(MOD(D4+P$4,1)>E4)*MEDIAN(0,E4-N$4,O$4-N$4)+MAX(0,MIN(O$4,E4+(MOD(D4+P$4,1)>E4))-MAX(N$4,MOD(D4+P$4,1))),0),0)
M4
=IF(ISNUMBER(D4),MAX(MOD(E4-D4,1)-F4-I4-L4-P$4,0),0)
but if I try 22:00pm to 6:00am or later
The following is displayed
Negative Time in J4 and the wrong result in K4
this is not what I need
It should be showing the following
J4 2:00 K4 5:00 L4 00:00 M4 00:00
View 9 Replies
View Related